Changeset 578 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jul 7, 2015, 12:19:06 PM (10 years ago)
Author:
lfita
Message:

Adding a more appropriate way to include the 'desc' values as global attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/read_ISD.py

    r559 r578  
    777777for descn in description.keys():
    778778    if descn[0:3] != 'var' and descn[0:4] != 'NAME' and descn[0:3] != 'FMT':
    779         set_attribute(objfile, descn, description[descn])
     779        string=''
     780        for sval in description[descn]:
     781            string = string + str(sval) + ', '
     782        set_attribute(objfile, descn, string)
    780783
    781784set_attribute(objfile,'author_nc','Lluis Fita')
Note: See TracChangeset for help on using the changeset viewer.