Changeset 27517


Ignore:
Timestamp:
01/17/23 06:13:52 (2 years ago)
Author:
Mathieu Morlighem
Message:

CHG: upating doc

Location:
issm/trunk-jpl/src/m/contrib/morlighem/modeldata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpAdusumilliIceShelfMelt.m

    r27514 r27517  
    11function output = interpAdusumilliIceShelfMelt(X,Y)
    2 %INTERPADUSUMILLIICESHELFMELT imports basal melt rates from (Adusumilli et al., 2020).
    3 %       About the data: "Average basal melt rates for Antarctic ice shelves for the 2010–2018 period at
    4 %       high spatial resolution, estimated using CryoSat-2 data. This data file was last updated on 2020-06-11."
     2%INTERPADUSUMILLIICESHELFMELT - imports basal melt rates from (Adusumilli et al., 2020).
     3%   About the data: "Average basal melt rates for Antarctic ice shelves for the 2010–2018 period at
     4%   high spatial resolution, estimated using CryoSat-2 data. This data file was last updated on 2020-06-11."
    55%
    6 %       Citation: Adusumilli, Susheel; Fricker, Helen A.; Medley, Brooke C.; Padman, Laurie; Siegfried, Matthew R. (2020).
    7 %               Data from: Interannual variations in meltwater input to the Southern Ocean from Antarctic ice shelves.
    8 %               UC San Diego Library Digital Collections. https://doi.org/10.6075/J04Q7SHT
     6%   Citation: Adusumilli, Susheel; Fricker, Helen A.; Medley, Brooke C.; Padman, Laurie; Siegfried, Matthew R. (2020).
     7%   Data from: Interannual variations in meltwater input to the Southern Ocean from Antarctic ice shelves.
     8%   UC San Diego Library Digital Collections. https://doi.org/10.6075/J04Q7SHT
    99%
    10 %       Written by Benjamin Getraer Jan 2023
    11 %       Adapted from interpRignotIceShelfMelt
     10%   Usage:
     11%      output = interpAdusumilliIceShelfMelt(X,Y)
    1212
    13    % define path and filename for this machine
    14    switch (oshostname()),
    15       case {'totten'}
    16          filename ='/totten_1/ModelData/Antarctica/Adusumilli2020IceShelfMelt/ANT_iceshelf_melt_rates_CS2_2010-2018_v0.h5';
    17       otherwise
    18          error('hostname not supported yet');
    19    end
     13% define path and filename for this machine
     14switch (oshostname()),
     15        case {'totten'}
     16                filename ='/totten_1/ModelData/Antarctica/Adusumilli2020IceShelfMelt/ANT_iceshelf_melt_rates_CS2_2010-2018_v0.h5';
     17        otherwise
     18                error('hostname not supported yet');
     19end
    2020
    21         disp(['   -- Adusumilli Ice Shelf Melt: loading melt data']);
    22    % read in coordinates:
    23         %       coordinates are in Polar Stereographic projection 'PS-71'
    24    xdata = double(h5read(filename,'/x'));
    25    ydata = double(h5read(filename,'/y'));
     21disp(['   -- Adusumilli Ice Shelf Melt: loading melt data']);
     22% read in coordinates:
     23%       coordinates are in Polar Stereographic projection 'PS-71'
     24xdata = double(h5read(filename,'/x'));
     25ydata = double(h5read(filename,'/y'));
    2626
    27         % read in data:
    28    % 'Basal melt rate (2010–2018), in meters of ice equivalent per year, positive is melting'
    29         % 'For ice shelf areas where CryoSat-2 data were not available, w_b_interp provides the
    30         %  mean melt rate measured at the same ice draft as the grid cell elsewhere on the ice shelf.
    31         %  Ice draft was estimated using BedMachine data.'
    32    data = double(h5read(filename,'/w_b'));
    33         data_interp = double(h5read(filename,'/w_b_interp'));
    34         data = data';
    35         disp(['   -- Adusumilli Ice Shelf Melt: interpolating melt data']);
    36         data(isnan(data)) = data_interp(isnan(data));
    37         output = InterpFromGrid(xdata,ydata,data,X(:),Y(:));
    38         output = reshape(output,size(X,1),size(X,2));
     27% read in data:
     28% 'Basal melt rate (2010–2018), in meters of ice equivalent per year, positive is melting'
     29% 'For ice shelf areas where CryoSat-2 data were not available, w_b_interp provides the
     30%  mean melt rate measured at the same ice draft as the grid cell elsewhere on the ice shelf.
     31%  Ice draft was estimated using BedMachine data.'
     32data = double(h5read(filename,'/w_b'));
     33data_interp = double(h5read(filename,'/w_b_interp'));
     34data = data';
     35disp(['   -- Adusumilli Ice Shelf Melt: interpolating melt data']);
     36data(isnan(data)) = data_interp(isnan(data));
     37output = InterpFromGrid(xdata,ydata,data,X(:),Y(:));
     38output = reshape(output,size(X,1),size(X,2));
  • issm/trunk-jpl/src/m/contrib/morlighem/modeldata/interpRignotIceShelfMelt.m

    r26862 r27517  
    1 function output = interpRignotIceShelfMelt(X,Y,string),
     1function output = interpRignotIceShelfMelt(X,Y,string)
     2%INTERPRIGNOTICESHELFMELT - interp melt rates from Rignot et al. 2013
     3%
     4%   Usage:
     5%      output = interpRignotIceShelfMelt(X,Y)
    26
    3 switch (oshostname()),
     7switch (oshostname())
    48        case {'ronne'}
    59                rignotmelt='/home/ModelData/Antarctica/RignotMeltingrate/Ant_MeltingRate.nc';
Note: See TracChangeset for help on using the changeset viewer.