hypso.sensors#

Sensor-profile registry.

One SensorProfile per sensor, in a registry keyed by the file’s sat_id attribute. Adding a sensor means adding one profile module (see hypso1.py and hypso2.py) and registering it here.

Submodules#

Classes#

SensorProfile

Everything the processing needs to know about one sensor (HYPSO-1,

Functions#

get_sensor_profile(sat_id)

Look up a registered SensorProfile by sat_id (as read from a

register_sensor(profile)

Register a SensorProfile under both its sat_id (e.g. "HYPSO-2", the

registered_sensors()

Every distinct registered profile (deduplicated - each is registered

Package Contents#

class hypso.sensors.SensorProfile[source]#

Everything the processing needs to know about one sensor (HYPSO-1, HYPSO-2): detector geometry, capture modes, band/FWHM lookup and calibration package.

calibration_files is the pluggable replacement for the old Hypso1/Hypso2._set_calibration_coeff_files override: given (capture_type, coeff_type), it must return a dict with keys “radiometric”, “smile”, “destriping”, “spectral” - each an absolute path to a calibration coefficient file. Today this is always get_hypsoN_calibration_files from the matching hypsoN_calibration sibling package, wrapped in a small adapter (see hypso1.py/hypso2.py in this package) so its (capture_type, coeff_type=…) signature matches this Callable’s shape exactly.

hypso.sensors.get_sensor_profile(sat_id)[source]#

Look up a registered SensorProfile by sat_id (as read from a capture’s NetCDF attrs, e.g. “HYPSO-2”) or by its short key (e.g. “hypso2”). Raises KeyError with the list of known sensors if sat_id isn’t registered - this is the error a future sensor’s capture file would hit before its profile module is written and imported.

Parameters:

sat_id (str)

Return type:

SensorProfile

hypso.sensors.register_sensor(profile)[source]#

Register a SensorProfile under both its sat_id (e.g. “HYPSO-2”, the key files are actually looked up by - see hypso.Hypso’s factory) and its short key (e.g. “hypso2”), so callers can look it up either way.

Parameters:

profile (SensorProfile)

Return type:

None

hypso.sensors.registered_sensors()[source]#

Every distinct registered profile (deduplicated - each is registered under two keys, see register_sensor).

Return type:

list[SensorProfile]