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
143 stars 68 forks source link

Classifier #1357

Closed matakleo closed 2 weeks ago

matakleo commented 4 weeks ago

Description of Changes

Using ncml attributes description, the classifier can now modify the array into any number of different classes with different ranges!

example:

    <attribute name="Cat4" type="string"  value="100 NaN 1000" />

will sort numbers from -inf to 0 into category 0, and numbers from 100 to +inf into category 1000.

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"