Changeset 27912
- Timestamp:
- 09/20/23 09:56:10 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/modeldata/interpFromGeotiff.m
r26701 r27912 1 function dataout = interpFromGeotiff(geotiffname,X,Y,nanValue), 1 function dataout = interpFromGeotiff(geotiffname,X,Y,nanValue,fillholes) 2 %INTERPFROMGEOTIFF - interpolate field in geotiff onto list of points 3 % 4 % Usage: 5 % dataout = interpFromGeotiff(geotiffname,X,Y,nanValue,fillholes) 6 % dataout = interpFromGeotiff(geotiffname,X,Y); 7 2 8 3 9 if nargin < 4 4 10 nanValue = 10^30; 11 fillholes = false; 12 end 13 if nargin < 5 14 fillholes = false; 5 15 end 6 16 … … 64 74 data(find(data<=nanValue))=NaN; 65 75 end 66 76 if fillholes 77 disp('Filling holes'); 78 data = inpaint_nans(data); 79 disp('done'); 80 end 67 81 end 68 82
Note:
See TracChangeset
for help on using the changeset viewer.