Skip to content

Conversation

@lesserwhirls
Copy link
Member

@lesserwhirls lesserwhirls commented Mar 10, 2025

Fixes #1420

Description of Changes

Starting with netCDF-C 4.9.0, trying to apply a filter to a variable-sized variable results in an error (previous behavior was to ignore the filter). See Unidata/netcdf-c#2716 for details. This PR does changes Nc4ChunkingStrategy.java to skip setting a deflate level if the variable is:

  1. of data type String
  2. variable length
  3. a structure containing a variable that is 1. or 2.

Fixes #1420

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

@lesserwhirls lesserwhirls added bug Something isn't working iosp: netcdf4 netcdf4 file format labels Mar 10, 2025
@lesserwhirls lesserwhirls added this to the v5.8 milestone Mar 10, 2025
@lesserwhirls
Copy link
Member Author

Tests passed on GitHub using netCDF-C 4.8.1 / HDF5 1.12.1, and on Jenkins using netCDF-C 4.8.1 / HDF5 1.12.1 and netCDF-C 4.9.2 / HDF5 1.14.6. Running GitHub test again, but this time using the new thredds-test-environment image, which uses netCDF-C 4.9.2 / HDF5 1.14.6.

@lesserwhirls lesserwhirls marked this pull request as ready for review March 10, 2025 19:14
@lesserwhirls lesserwhirls merged commit 593471d into Unidata:maint-5.x Mar 10, 2025
13 checks passed
@lesserwhirls lesserwhirls deleted the nc4 branch March 10, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working iosp: netcdf4 netcdf4 file format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chunking fail for String variable with new netcdf-c package library (4.9.0)

1 participant