diff --git a/cdm/core/src/main/java/ucar/nc2/ft2/coverage/writer/CoverageAsPoint.java b/cdm/core/src/main/java/ucar/nc2/ft2/coverage/writer/CoverageAsPoint.java index 4e6e0f5f9e..94ef804d22 100644 --- a/cdm/core/src/main/java/ucar/nc2/ft2/coverage/writer/CoverageAsPoint.java +++ b/cdm/core/src/main/java/ucar/nc2/ft2/coverage/writer/CoverageAsPoint.java @@ -160,8 +160,7 @@ private class CoverageAsStationProfileCollection extends StationProfileCollectio private VarGroup varGroup; CoverageAsStationProfileCollection(VarGroup varGroup) { - super(varGroup.name + " AsStationProfileCollection", varGroup.timeAxis.getName(), varGroup.dateUnit, - varGroup.zAxis.getName(), varGroup.zUnit); + super(varGroup.name + " AsStationProfileCollection", varGroup.dateUnit, varGroup.zUnit); this.timeName = varGroup.timeAxis != null ? varGroup.timeAxis.getName() : "time"; this.altName = varGroup.zAxis != null ? varGroup.zAxis.getName() : "altitude"; this.varGroup = varGroup; @@ -310,8 +309,9 @@ public boolean hasNext() throws IOException { @Override public PointFeatureCollection next() throws IOException { double obsTime = this.timeAxis != null ? this.timeAxis.getCoordMidpoint(curr) : 0.0; + String timeName = this.timeAxis != null ? this.timeAxis.getName() : "time"; curr++; - return new CoverageAsProfileFeature(obsTime, varGroup.timeAxis.getName(), varGroup.dateUnit, + return new CoverageAsProfileFeature(obsTime, timeName, varGroup.dateUnit, varGroup.zAxis.getName(), varGroup.zUnit, getLatitude(), getLongitude(), this.varIters); } }