Skip to content

The DAP4 specification, the TDS, and the Hyrax do not agree on endianness  #8

@ndp-opendap

Description

@ndp-opendap

TDS implementation of DAP4 appears to be incorrectly setting the endianness in the chunk type fields in data response.

It appears the specification has conflicting information about how to determine endianness.

In the DMR attributes there is an optional DAP Attribute _DAP4_Little_Endian that can be used to assert the endianness of the response. Yet, each Chunk header contains a chunk-type that also can assert the endianness (see Chunk Type Encoding table).

Which also states the:

"The Endian flag must be set only in the first Data chunk. It applies to the whole response. If set in any subsequent chunk type, it will be ignored."

And the TDS is setting the endianness in the ChunkType of the very first chink (The one with the DMR)

This is kind of a mess - the specification has too many ways to determine this, and even then it's not crystal clear how it should be accomplished.

I think Hyrax, the TDS, and the DAP4 specification all need an endianness tuneup.

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