source: issm/trunk-jpl/src/m/contrib/morlighem/ronne/interpRignotIceShelfMelt.m@ 23873

Last change on this file since 23873 was 23873, checked in by Mathieu Morlighem, 6 years ago

NEW: added interpolation routines'

File size: 774 bytes
Line 
1function output = interpRignotIceShelfMelt(X,Y,string),
2
3switch (oshostname()),
4 case {'ronne'}
5 rignotmelt='/home/ModelData/Antarctica/RignotMeltingrate/Ant_MeltingRate.nc';
6 case {'thwaites','murdo','astrid'}
7 rignotmelt=['/home/seroussi/Data/Ant_MeltingRate.nc'];
8 otherwise
9 error('hostname not supported yet');
10end
11
12if nargin==2,
13 string = 'melt_actual';
14end
15
16disp([' -- Rignot Ice Shelf Melt: loading ' string]);
17xdata = double(ncread(rignotmelt,'xaxis'));
18ydata = double(ncread(rignotmelt,'yaxis'));
19
20disp([' -- Rignot Ice Shelf Melt: loading' string]);
21data = double(ncread(rignotmelt,string))';
22
23disp([' -- Rignot Ice Shelf Melt: interpolating ' string]);
24output = InterpFromGrid(xdata,ydata,data,X(:),Y(:));
25output = reshape(output,size(X,1),size(X,2));
Note: See TracBrowser for help on using the repository browser.