Changeset 25682
- Timestamp:
- 10/12/20 14:15:14 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/hydrologyglads.py
r25023 r25682 1 1 import numpy as np 2 3 from checkfield import checkfield 2 4 from fielddisplay import fielddisplay 3 from checkfield import checkfield4 5 from WriteData import WriteData 5 6 6 7 7 8 class hydrologyglads(object): 8 """ 9 HydrologyGlaDSclass definition 9 """HYDROLOGYGLADS class definition 10 10 11 11 Usage: 12 hydrologyglads = hydrologyglads()12 hydrologyglads = hydrologyglads() 13 13 """ 14 14 … … 101 101 md = checkfield(md, 'fieldname', 'hydrology.spcphi', 'Inf', 1, 'timeseries', 1) 102 102 md = checkfield(md, 'fieldname', 'hydrology.englacial_void_ratio', 'numel', [1], '>=', 0) 103 md = checkfield(md, 'fieldname', 'hydrology.moulin_input', ' size', [md.mesh.numberofvertices], '>=', 0, 'NaN', 1, 'Inf', 1)103 md = checkfield(md, 'fieldname', 'hydrology.moulin_input', '>=', 0, 'timeseries', 1, 'NaN', 1, 'Inf', 1) 104 104 md = checkfield(md, 'fieldname', 'hydrology.neumannflux', 'timeseries', 1, 'NaN', 1, 'Inf', 1) 105 105 md = checkfield(md, 'fieldname', 'hydrology.requested_outputs', 'stringrow', 1) … … 128 128 WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'spcphi', 'format', 'DoubleMat', 'mattype', 1, 'timeserieslength', md.mesh.numberofvertices + 1, 'yts', yts) 129 129 WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'neumannflux', 'format', 'DoubleMat', 'mattype', 2, 'timeserieslength', md.mesh.numberofelements + 1, 'yts', yts) 130 WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'moulin_input', 'format', 'DoubleMat', 'mattype', 1 )130 WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'moulin_input', 'format', 'DoubleMat', 'mattype', 1, 'scale', 1. / yts, 'timeserieslength', md.mesh.numberofvertices + 1, 'yts', md.constants.yts) 131 131 WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'englacial_void_ratio', 'format', 'Double') 132 132 WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'melt_flag', 'format', 'Boolean')
Note:
See TracChangeset
for help on using the changeset viewer.