Class StationWriterUtils

java.lang.Object
thredds.server.ncss.view.dsg.station.StationWriterUtils

public class StationWriterUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static ucar.unidata.geoloc.Station
    findClosestStation(ucar.nc2.ft.StationFeatureCollection stationFeatCol, ucar.unidata.geoloc.LatLonPoint pt)
    Find the station closest to the specified point.
    static List<ucar.nc2.ft.point.StationFeature>
    getStationsInSubset(ucar.nc2.ft.StationFeatureCollection stationFeatCol, ucar.nc2.ft2.coverage.SubsetParams ncssParams)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StationWriterUtils

      public StationWriterUtils()
  • Method Details

    • getStationsInSubset

      public static List<ucar.nc2.ft.point.StationFeature> getStationsInSubset(ucar.nc2.ft.StationFeatureCollection stationFeatCol, ucar.nc2.ft2.coverage.SubsetParams ncssParams) throws IOException
      Throws:
      IOException
    • findClosestStation

      public static ucar.unidata.geoloc.Station findClosestStation(ucar.nc2.ft.StationFeatureCollection stationFeatCol, ucar.unidata.geoloc.LatLonPoint pt)
      Find the station closest to the specified point. The metric is (lat-lat0)**2 + (cos(lat0)*(lon-lon0))**2
      Parameters:
      stationFeatCol - - StationFeatureCollection to be searched
      pt - - target LatLonPoint
      Returns:
      The Station in stationFeatCol closest to pt