reVX.utilities.fix_sc_lat_lons.fix_sc_lat_lon

fix_sc_lat_lon(sc_fps, excl_fp, resolution, as_gpkg=False)[source]

Transform pixel locations to latitude/longitude positions.

Parameters:
  • sc_fps (iterable of path-like) – One or more paths to supply curves to be fixed.

  • excl_fp (iterable of path-like) – One or more paths to exclusions files.

  • resolution (int) – Supply curve resolution (aggregation factor).

  • as_gpkg (bool, default=False) – option to return fixed supply curve as a GeoPackage where the geometries are supply curve cells.

Returns:

latitudes, longitudes (np.ndarray) – Pixels transformed to latitudes and longitudes.