Changeset 25733
- Timestamp:
- 11/03/20 12:17:53 (4 years ago)
- Location:
- issm/trunk-jpl/src/m/contrib
- Files:
-
- 5 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpBedmachineGreenland.m
r24747 r25733 54 54 morlighem2013nc=['/home/ModelData/Greenland/BedMachine/' basename '-' ncdate '.nc']; 55 55 otherwise 56 error('machine not supported yet'); 56 morlighem2013nc=['/Users/larour/ModelData/BedMachine/' basename '-' ncdate '.nc']; 57 disp('machine not supported yet, using default path /Users/larour/ModelData/BedMachine/'); 57 58 end 58 59 … … 81 82 data(find(data==-9999))=NaN; 82 83 84 ydata=flipud(ydata); 85 data=flipud(data); 86 83 87 disp([' -- BedMachine Greenland: interpolating ' string]); 84 88 if strcmp(string,'mask') | strcmp(string,'source'), 85 89 %Need nearest neighbor to avoid interpolation between 0 and 2 86 output = InterpFromGrid (xdata,ydata,data,double(X),double(Y),'nearest');90 output = InterpFromGridToMesh(xdata,ydata,data,double(X),double(Y),'nearest'); 87 91 else 88 output = InterpFromGrid(xdata,ydata,data,double(X),double(Y)); 92 93 output = InterpFromGridToMesh(xdata,ydata,data,double(X),double(Y),NaN); 89 94 end 90 95
Note:
See TracChangeset
for help on using the changeset viewer.