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

Cf anyPoint writer rework to use multiple altNames and timeNames #1275

Closed mnlerman closed 8 months ago

mnlerman commented 8 months ago

Description of Changes

Addresses the netcdf-java side of https://github.com/Unidata/tds/issues/269

need to build lists of the stations, feaature data and middle data for collections of features. Loop over them when writing to include all information about the collection.

Note possible performance improvement: since we're looping, we're trying to add some variables twice which is being caught and raising a warning that the variable already exists. Could check if the variable exists sooner.

Still to do: update TDS code to use new methods that have the altName and timeName (I'm working on this today and next week)

PR Checklist