Changeset 1272 in lmdz_wrf for trunk/tools
- Timestamp:
- Nov 7, 2016, 6:57:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1269 r1272 1022 1022 attr = ncv.delncattr(attrname) 1023 1023 1024 if attrname == 'original_subroutines_author': 1025 attrvalue = 'Cindy Bruyere' 1024 1026 attr = ncv.setncattr(attrname, attrvalue) 1025 1027 … … 9719 9721 # global attributes 9720 9722 objnewnc.setncattr('author', 'L. Fita') 9721 newattr = set_attributek(objnewnc, 'institution', unicode('Laboratoire de M' + \ 9722 unichr(233) + 't' + unichr(233) + 'orologie Dynamique'), 'U') 9723 # Not working in ciclad 9724 #newattr = set_attributek(objnewnc, 'institution', unicode('Laboratoire de M' + \ 9725 # unichr(233) + 't' + unichr(233) + 'orologie Dynamique'), 'U') 9726 newattr = set_attributek(objnewnc, 'institution', 'Laboratoire de Meteorologie'+ \ 9727 ' Dynamique', 'S') 9723 9728 objnewnc.setncattr('university', 'Pierre Marie Curie - Jussieu') 9724 9729 objnewnc.setncattr('center', 'Centre National de Recherches Scientifiques') … … 9733 9738 for attr in gorigattrs: 9734 9739 attrv = objnc.getncattr(attr) 9735 atvar = set_attribute (objnewnc, attr, attrv)9740 atvar = set_attributek(objnewnc, attr, attrv, type(attrv)) 9736 9741 9737 9742 objnc.close() … … 16795 16800 else: 16796 16801 alltrue = False 16802 break 16797 16803 else: 16798 16804 if gen.searchInlist(ncvars,combovs): alltrue = True … … 16812 16818 else: 16813 16819 alltrue = False 16820 break 16814 16821 else: 16815 16822 if gen.searchInlist(ncvars,combovar): alltrue = True
Note: See TracChangeset
for help on using the changeset viewer.