cedadev / cis

Home of the Community Intercomparison Suite.
www.cistools.net
GNU Lesser General Public License v3.0
46 stars 18 forks source link

X-axis min and max result in no displayed data #18

Open eardkdw opened 5 years ago

eardkdw commented 5 years ago

There seems to be a bug in the time-axis calculations. Minimum example using sensor_data.nc from https://github.com/ncasuk/ncas-isc/blob/master/python/exercises/example_data/sensor_data.nc

cis plot temp:sensor_data.nc

works as expected, but

cis plot temp:sensor_data.nc --xmin "2017-02-22T10:00:08" --xmax "2017-02-22T11:00:08"

produces a blank plot. Further investigation reveals that:

cis plot temp:sensor_data.nc --xmin "2017-02-23T10:00:08" --xmax "2017-02-23T11:00:08"

produces the expected data for the 22nd, despite the time dimension in the netCDF file being ""seconds since 2017-02-22 10:00:08", suggesting an off-by-one error on the days?

duncanwp commented 5 years ago

Thanks Dan - that's bizarre! I'll check it out soon hopefully.