Changeset 2509 in lmdz_wrf


Ignore:
Timestamp:
May 6, 2019, 2:41:44 PM (6 years ago)
Author:
lfita
Message:

Adding `julian' calendar to 'CFfile_fixTime'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2505 r2509  
    3174331743            print '    ' + fname + ": fixing calendar to 'gregorian'..."
    3174431744
    31745             newtimv = gen.change_CFcalendar(timevs, tunits, origcal)
    31746             newtunits = tunits + ''
     31745            if origcal == 'julian':
     31746                newtimv = timevs + 0.
     31747            else:
     31748                newtimv = gen.change_CFcalendar(timevs, tunits, origcal)
     31749                newtunits = tunits + ''
    3174731750            otime.setncattr('calendar', 'gregorian')
    3174831751
Note: See TracChangeset for help on using the changeset viewer.