Ignore:
Timestamp:
04/06/08 17:46:03 (12 years ago)
Author:
astephen
Message:

Converted all global_atts to lists of key,value pairs so order can be maintained.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/nc_interface/na_to_nc.py

    r3966 r3991  
    3434     
    3535    def __init__(self, na_file, variables=None, aux_variables=None, 
    36                  global_attributes={"Conventions":"CF-1.0"}, 
     36                 global_attributes=[("Conventions","CF-1.0")], 
    3737                 time_units=None, time_warning=True,  
    3838                 rename_variables={}): 
     
    7979 
    8080        # Write global attributes 
    81         for (att, value) in self.global_attributes.items(): 
     81        for (att, value) in self.global_attributes: 
    8282            setattr(fout, att, value) 
    8383         
Note: See TracChangeset for help on using the changeset viewer.