- Timestamp:
- 08/08/23 11:26:37 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/contrib/musselman/read_netCDF_commit.py
r27859 r27874 24 24 25 25 def read_netCDF(filename): 26 print('NetCDF42C v1.1.1 2')26 print('NetCDF42C v1.1.13') 27 27 28 28 # check if path exists … … 54 54 # walk through each group looking for subgroups and variables 55 55 for group in NCData.groups.keys(): 56 # have to send a custom name to this function: filename.groups['group'] 57 name = "NCData.groups['" + str(group) + "']" 58 walk_nested_groups(name) 56 if 'debris' in group: 57 pass 58 else: 59 # have to send a custom name to this function: filename.groups['group'] 60 name = "NCData.groups['" + str(group) + "']" 61 walk_nested_groups(name) 59 62 63 print("Model Successfully Recreated.") 60 64 return model_copy 61 65 … … 116 120 if str(location_of_variable_in_model + '.' + variable_name) =='results.solutionstep': 117 121 pass 122 # qmu band-aid 123 elif 'qmu.statistics.method' in str(location_of_variable_in_model + '.' + variable_name): 124 pass 118 125 # handle any strings: 119 126 elif 'char' in eval(location_of_variable_in_file + '.dimensions[0]'): … … 151 158 152 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
Note:
See TracChangeset
for help on using the changeset viewer.