- Timestamp:
- Aug 12, 2019, 5:52:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r2687 r2693 730 730 self.refdate = origSrefdate + ' ' + horrefS + ':' + minrefS + ':' + secrefS 731 731 self.refdateYmdHMS = origSrefdate[0:4] + origSrefdate[5:7] + \ 732 origSrefdate[8:10] + horrefS + ':' + minrefS + ':'+ secrefS732 origSrefdate[8:10] + horrefS + minrefS + secrefS 733 733 self.refdatemat = [yrref, monref, dayref, horref, minref, secref] 734 734 self.refdatejuliand = juliandate(yrref,monref,dayref,horref,minref,secref) … … 2898 2898 fname = 'CFtimesvar_datetime' 2899 2899 2900 timeinf = CFtimeU_inf(units) 2901 2902 tunits = timeinf.Tunits 2903 Srefdate = timeinf.refdate 2904 refdate = timeinf.refdateDT 2905 2900 2906 availtunits = ['weeks', 'days', 'hours', 'minutes', 'seconds', 'miliseconds'] 2901 2907 2902 2908 txtunits = units.split(' ') 2903 tunits = txtunits[0]2904 Srefdate = txtunits[len(txtunits) - 1]2905 # Does reference date contain a time value [YYYY]-[MM]-[DD] [HH]:[MI]:[SS]2906 ##2907 timeval = Srefdate.find(':')2908 if not timeval == -1:2909 # print ' refdate with time!'2910 refdate = datetimeStr_datetime(txtunits[len(txtunits) - 2] + '_' + Srefdate)2911 else:2912 refdate = dateStr_date(Srefdate)2913 2909 2914 2910 dimt = len(times)
Note: See TracChangeset
for help on using the changeset viewer.