Skip to content

Commit

Permalink
Use the AliasTranslator when getting the datascan location, so that t…
Browse files Browse the repository at this point in the history
…ests with ${cdmUnitTest} variable have correct path for the radar server
  • Loading branch information
tdrwenski committed Sep 18, 2024
1 parent 7df4ff5 commit 4e0df54
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import ucar.nc2.units.DateRange;
import ucar.nc2.units.DateType;
import ucar.nc2.units.TimeDuration;
import ucar.nc2.util.AliasTranslator;

import java.io.File;
import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -59,7 +61,7 @@ static public List<RadarConfigEntry> readXML(String filename) {
Element meta = dataset.getChild("metadata", catNS);
conf.name = dataset.getAttributeValue("name");
conf.urlPath = dataset.getAttributeValue("path");
conf.dataPath = getPath(dataset.getAttributeValue("location"));
conf.dataPath = getPath(AliasTranslator.translateAlias(dataset.getAttributeValue("location")));
conf.dataFormat = meta.getChild("dataFormat", catNS).getValue();
conf.stationFile = meta.getChild("stationFile", catNS).getAttributeValue("path");
conf.doc = meta.getChild("documentation", catNS).getValue();
Expand Down

0 comments on commit 4e0df54

Please sign in to comment.