Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAP4: Attribute values that conform to the DAP4 specification are not read correctly. #259

Open
ndp-opendap opened this issue Oct 30, 2024 · 0 comments
Assignees
Labels
dap4 Work related to DAP4 support

Comments

@ndp-opendap
Copy link
Contributor

ndp-opendap commented Oct 30, 2024

The DAP4 specification section 1.5.14 indicates that Attribute values may be encoded in the DMR as:

<Attribute name="name" type="{atomicTypeName|EnumType fqn}">
  <Namespace href="http://netcdf.ucar.edu/cf"/> <!--optional-->
  <Value value="value"/>
  ...
  <Value value="value"/>
</Attribute>

or

<Attribute name="name" type="{atomicTypeName|EnumType fqn}" value="value"/>

Yet getdap4 (and thus by association libdap) fails to read Attribute values encoded this way. The TDS uses thee aforementioned encodings and the getdap4 is used to retrieve the DMR:

getdap4 -d "http://35.87.12.216:8080/thredds/dap4/data/NSIDC/SMAP_L3_SM_P_20150406_R14010_001.h5"

All of the Attribute values are empty:

            <Attribute name="_ChunkSizes" type="UInt32">
                <Value></Value>
                <Value></Value>
            </Attribute>

We can see with curl:

curl -L "http://35.87.12.216:8080/thredds/dap4/data/NSIDC/SMAP_L3_SM_P_20150406_R14010_001.h5.dmr"

That the TDS returns values:

            <Attribute name="_ChunkSizes" type="UInt32">
                <Value value="1"/>
                <Value value="964"/>
            </Attribute>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dap4 Work related to DAP4 support
Projects
None yet
Development

No branches or pull requests

2 participants