hypso.atmospheric

Submodules

Package Contents

Functions

run_py6s(wavelengths, hypercube_L1, hypso_info, ...)

Run the PY6S atmospheric correction on the Hypso spectral image

run_acolite(hypso_info, atmos_dict, nc_file_acoliteready)

Run the ACOLITE correction model. Adjustments of the original files are made to ensure they work for HYPSO

get_acolite_repo()

Download the ACOLITE Repo as a tar archive

hypso.atmospheric.run_py6s(wavelengths, hypercube_L1, hypso_info, lat_2d_array, lon_2d_array, py6s_dict, time_capture, srf)

Run the PY6S atmospheric correction on the Hypso spectral image

Parameters:
  • wavelengths (numpy.ndarray) – Wavelengths corresponding to the spectral image

  • hypercube_L1 (numpy.ndarray) – Hypercube of the spectral image L1B

  • hypso_info (dict) – Dictionary containing the information of the spectral image

  • lat_2d_array (numpy.ndarray) – 2D latitude array of the spectral image

  • lon_2d_array (numpy.ndarray) – 2D longitude array of the spectral image

  • py6s_dict (dict) – Dictionary containing the PY6S information for atmospheric correction

  • time_capture (datetime) – Time of the capture

  • srf (list) – Spectral response function for each of the 120 bands

Returns:

Return 3-channel surface reflectance spectral image

Return type:

numpy.ndarray

hypso.atmospheric.run_acolite(hypso_info, atmos_dict, nc_file_acoliteready)

Run the ACOLITE correction model. Adjustments of the original files are made to ensure they work for HYPSO

Parameters:
  • hypso_info (dict) – Dictionary containing the hypso capture information

  • atmos_dict (dict) – Dictionary containing the information required for the atmospheric correction

  • nc_file_acoliteready (pathlib.Path) – Absolute path for the .nc file for ACOLITE (L1B)

Returns:

Returns surface reflectanc corrected spectral image

Return type:

numpy.ndarray

hypso.atmospheric.get_acolite_repo()

Download the ACOLITE Repo as a tar archive

Returns:

No return.

Return type:

None