hypso.georeference.reference module

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 (Path) – Absolute path to save GeoTiff

  • raster_data (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

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 (ndarray) – Numpy array of the cube array to include in the GeoTiff

Returns:

No return

Return type:

None

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.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 (ndarray) – Numpy array of data cube

  • pixel_coords_map_list (ndarray) –

  • grid_points (ndarray) –

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

  • contain_mask (ndarray) –

  • geotiff_info (tuple) –

  • grid_data_all_bands (ndarray) –

Returns:

No return

Return type:

None