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
146 stars 71 forks source link

Add MFile method to create child MFile #1173

Closed tdrwenski closed 1 year ago

tdrwenski commented 1 year ago

Description of Changes

The method added in the PR is needed for S3 DatasetScans and also if we want featureCollection indices in S3. The idea is that if we have a directory and want to get the file path of a file in that directory, we should let MFile handle that to avoid repeatedly parsing path strings (For S3 the separator could be "/" or "?" if its a bucket, and it also may have a fragment in the uri like cdms3:mybucket/dir#delimiter=/ so appending /filename.nc or whatever doesn't work.)