[ncl-talk] How to Access root group of NETCDF-4

David Brown dbrown at ucar.edu
Fri Sep 11 14:54:26 MDT 2015


You can access them just as you would access a variable in a classic
NetCDF3 file:

var = f->varname

or you can include the root group indicator if you like:

var = f->/varname

or if the name has unusual characters (meaning non-numeric,
non-alphabetic, and not '_') then you can use the string syntax:

var = f->$"var name with spaces, punctuation, etc."$

This form can also contain the root group indicator:

var = f->$"/var name with spaces, punctuation, etc."$

Hope this helps.
 -dave



On Fri, Sep 11, 2015 at 11:18 AM, Mariama Barr - Dallas <bama4 at umbc.edu> wrote:
> Hello,
> I have a .nc4 file that has some datasets in the root (main) folder, not in
> any group. how do I access these?
>
> --
> Mariama Barr-Dallas
> Meyerhoff Scholar/ NSA Scholar M23
> Computer Science Major, History Major
> University of Maryland Baltimore County
> Class of 2015
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list