Skip to content

ncdump -s fails on UDF files with "Unrecognized format" error #3411

Description

@captainkirk99

When ncdump -s tries to print out the format of a file opened with User Defined Formats (as is done by the NetCDF Expansion Pack), it fails with "Unrecognized format" error.

For example:

netcdf ABBA_2022_C61_HNL {
dimensions:
        x = 55877 ;
        y = 41013 ;
        bnds = 2 ;
variables:
        ubyte data(y, x) ;
                data:_Storage = "contiguous" ;
        ...
// global attributes:
ncdump: unrecognized file format: 9

This is a simple fix, however testing was a pain.

I will have a PR up with a fix shortly...

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