hypso.georeference
Subpackages
Submodules
Package Contents
Functions
|
Generate RGB GeoTiff image |
|
Generate Full 120 Band GeoTiff image |
|
Creates timestamps for files |
|
Function to interpolate at the frame based on the quaternion, position and timestamps |
|
Compute geometry using the framepose data |
|
Start coordinate correction process |
- hypso.georeference.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.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.create_adcs_timestamps_files(nc_path, nc_info)
Creates timestamps for files
- Parameters:
nc_path (pathlib.Path) – Absolute patth of the netCDF4 file
nc_info (dict) – Dictionary containing the capture data and the temporary folder with generated files.
- Returns:
Dictionary used with no modification
- Return type:
dict
- hypso.georeference.interpolate_at_frame(pos_csv_path, quat_csv_path, flash_csv_path, additional_time_offset=0.0, framerate=- 1.0, exposure=- 1.0)
Function to interpolate at the frame based on the quaternion, position and timestamps
- Parameters:
pos_csv_path –
quat_csv_path –
flash_csv_path –
additional_time_offset –
framerate –
exposure –
- Returns:
- Return type:
None
- hypso.georeference.geometry_computation(framepose_data_path, hypso_height=684)
Compute geometry using the framepose data
- Parameters:
framepose_data_path –
hypso_height – Height of the Hypso capture
- Returns:
No return.
- Return type:
None
- hypso.georeference.start_coordinate_correction(points_path, satinfo, proj_metadata, correction_type='affine')
Start coordinate correction process
- Parameters:
points_path (pathlib.Path) – Path of the .points file generated with QGIS software
satinfo (dict) – Dictionary containing capture information
proj_metadata (dict) – Dictionary containing projection metadata of the capture
correction_type (Literal[affine, homography, polynomial, lstsq]) – String with the method out of “affine”, “homography”, polynomial” and “lstsq”
- Returns:
Corrected lat and lon coordinate 2D arrays
- Return type:
Tuple[numpy.ndarray, numpy.ndarray]