Skip to content

dimensions in gridded data output #226

@smwoodman

Description

@smwoodman

A colleague pointed out that the gridded NetCDF file produced by make_gridfiles has depth as the 'x coordinate', and time as the 'y coordinate'.

xdimname = 'time'
dsout = xr.Dataset(
coords={'depth': ('depth', depths), 'profile': (xdimname, profiles)}
)

It feels more intuitive to have these switched? For instance, in the function itself time is referred to as the xdimname.
Also, this (time as the x dim, depth as the y dim) is how the old socib toolbox writes its gridded data files.

I believe the only change would be changing line 275 to coords={'profile': (xdimname, profiles), 'depth': ('depth', depths)}

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