Skip to content

Commit

Permalink
Use NetcdfDataset instead of NetcdfFile so opendap will apply enhance…
Browse files Browse the repository at this point in the history
…ments like scale/offset
  • Loading branch information
Tara Drwenski committed Jan 10, 2024
1 parent 10f775f commit d359b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tds/src/main/java/thredds/core/DatasetManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ public NetcdfFile openNetcdfFile(HttpServletRequest req, HttpServletResponse res

DatasetUrl durl = DatasetUrl.findDatasetUrl(location);
if (useNetcdfJavaBuilders || isLocationObjectStore(location)) {
ncfile = NetcdfDatasets.acquireFile(durl, null);
ncfile = NetcdfDatasets.acquireDataset(durl, null);
} else {
ncfile = NetcdfDataset.acquireFile(durl, null);
ncfile = NetcdfDataset.acquireDataset(durl, null);
}
}

Expand Down

0 comments on commit d359b4c

Please sign in to comment.