Class StationWriterUtils


  • public class StationWriterUtils
    extends Object
    • Constructor Detail

      • StationWriterUtils

        public StationWriterUtils()
    • 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 searched
        pt - - target LatLonPoint
        Returns:
        The Station in stationFeatCol closest to pt