Skip to content

Missing Netcdf metadata #158

@dpabon

Description

@dpabon

YAXArrays v0.3.0
Julia 1.7.3

When using open_dataset() the metadata (e.g. long variable name, units, etc) can not be accessed anymore.

sim_cube_path = "/Net/Groups/BGI/people/awinkler/share/Historical-LandUse_CMIP6.nc"

sim_cube = open_dataset(sim_cube_path)

Produce:

YAXArray Dataset
Dimensions: 
   simulation          Axis with 2 elements: historical hist-noLu 
   lat                 Axis with 382 Elements from -90.0 to 90.0
   model               Axis with 1 elements: CESM2 
   lon                 Axis with 288 Elements from 0.0 to 358.75
   time                Axis with 3600 Elements from 1850-01-31T00:00:00 to 2149-12-31T00:00:00
Variables: rsdscs hfls clt hurs rldscs rlut evspsbl rsuscs rsut ts rlds psl tran hfss lai rsdt mrso sfcWind rsutcs grassFrac treeFrac rlutcs tas rlus rsus rsds mrsos

Is there a way to access the description of the variables directly from Julia?

pd. An option to pass missing values could be useful, e.g. open_dataset(sim_cube, missing = 1.e+20f)

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