Skip to content

Handling of local time #203

@frizwi

Description

@frizwi

Xarray converts time to UTC when TZ is present in the source. This makes it's way to various plotting routines, eg. transect.

ds = emsarray.open_dataset('https://thredds.nci.org.au/thredds/dodsC/fx3/gbr4_H4p0_ABARRAr2_OBRAN2020_FG2Gv3_Dhnd/gbr4_simple_2022-10-01.nc')
ds['time'][0].data

array('2022-09-30T14:00:00.000000000', dtype='datetime64[ns]')

Users typically expect the timepoints in the netcdf file to be shown as is.

So this ticket is a request for an additional argument to emsarray.open_dataset() for make_time_local.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions