Changeset 21356
- Timestamp:
- 11/10/16 03:20:58 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/contrib/defleurian/netCDF/export_netCDF.py
r21303 r21356 89 89 DimDict=CreateVar(NCData,Var,subfield,Listgroup,DimDict,False,md.__dict__[group],field,listindex) 90 90 #No subgroup, we directly treat the variable 91 elif type(md.__dict__[group].__dict__[field]) in typelist :91 elif type(md.__dict__[group].__dict__[field]) in typelist or field=='bamg': 92 92 NCgroup.__setattr__('classtype', md.__dict__[group].__class__.__name__) 93 93 Var=md.__dict__[group].__dict__[field] 94 94 DimDict=CreateVar(NCData,Var,field,NCgroup,DimDict,False) 95 95 else: 96 96 NCgroup.__setattr__('classtype', str(group)) 97 97 Subgroup=NCgroup.createGroup(str(field)) 98 98 Subgroup.__setattr__('classtype',md.__dict__[group].__class__.__name__) 99 99 subfields=dict.keys(md.__dict__[group].__dict__[field].__dict__) 100 100 101 for subfield in subfields: 101 102 if str(subfield)!='outlog':
Note:
See TracChangeset
for help on using the changeset viewer.