Class AbstractStationProfileSubsetWriter
- java.lang.Object
-
- thredds.server.ncss.view.dsg.DsgSubsetWriter
-
- thredds.server.ncss.view.dsg.station.AbstractStationProfileSubsetWriter
-
- Direct Known Subclasses:
StationProfileSubsetWriterCSV,StationProfileSubsetWriterNetcdf,StationProfileSubsetWriterXML
public abstract class AbstractStationProfileSubsetWriter extends DsgSubsetWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractStationProfileSubsetWriter.ClosestTimeStationProfileFeatureSubset
-
Field Summary
Fields Modifier and Type Field Description protected booleanheaderDoneprotected ucar.nc2.ft.StationProfileFeatureCollectionstationFeatureCollectionprotected List<ucar.nc2.ft.point.StationFeature>wantedStations-
Fields inherited from class thredds.server.ncss.view.dsg.DsgSubsetWriter
fdPoint, ncssParams, wantedRange, wantedVariables
-
-
Constructor Summary
Constructors Constructor Description AbstractStationProfileSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams)AbstractStationProfileSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams, int collectionIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidwrite()protected abstract voidwriteFooter()protected abstract voidwriteHeader(ucar.nc2.ft.StationProfileFeature stn)protected voidwriteProfileFeature(ucar.nc2.ft.StationProfileFeature stn, ucar.nc2.ft.ProfileFeature profileFeat)protected abstract voidwriteStationPointFeature(ucar.nc2.ft.StationProfileFeature stn, ucar.nc2.ft.point.StationPointFeature stationPointFeat)protected intwriteStationProfileTimeSeriesFeature(ucar.nc2.ft.StationProfileFeature stationProfileFeat)-
Methods inherited from class thredds.server.ncss.view.dsg.DsgSubsetWriter
getHttpHeaders, getWantedDateRange, getWantedVariables, respond
-
-
-
-
Field Detail
-
stationFeatureCollection
protected final ucar.nc2.ft.StationProfileFeatureCollection stationFeatureCollection
-
wantedStations
protected final List<ucar.nc2.ft.point.StationFeature> wantedStations
-
headerDone
protected boolean headerDone
-
-
Constructor Detail
-
AbstractStationProfileSubsetWriter
public AbstractStationProfileSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams) throws NcssException, IOException- Throws:
NcssExceptionIOException
-
AbstractStationProfileSubsetWriter
public AbstractStationProfileSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams, int collectionIndex) throws NcssException, IOException- Throws:
NcssExceptionIOException
-
-
Method Detail
-
writeHeader
protected abstract void writeHeader(ucar.nc2.ft.StationProfileFeature stn) throws Exception- Throws:
Exception
-
writeProfileFeature
protected void writeProfileFeature(ucar.nc2.ft.StationProfileFeature stn, ucar.nc2.ft.ProfileFeature profileFeat) throws Exception- Throws:
Exception
-
writeStationPointFeature
protected abstract void writeStationPointFeature(ucar.nc2.ft.StationProfileFeature stn, ucar.nc2.ft.point.StationPointFeature stationPointFeat) throws Exception- Throws:
Exception
-
write
public void write() throws Exception- Specified by:
writein classDsgSubsetWriter- Throws:
Exception
-
-