Class AbstractStationSubsetWriter
java.lang.Object
thredds.server.ncss.view.dsg.DsgSubsetWriter
thredds.server.ncss.view.dsg.station.AbstractStationSubsetWriter
- Direct Known Subclasses:
StationSubsetWriterCSV,StationSubsetWriterNetcdf,StationSubsetWriterWaterML,StationSubsetWriterXML
Created by cwardgar on 2014/05/20.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final ucar.nc2.ft.StationTimeSeriesFeatureCollectionprotected final List<ucar.nc2.ft.point.StationFeature>Fields inherited from class thredds.server.ncss.view.dsg.DsgSubsetWriter
fdPoint, ncssParams, wantedRange, wantedVariables -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStationSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams) AbstractStationSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams, int collectionIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite()protected abstract voidprotected abstract voidwriteHeader(ucar.nc2.ft.point.StationPointFeature stationPointFeat) protected abstract voidwriteStationPointFeature(ucar.nc2.ft.point.StationPointFeature stationPointFeat) protected intwriteStationTimeSeriesFeature(ucar.nc2.ft.StationTimeSeriesFeature stationFeat) Methods inherited from class thredds.server.ncss.view.dsg.DsgSubsetWriter
getHttpHeaders, getWantedDateRange, getWantedVariables, respond
-
Field Details
-
stationFeatureCollection
protected final ucar.nc2.ft.StationTimeSeriesFeatureCollection stationFeatureCollection -
wantedStations
-
headerDone
protected boolean headerDone
-
-
Constructor Details
-
AbstractStationSubsetWriter
public AbstractStationSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams) throws NcssException, IOException - Throws:
NcssExceptionIOException
-
AbstractStationSubsetWriter
public AbstractStationSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams, int collectionIndex) throws NcssException, IOException - Throws:
NcssExceptionIOException
-
-
Method Details
-
writeHeader
protected abstract void writeHeader(ucar.nc2.ft.point.StationPointFeature stationPointFeat) throws Exception - Throws:
Exception
-
writeStationPointFeature
protected abstract void writeStationPointFeature(ucar.nc2.ft.point.StationPointFeature stationPointFeat) throws Exception - Throws:
Exception
-
write
- Specified by:
writein classDsgSubsetWriter- Throws:
Exception
-
writeStationTimeSeriesFeature
protected int writeStationTimeSeriesFeature(ucar.nc2.ft.StationTimeSeriesFeature stationFeat) throws Exception - Throws:
Exception
-