Changeset 1442


Ignore:
Timestamp:
04/20/18 12:15:35 (6 years ago)
Author:
sdipsl
Message:
  • Modify cfSites output as per the CFMIP-3 protocol. For CFMIP-3 cfSites the sampling interval should be the integer multiple of the model time step that is nearest to 30 min and divides into 60 min with no remainder: e.g. 30 min for a 30, 15 or 10 min time step or 20 min for a 20 min time step.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_post/xios_parser.py

    r1436 r1442  
    240240                    elem.set('freq_offset', '0ts') 
    241241                    if args.verbosity >= 2: print elem.tag, elem.attrib 
    242  
     242        # Change some elements related to CFsubhr files 
     243        for elem in tree.iter(tag='file'): 
     244            if elem.attrib.get('id') is not None: 
     245                if ("_CFsubhr_" in elem.attrib.get('id')): 
     246                    write=True 
     247                    elem.set('output_freq', '2ts') 
     248                    if args.verbosity >= 2: print elem.tag, elem.attrib 
     249        # Ready 
    243250        if write: 
    244251            # Write out the results 
Note: See TracChangeset for help on using the changeset viewer.