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 | |
---|
1 | function output = interpRignotIceShelfMelt(X,Y,string),
|
---|
2 |
|
---|
3 | switch (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');
|
---|
10 | end
|
---|
11 |
|
---|
12 | if nargin==2,
|
---|
13 | string = 'melt_actual';
|
---|
14 | end
|
---|
15 |
|
---|
16 | disp([' -- Rignot Ice Shelf Melt: loading ' string]);
|
---|
17 | xdata = double(ncread(rignotmelt,'xaxis'));
|
---|
18 | ydata = double(ncread(rignotmelt,'yaxis'));
|
---|
19 |
|
---|
20 | disp([' -- Rignot Ice Shelf Melt: loading' string]);
|
---|
21 | data = double(ncread(rignotmelt,string))';
|
---|
22 |
|
---|
23 | disp([' -- Rignot Ice Shelf Melt: interpolating ' string]);
|
---|
24 | output = InterpFromGrid(xdata,ydata,data,X(:),Y(:));
|
---|
25 | output = reshape(output,size(X,1),size(X,2));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.