hypso.rgb.product#

RGB camera products: the camera image as a CF NetCDF file.

The camera is not a hypso.Product: that models a spectral cube with wavelengths, calibration levels and SRFs, none of which a three-channel, uncalibrated camera has. A camera product is an xarray Dataset with the same conventions:

  • R, G, B on (y, x): demosaiced counts in the camera’s own frame (not resampled), stored as uint8 (the camera’s 8 bits; the bilinear demosaic is rounded);

  • latitude, longitude per pixel and in_hsi_swath when registered (hypso.rgb.register_camera()); unregistered products have none;

  • attributes: instrument RGB, satellite, target, acquisition time, processing_level L1A (uncalibrated counts), the registration, CF/ACDD.

File names follow hypso.io.naming with the RGB instrument token: HYPSO2_RGB.<time>.<target>.L1A.nc. Satpy reads them with the hypso_rgb_l1a reader (true_color composite).

Functions#

camera_filename(ds[, label])

The product's file name, e.g. HYPSO2_RGB.20250404T022723.ariake.L1A.nc

camera_product(camera[, registration, hsi, sat_id, target])

A camera product from a camera image, georeferenced if registered.

open_camera(path)

Read a camera product written by write_camera().

write_camera(ds[, path, out_dir, label])

Write a camera product (default name from camera_filename() in

Module Contents#

hypso.rgb.product.camera_filename(ds, label=None)[source]#

The product’s file name, e.g. HYPSO2_RGB.20250404T022723.ariake.L1A.nc (with the grid token for a hypso.rgb.regrid_camera() result).

Parameters:
Return type:

str

hypso.rgb.product.camera_product(camera, registration=None, hsi=None, sat_id='HYPSO-2', target=None)[source]#

A camera product from a camera image, georeferenced if registered.

Parameters:
Return type:

xarray.Dataset

hypso.rgb.product.open_camera(path)[source]#

Read a camera product written by write_camera().

Return type:

xarray.Dataset

hypso.rgb.product.write_camera(ds, path=None, out_dir=None, label=None)[source]#

Write a camera product (default name from camera_filename() in out_dir). Channels uint8, geolocation float32, zlib level 4.

Parameters:
Return type:

pathlib.Path