Skip to content

dap4.core.util.DapException: Illegal chunk size #637

@Mikejmnez

Description

@Mikejmnez

Hiya @lesserwhirls per our chat earlier:

An xarray/pydap user reported having trouble decoding the dap response from a NetCDF file using the TDS DAP4 service they are trying to set up. I took a look and became aware of two issues that seem TDS-specific

  • Deserializing time_string variable. This is a 1D array of all string elements of size ~5400. The issue arises when the dap response contains a subset of time_string>=2730. Anything less, it works fine (I think). My insights into the dap response from TDS are limited and may not be 100% accurate.

  • dap4.core.util.DapException: Illegal chunk size: 114574 when I attempt to download the entire DAP response from the TDS using the web browser.

Here is the public TDS endpoint (and you can replicate the 400 error and see the entire traceback when attempting to download the dap response):

https://thredds.atmohub.kit.edu/thredds/dap4/musica-iasi/Full_v030301/2021/IASIA_MUSICA_030301_L2_AllTargetProducts_20210101054454_73699.nc

Pydap can deserialize fine the dap response from this file produced by Hyrax, but that provides no insight into why it fails to deserialize the response from the TDS.

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