reVX.utilities.utilities.rev_sc_to_geotiff_arr
- rev_sc_to_geotiff_arr(sc, excl_fp, resolution, cols, dtype='float32')[source]
Convert a reV supply curve to a GeoTIF-like array
- Parameters:
sc (pandas.DataFrame) – reV supply curve containing all cols.
excl_fp (str) – Path to exclusions file used to create the supply curve.
resolution (int) – Supply curve resolution (aggregation factor).
cols (iter of str) – Iterable of column names to convert to GeoTIFF files. Each column will be converted to a GeoTIFF file. Only numeric columns are supported.
dtype ({“float32”, “float64”}, default=”float32”) – Data type to save the GeoTIFF data as. By default, “float32”.
- Yields:
col, values, profile (tuple) – Tuple of (column name, 2D array of values, rasterio profile) for each column in cols.