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
public abstract class AbstractStationSubsetWriter extends DsgSubsetWriter
Created by cwardgar on 2014/05/20.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractStationSubsetWriter.ClosestTimeStationFeatureSubset
-
Field Summary
Fields Modifier and Type Field Description protected booleanheaderDoneprotected ucar.nc2.ft.StationTimeSeriesFeatureCollectionstationFeatureCollectionprotected 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 AbstractStationSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ucar.unidata.geoloc.StationfindClosestStation(ucar.nc2.ft.StationTimeSeriesFeatureCollection stationFeatCol, ucar.unidata.geoloc.LatLonPoint pt)static List<ucar.nc2.ft.point.StationFeature>getStationsInSubset(ucar.nc2.ft.StationTimeSeriesFeatureCollection stationFeatCol, ucar.nc2.ft2.coverage.SubsetParams ncssParams)voidwrite()protected abstract voidwriteFooter()protected 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 Detail
-
stationFeatureCollection
protected final ucar.nc2.ft.StationTimeSeriesFeatureCollection stationFeatureCollection
-
wantedStations
protected final List<ucar.nc2.ft.point.StationFeature> wantedStations
-
headerDone
protected boolean headerDone
-
-
Constructor Detail
-
AbstractStationSubsetWriter
public AbstractStationSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams) throws NcssException, IOException- Throws:
NcssExceptionIOException
-
-
Method Detail
-
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
public void write() throws Exception- Specified by:
writein classDsgSubsetWriter- Throws:
Exception
-
writeStationTimeSeriesFeature
protected int writeStationTimeSeriesFeature(ucar.nc2.ft.StationTimeSeriesFeature stationFeat) throws Exception- Throws:
Exception
-
getStationsInSubset
public static List<ucar.nc2.ft.point.StationFeature> getStationsInSubset(ucar.nc2.ft.StationTimeSeriesFeatureCollection stationFeatCol, ucar.nc2.ft2.coverage.SubsetParams ncssParams) throws IOException
- Throws:
IOException
-
findClosestStation
public static ucar.unidata.geoloc.Station findClosestStation(ucar.nc2.ft.StationTimeSeriesFeatureCollection stationFeatCol, ucar.unidata.geoloc.LatLonPoint pt) throws IOException- Throws:
IOException
-
-