Changeset 23875
- Timestamp:
- 04/19/19 16:02:30 (6 years ago)
- Location:
- issm/trunk-jpl/src/m/contrib/morlighem/ronne
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/morlighem/ronne/interpBedmachineAntarctica.m
r23873 r23875 27 27 ncdate='2018-09-26'; 28 28 ncdate='2018-11-14'; 29 ncdate='2019-01-24';30 29 ncdate='2019-01-30'; 31 ncdate='2019-02-15'; 32 ncdate='2019-02-21'; % no need of firn correction 33 ncdate='2019-02-22'; % no need of firn correction 34 ncdate='2019-02-24'; % no need of firn correction 30 ncdate='2019-03-12'; 31 ncdate='2019-04-02'; 32 ncdate='2019-04-15'; 35 33 ncdate='2019-04-15'; % no need of firn correction 36 34 end 37 35 38 date1 = sscanf(ncdate,'%d-%d-%d'); 39 date2 = datetime(date1(1),date1(2),date1(3)); 40 41 if date2<datetime(2016,10,24), 42 basename = 'AntarcticaMCdataset'; 43 else 44 basename = 'BedMachineAntarctica'; 45 end 36 basename = 'BedMachineAntarctica'; 46 37 47 38 %read data -
issm/trunk-jpl/src/m/contrib/morlighem/ronne/interpBedmachineGreenland.m
r23873 r23875 32 32 ncdate='2017-09-25'; %BedMachine v3 33 33 ncdate='2018-06-01'; 34 ncdate='201 8-08-27';34 ncdate='2019-04-18'; 35 35 end 36 36 -
issm/trunk-jpl/src/m/contrib/morlighem/ronne/interpBedmap2.m
r23873 r23875 9 9 % 5. rockmask is a mask file showing rock outcrops 10 10 % 6. lakemask_vostok is a mask file showing the extent of the lake cavity of Lake Vostok 11 % 7. bed_uncertaintyis the bed uncertainty grid shown in figure 12 of the manuscript11 % 7. grounded_bed_uncertainty is the bed uncertainty grid shown in figure 12 of the manuscript 12 12 % 8. thickness_uncertainty_5km is the thickness uncertainty grid shown in figure 11 of the manuscript 13 13 % 9. coverage is a binary grid showing the distribution of ice thickness data used in the grid of ice thickness … … 19 19 20 20 nc = '/home/ModelData/Antarctica/BedMap2/bedmap2_bin/Bedmap2.nc'; 21 nc = '/Users/mmorligh/temp/Bedmap2.nc';22 21 23 xdata = double(ncread(nc,'x')); 24 ydata = double(ncread(nc,'y')); 22 if strcmp(string,'thickness_uncertainty_5km') 23 xdata = double(ncread(nc,'x_5km')); 24 ydata = double(ncread(nc,'y_5km')); 25 else 26 xdata = double(ncread(nc,'x')); 27 ydata = double(ncread(nc,'y')); 28 end 25 29 26 30 offset=2; -
issm/trunk-jpl/src/m/contrib/morlighem/ronne/interpMouginotAnt2017.m
r23873 r23875 1 function [vxout vyout]= interp Rignot2012(X,Y),1 function [vxout vyout]= interpMouginotAnt2017(X,Y), 2 2 3 filename = '/home/ModelData/Greenland/VelMouginot/RignotGreenland2012Vel.mat'; 3 %read data 4 switch (oshostname()), 5 case {'ronne'} 6 nc = '/home/ModelData/Antarctica/MouginotVel/vel_nsidc.CF16_2.nc'; 7 otherwise 8 error('hostname not supported yet'); 9 end 4 10 5 6 %Figure out what subset of the matrix should be read 7 load(filename,'x','y'); 8 velfile = matfile(filename); 11 xdata = double(ncread(nc,'x')); 12 ydata = double(ncread(nc,'y')); 9 13 10 14 offset=2; 11 15 12 16 xmin=min(X(:)); xmax=max(X(:)); 13 posx=find(x <=xmax);14 id1x=max(1,find(x >=xmin,1)-offset);15 id2x=min(numel(x ),posx(end)+offset);17 posx=find(xdata<=xmax); 18 id1x=max(1,find(xdata>=xmin,1)-offset); 19 id2x=min(numel(xdata),posx(end)+offset); 16 20 17 21 ymin=min(Y(:)); ymax=max(Y(:)); 18 %posy=find(y>=ymin); 19 %id1y=max(1,find(y<=ymax,1)-offset); 20 %id2y=min(numel(y),posy(end)+offset); 21 posy=find(y<=ymax); 22 id1y=max(1,find(y>=ymin,1)-offset); 23 id2y=min(numel(y),posy(end)+offset); 22 posy=find(ydata>=ymin); 23 id1y=max(1,find(ydata<=ymax,1)-offset); 24 id2y=min(numel(ydata),posy(end)+offset); 24 25 25 vx = velfile.vx(id1y:id2y,id1x:id2x); 26 vy = velfile.vy(id1y:id2y,id1x:id2x); 27 x = x(id1x:id2x); 28 y = y(id1y:id2y); 26 disp([' -- Mouginot 2017: loading velocities']); 27 vxdata = double(ncread(nc,'VX',[id1x id1y],[id2x-id1x+1 id2y-id1y+1],[1 1]))'; 28 vydata = double(ncread(nc,'VY',[id1x id1y],[id2x-id1x+1 id2y-id1y+1],[1 1]))'; 29 xdata=xdata(id1x:id2x); 30 ydata=ydata(id1y:id2y); 29 31 30 %load(filename);31 vxout = InterpFromGrid(x ,y,double(vx),X,Y);32 vyout = InterpFromGrid(x ,y,double(vy),X,Y);32 disp([' -- Mouginot 2017: interpolating ']); 33 vxout = InterpFromGrid(xdata,ydata,vxdata,double(X),double(Y)); 34 vyout = InterpFromGrid(xdata,ydata,vydata,double(X),double(Y)); 33 35 36 %return vel if only one output is requested 34 37 if nargout==1, 35 38 vxout = sqrt(vxout.^2+vyout.^2);
Note:
See TracChangeset
for help on using the changeset viewer.