Project

General

Profile

Problem Processing Ocean Heat Content Files: Warning (splitTimevalue) : Reset wrong date/time

Added by Lyndon Mark Olaguera almost 4 years ago

Dear CDO experts,

I am processing monthly OHC files but the dates are somewhat weird. Hence, I get the Warning(splitTimeValue) error.

Here's the output from ncdump:

netcdf OHC_IAP_0_2000m_year_1979_month_01 {
dimensions:
    lat = 180 ;
    lon = 360 ;
    time = UNLIMITED ; // (1 currently)
variables:
    float lat(lat) ;
        lat:long_name = "latitude" ;
        lat:units = "degree_north" ;
        lat:standard_name = "latitude" ;
    float lon(lon) ;
        lon:long_name = "longitude" ;
        lon:units = "degree_east" ;
        lon:standard_name = "longitude" ;
    float time(time) ;
        time:long_name = "time: yyyymm" ;
        time:reference_time = 197901. ;
        time:standard_name = "time" ;
    float OHC100(lat, lon) ;
        OHC100:long_name = "ocean heat content 0-100m" ;
        OHC100:units = "J/m^2" ;
        OHC100:_FillValue = 1.e+30 ;
        OHC100:add_offset = 0.f ;
        OHC100:scale_factor = 1.f ;
        OHC100:standard_name = "Ocean Heat Content" ;
    float OHC300(lat, lon) ;
        OHC300:long_name = "ocean heat content 0-300m" ;
        OHC300:units = "J/m^2" ;
        OHC300:_FillValue = 1.e+30 ;
        OHC300:add_offset = 0.f ;
        OHC300:scale_factor = 1.f ;
        OHC300:standard_name = "Ocean Heat Content" ;
    float OHC700(lat, lon) ;
        OHC700:long_name = "ocean heat content 0-700m" ;
        OHC700:units = "J/m^2" ;
        OHC700:_FillValue = 1.e+30 ;
        OHC700:add_offset = 0.f ;
        OHC700:scale_factor = 1.f ;
        OHC700:standard_name = "Ocean Heat Content" ;
    float OHC1500(lat, lon) ;
        OHC1500:long_name = "ocean heat content 0-1500m" ;
        OHC1500:units = "J/m^2" ;
        OHC1500:_FillValue = 1.e+30 ;
        OHC1500:add_offset = 0.f ;
        OHC1500:scale_factor = 1.f ;
        OHC1500:standard_name = "Ocean Heat Content" ;
    float OHC2000(lat, lon) ;
        OHC2000:long_name = "ocean heat content 0-2000m" ;
        OHC2000:units = "J/m^2" ;
        OHC2000:_FillValue = 1.e+30 ;
        OHC2000:add_offset = 0.f ;
        OHC2000:scale_factor = 1.f ;
        OHC2000:standard_name = "Ocean Heat Content" ;

// global attributes:
        :Title = "IAP 2-D Ocean Heat Content using IAP T/S data" ;
        :StartYear = "1979" ;
        :StartMonth = "1" ;
        :StartDay = "1" ;
        :EndYear = "1979" ;
        :EndMonth = "1" ;
        :EndDay = "30" ;
        :Period = "1" ;
        :GridProjection = "Mercator, gridded" ;
        :GridPoints = "360x180" ;
        :Creator = "Lijing Cheng From IAP,CAS,P.R.China" ;
        :Reference = "Cheng and Zhu 2016. Journal of Climate; Cheng et al. 2017. Science Advances. Website for OHC: http://159.226.119.60/cheng/" ;
}

Here's the output from cdo showdate

Warning (splitTimevalue): Reset wrong date/time to 0019-01-01 00:00:00!
  0019-01-01
cdo showdate: Processed 5 variables over 1 timestep [0.00s 11MB]

I tried changing the calendar, reference time, and axis:

cdo -setcalendar,standard -setreftime,1979-01-01,00:00:00,months -settaxis,1979-08-01,00:00:00 OHC_IAP_0_2000m_year_1979_month_01.nc test.nc
cdo(2) setreftime: Process started
cdo(3) settaxis: Process started
Warning (splitTimevalue): Reset wrong date/time to 0019-01-01 00:00:00!
cdo(2) setreftime: Changing absolute to relative time axis!
cdo(3) settaxis: Processed 324000 values from 5 variables over 1 timestep
cdo(2) setreftime: Processed 324000 values from 5 variables
cdo setcalendar: Processed 324000 values from 5 variables [0.01s 13MB]

I am still getting the same error. I am using CDO version 1.9.6.
Any ideas on how to solve this issue?

Sincerely,
Lyndz


Replies (6)

RE: Problem Processing Ocean Heat Content Files: Warning (splitTimevalue) : Reset wrong date/time - Added by Karin Meier-Fleischer almost 4 years ago

Which version are you using? With CDO 1.9.8 everything works as expected.

cdo -setcalendar,standard -setreftime,1979-01-01,00:00:00,months -settaxis,1979-08-01,00:00:00 OHC_IAP_0_2000m_year_1979_month_01.nc test.nc

cdo(1) setreftime: Process started
cdo(2) settaxis: Process started
cdo(1) setreftime: Changing absolute to relative time axis!
cdo(2) settaxis: Processed 5 variables over 1 timestep.
cdo(1) setreftime: Processed 324000 values from 5 variables over 1 timestep.
cdo    setcalendar: Processed 324000 values from 5 variables over 1 timestep [0.01s 17MB].

cdo info test.nc

    -1 :       Date     Time   Level Gridsize    Miss :     Minimum        Mean     Maximum : Parameter ID
     1 : 1979-08-01 00:00:00       0    64800   21399 : -1.1247e+09  4.9565e+09  1.1976e+10 : -1            
     2 : 1979-08-01 00:00:00       0    64800   21399 : -2.1785e+09  1.1699e+10  3.0936e+10 : -2            
     3 : 1979-08-01 00:00:00       0    64800   21399 : -5.1338e+09  2.0168e+10  6.4927e+10 : -3            
     4 : 1979-08-01 00:00:00       0    64800   21399 : -5.4804e+09  2.8946e+10  8.7566e+10 : -4            
     5 : 1979-08-01 00:00:00       0    64800   21399 : -7.1136e+09  3.2369e+10  1.1693e+11 : -5 

RE: Problem Processing Ocean Heat Content Files: Warning (splitTimevalue) : Reset wrong date/time - Added by Lyndon Mark Olaguera almost 4 years ago

Hi Karin,

I am using version 1.9.6.

I'll upgrade my CDO and recheck. But question though, what could be the reason why this version gives this error?

RE: Problem Processing Ocean Heat Content Files: Warning (splitTimevalue) : Reset wrong date/time - Added by Lyndon Mark Olaguera almost 4 years ago

Hi Karin,

Thanks for the help!

I am using the default environment variables. I am using cdo via conda.

    (1-6/6)