Unidata / netcdf-java

The Unidata netcdf-java library
https://docs.unidata.ucar.edu/netcdf-java/current/userguide/index.html
BSD 3-Clause "New" or "Revised" License
142 stars 69 forks source link

Coverage axis name case sensitive #1229

Closed tdrwenski closed 1 year ago

tdrwenski commented 1 year ago

Description of Changes

Update the findCoordAxis method used when subsetting coverages to first check axis name case sensitive, then case insensitive. Resolves https://github.com/Unidata/netcdf-java/issues/1219.

The unit test I made is a bit convoluted, I was doubting if it was the best way to test. The only alternative I see is testing in the TDS (which I did manually but could make an automated test as well).

Jenkins tests are passing with this PR: https://jenkins-aws.unidata.ucar.edu/view/Users/job/tara-netcdf-java/24/

PR Checklist