Skip to content

contiguous time axis  #7525

Closed
Closed
@danhamill

Description

@danhamill

What is your issue?

I have a dataset I created using xarray. When I am using netcdf-java to read the time axis, I am getting edges that aren't the same values as the time axis coordinates.

The xarray-developed dataset looks like:

image

From netcdf-java I see the CoordinateAxis1DTime axis with the following attributes:

image

The edge array is offset by -0.5 days. After a little digging through the java docs, I found the CoordinateAxis1DTime.edge array will only be the same as the CoordinateAxis1DTime.coords array when the ContiniousAxis1DTime.isContiguous() evaluates as True. But the java docs indicate:

image

How can I write a netcdf file using xarray where the time axis would be considered contiguous?

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