Class StationWriterUtils
- java.lang.Object
-
- thredds.server.ncss.view.dsg.station.StationWriterUtils
-
public class StationWriterUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description StationWriterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
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
-
-