Changeset 1272 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Nov 7, 2016, 6:57:11 PM (8 years ago)
Author:
lfita
Message:

Fixing var_model' to break loop when variable is not found for diag'
Removing acccents from some attributes (seems to break in ciclad?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1269 r1272  
    10221022        attr = ncv.delncattr(attrname)
    10231023
     1024    if attrname == 'original_subroutines_author':
     1025        attrvalue = 'Cindy Bruyere'
    10241026    attr = ncv.setncattr(attrname, attrvalue)
    10251027       
     
    97199721# global attributes
    97209722    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')
    97239728    objnewnc.setncattr('university', 'Pierre Marie Curie - Jussieu')
    97249729    objnewnc.setncattr('center', 'Centre National de Recherches Scientifiques')
     
    97339738    for attr in gorigattrs:
    97349739        attrv = objnc.getncattr(attr)
    9735         atvar = set_attribute(objnewnc, attr, attrv)
     9740        atvar = set_attributek(objnewnc, attr, attrv, type(attrv))
    97369741
    97379742    objnc.close()
     
    1679516800                          else:
    1679616801                              alltrue = False
     16802                              break
    1679716803                  else:
    1679816804                      if gen.searchInlist(ncvars,combovs): alltrue = True
     
    1681216818                        else:
    1681316819                            alltrue = False
     16820                            break
    1681416821                else:
    1681516822                    if gen.searchInlist(ncvars,combovar): alltrue = True
Note: See TracChangeset for help on using the changeset viewer.