hypso.georeference.reference

Module Contents

Functions

generate_rgb_geotiff(satObj[, overwrite])

Generate RGB GeoTiff image

generate_full_geotiff(satObj[, product])

Generate Full 120 Band GeoTiff image

generate_geotiff(satObj, bands, cube_data)

Generate geotiff (RGB or Full 120 bands)

interpolate_geotiff(band_number, cube_data, ...)

Interplate Each band of the data cube before saving it to a GeoTiff

export_single_band_geotiff(filename, raster_data, ...)

Export Single Band as individual channel GeoTiff

Attributes

DEBUG

EXPORT_SINGLE_BANDS

r_band_index

g_band_index

b_band_index

hypso.georeference.reference.DEBUG = False
hypso.georeference.reference.EXPORT_SINGLE_BANDS = False
hypso.georeference.reference.r_band_index = 61
hypso.georeference.reference.g_band_index = 50
hypso.georeference.reference.b_band_index = 31
hypso.georeference.reference.generate_rgb_geotiff(satObj, overwrite=False)

Generate RGB GeoTiff image

Parameters:
  • satObj – Hypso satellite object.

  • overwrite (bool) – If true, overwrite the previously generated RGB GeoTiff image

Returns:

No return

Return type:

None

hypso.georeference.reference.generate_full_geotiff(satObj, product='L1C')

Generate Full 120 Band GeoTiff image

Parameters:
  • satObj – Hypso satellite object.

  • product (Literal[L1C, L2-6SV1, L2-ACOLITE]) – Product to generate it can be either “L1C”, “L2-6SV1”, “L2-ACOLITE”

Returns:

No return

Return type:

None

hypso.georeference.reference.generate_geotiff(satObj, bands, cube_data)

Generate geotiff (RGB or Full 120 bands)

Parameters:
  • satObj – Hypso Satellite object

  • bands (list) – List of band indices

  • cube_data (numpy.ndarray) – Numpy array of the cube array to include in the GeoTiff

Returns:

No return

Return type:

None

hypso.georeference.reference.interpolate_geotiff(band_number, cube_data, pixel_coords_map_list, grid_points, resampling_method, contain_mask, geotiff_info, grid_data_all_bands)

Interplate Each band of the data cube before saving it to a GeoTiff

Parameters:
  • band_number (int) – Band number to interpolate

  • cube_data (numpy.ndarray) – Numpy array of data cube

  • pixel_coords_map_list (numpy.ndarray) –

  • grid_points (numpy.ndarray) –

  • resampling_method (str) – Resampling method. Default is “nearest”. Linear is better but slower.

  • contain_mask (numpy.ndarray) –

  • geotiff_info (tuple) –

  • grid_data_all_bands (numpy.ndarray) –

Returns:

No return

Return type:

None

hypso.georeference.reference.export_single_band_geotiff(filename, raster_data, grid_dims, grid_origin, grid_res, grid_epsg)

Export Single Band as individual channel GeoTiff

Parameters:
  • filename (pathlib.Path) – Absolute path to save GeoTiff

  • raster_data (numpy.ndarray) – Numpy array of the data to save in the GeoTiff

  • grid_dims (List[int]) –

  • grid_origin (list) –

  • grid_res (int) –

  • grid_epsg (int) –

Returns:

No return.

Return type:

None