Class StationWriterUtils
java.lang.Object
thredds.server.ncss.view.dsg.station.StationWriterUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ucar.unidata.geoloc.StationfindClosestStation(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)
-
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 searchedpt- - target LatLonPoint- Returns:
- The Station in stationFeatCol closest to pt
-