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
  • Field Details

    • stationFeatureCollection

      protected final ucar.nc2.ft.StationProfileFeatureCollection stationFeatureCollection
    • wantedStations

      protected final List<ucar.nc2.ft.point.StationFeature> wantedStations
    • headerDone

      protected boolean headerDone
  • Constructor Details

    • AbstractStationProfileSubsetWriter

      public AbstractStationProfileSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams) throws NcssException, IOException
      Throws:
      NcssException
      IOException
    • AbstractStationProfileSubsetWriter

      public AbstractStationProfileSubsetWriter(ucar.nc2.ft.FeatureDatasetPoint fdPoint, ucar.nc2.ft2.coverage.SubsetParams ncssParams, int collectionIndex) throws NcssException, IOException
      Throws:
      NcssException
      IOException
  • Method Details

    • 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
    • writeFooter

      protected abstract void writeFooter() throws Exception
      Throws:
      Exception
    • write

      public void write() throws Exception
      Specified by:
      write in class DsgSubsetWriter
      Throws:
      Exception
    • writeStationProfileTimeSeriesFeature

      protected int writeStationProfileTimeSeriesFeature(ucar.nc2.ft.StationProfileFeature stationProfileFeat) throws Exception
      Throws:
      Exception