Ignore:
Timestamp:
06/24/19 07:44:12 (6 years ago)
Author:
seroussi
Message:

NEW: added anomaly to ISMIP6 forcing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/basalforcingsismip6.m

    r24010 r24044  
    1515                geothermalflux            = NaN;
    1616                groundedice_melting_rate  = NaN;
     17                melt_anomaly              = NaN;
    1718        end
    1819        methods
     
    2425                        self.geothermalflux=project3d(md,'vector',self.geothermalflux,'type','element','layer',1); %bedrock only gets geothermal flux
    2526                        self.groundedice_melting_rate=project3d(md,'vector',self.groundedice_melting_rate,'type','node','layer',1);
     27                        self.melt_anomaly=project3d(md,'vector',self.melt_anomaly,'type','element','layer',1); %bedrock only gets geothermal flux
    2628                end % }}}
    2729                function self = basalforcingsismip6(varargin) % {{{
     
    6163                        md = checkfield(md,'fieldname','basalforcings.geothermalflux','NaN',1,'Inf',1,'>=',0,'timeseries',1);
    6264                        md = checkfield(md,'fieldname','basalforcings.groundedice_melting_rate','NaN',1,'Inf',1,'timeseries',1);
     65                        if length(md.basalforcings.melt_anomaly)>1,
     66                                md = checkfield(md,'fieldname','basalforcings.melt_anomaly','NaN',1,'Inf',1,'timeseries',1);
     67                        end
    6368
    6469                        md = checkfield(md,'fieldname','basalforcings.tf','size',[1,1,numel(md.basalforcings.tf_depths)]);
     
    7984                        fielddisplay(self,'geothermalflux','geothermal heat flux (W/m^2)');
    8085                        fielddisplay(self,'groundedice_melting_rate','basal melting rate (positive if melting) (m/yr)');
     86                        fielddisplay(self,'melt_anomaly','floating ice basal melt anomaly (m/yr)');
    8187
    8288                end % }}}
     
    95101                        WriteData(fid,prefix,'object',self,'fieldname','geothermalflux','format','DoubleMat','name','md.basalforcings.geothermalflux','mattype',1,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts);
    96102                        WriteData(fid,prefix,'object',self,'fieldname','groundedice_melting_rate','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
     103                        WriteData(fid,prefix,'object',self,'fieldname','melt_anomaly','format','DoubleMat','mattype',1,'scale',1./yts,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
    97104
    98105                end % }}}
Note: See TracChangeset for help on using the changeset viewer.