cis icon indicating copy to clipboard operation
cis copied to clipboard

X-axis min and max result in no displayed data

Open eardkdw opened this issue 7 years ago • 1 comments

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?

eardkdw avatar Sep 27 '18 10:09 eardkdw

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

duncanwp avatar Sep 27 '18 12:09 duncanwp