ZGIS / semantique

Semantic Querying in Earth Observation Data Cubes
https://zgis.github.io/semantique/
Apache License 2.0
16 stars 6 forks source link

UserWarning raised about nanosecond precision of timestamps #28

Closed luukvdmeer closed 1 year ago

luukvdmeer commented 1 year ago

When executing a query recipe, the following UserWarning is raised:

UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time.

This should be fixed by explicity stating the precision whenever creating datetime64 objects.

luukvdmeer commented 1 year ago

This is fixed now with the commits referenced above