eradiate.testing.test_cases.rami4atm.create_toa#

eradiate.testing.test_cases.rami4atm.create_toa(case_id, spp, padding=5)#

Create an Experiment simulating a top-of-atmosphere RAMI4ATM benchmarking case.

Parameters:
  • case_id (str) – Identifier of the test case (see notes for supported values).

  • spp (int) – Default measure sample count.

  • padding (int, default: 5) – Instance padding radius (total number of instances is equal to (padding × 2 + 1)²). Relevant only to cases featuring a canopy.

Returns:

CanopyAtmosphereExperiment

Raises:

ValueError – If the passed case ID contains unhandled parameter values.

Notes

Case IDs are structured as follows (see also the RAMI4ATM case naming convention reference:

<canopy_id>_<surface_id>_<atmosphere_id>_<band_id>_<illumination_id>_<measure_id>

Parameter

Accepted values

canopy_id

hom00 (none), hom45 (uniform cloud leaf)

surface_id

bla (black), whi (white), lam (Lambertian), rpv (RPV), rli (Ross-Li)

atmosphere_id

MATP with

  • M in [0 (no molecular component), a (molecular absorption only), s (molecular scattering only) or e (molecular absorption and scattering)]

  • A in [0 (no aerosols), d (desert aerosols) or c (continental aerosols)]

  • T in [0 (no aerosols), 2 (AOT = 0.2) or 6 (AOT = 0.6)]

  • P in [s (U.S. Standard atmospheric profile)]

band_id

m02, m03, m04, m8a, m11, m12 (Sentinel-2 / MSI bands)

illumination_id

z30a000 (30° zenith, 0° azimuth)

measure_id

brfpp (TOA BRF in the principal plane)