Changeset 1537 for trunk/libIGCM


Ignore:
Timestamp:
07/08/20 21:35:56 (4 years ago)
Author:
aclsce
Message:

Added EndYear_p1 variable to be used as split_last_date XIOS attribute in light workflow.

Location:
trunk/libIGCM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1535 r1537  
    298298  DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} ) 
    299299  DateEnd=$(   IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd}   ) 
     300  EndYear=$(( $( IGCM_date_ConvertGregorianDateToJulian $DateEnd ) / 1000 )) 
     301  EndYear_p1=$(( $( IGCM_date_ConvertGregorianDateToJulian $DateEnd ) / 1000 + 1 )) 
     302 
    300303 
    301304  # Period Length In Days between DateBegin and DateEnd 
  • trunk/libIGCM/libIGCM_post/xios_parser.py

    r1535 r1537  
    202202                    elem.set('name', os.path.normpath(args.newPath[0]) + '/' + os.path.normpath(name)) 
    203203                if args.verbosity >= 2: print elem.tag, elem.attrib 
    204                 if args.splitLastDate is not None: elem.set('split_last_date', args.splitLastDate[0] + ' 00:00:00') 
     204                if args.splitLastDate is not None: elem.set('split_last_date', args.splitLastDate[0] + '-01-01 00:00:00') 
    205205                if args.ModelVersion is not None: 
    206206                    for childElem in elem.iter(tag='variable'): 
Note: See TracChangeset for help on using the changeset viewer.