Changeset 7 for Roms_tools/Aforc_NCEP/get_NCEP_grid.m
- Timestamp:
- 05/04/11 17:34:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Roms_tools/Aforc_NCEP/get_NCEP_grid.m
r1 r7 79 79 lat=lat(j); 80 80 % 81 % If we are in OpenDap (Get_My_Data=0) we need 82 % a shift of decal=1, because the indexes begin at 0 in OpenDap. 83 % If we use local data, Get_My_Data=1, there is no shift needed, 84 % then decal=0; 85 86 if Get_My_Data==1 87 decal=0; 88 else 89 decal=1; 90 end 91 % 81 92 if ~isempty(i1) 82 i1min=min(i1)- 1;83 i1max=max(i1)- 1;93 i1min=min(i1)-decal; 94 i1max=max(i1)-decal; 84 95 else 85 96 i1min=[]; … … 87 98 end 88 99 if ~isempty(i2) 89 i2min=min(i2)- 1;90 i2max=max(i2)- 1;100 i2min=min(i2)-decal; 101 i2max=max(i2)-decal; 91 102 else 92 103 i2min=[]; … … 94 105 end 95 106 if ~isempty(i3) 96 i3min=min(i3)- 1;97 i3max=max(i3)- 1;107 i3min=min(i3)-decal; 108 i3max=max(i3)-decal; 98 109 else 99 110 i3min=[]; … … 101 112 end 102 113 % 103 jmin=min(j)- 1;104 jmax=max(j)- 1;114 jmin=min(j)-decal; 115 jmax=max(j)-decal; 105 116 jrange=['[',num2str(jmin),':',num2str(jmax),']']; 106 117
Note: See TracChangeset
for help on using the changeset viewer.