sup3r.preprocessing.feature_handling.LatLonH5

class LatLonH5[source]

Bases: object

Lat Lon feature class with compute method

Methods

compute(file_paths, raster_index)

Get lats and lons corresponding to raster for use in windspeed/direction -> u/v mapping

static compute(file_paths, raster_index)[source]

Get lats and lons corresponding to raster for use in windspeed/direction -> u/v mapping

Parameters:
  • file_paths (list) – path to data file

  • raster_index (ndarray) – Raster index array

Returns:

ndarray – lat lon array (spatial_1, spatial_2, 2)