Utils
check_sat_FOV(region, FOV)
Check if the region is within the Field of View (FOV) of the satellite.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
region |
Tuple[int, int, int, int]
|
The region (lon_min, lat_min, lon_max, lat_max) to check if it is within the FOV |
required |
FOV |
Tuple[int, int]
|
The Field of View (FOV) (lon_min, lat_min, lon_max, lat_max) of the satellite. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if the region is within the FOV, False otherwise. |
Source code in rs_tools/_src/geoprocessing/utils.py
convert_units(ds, wavelengths)
Function to convert units from mW/m^2/sr/cm^-1 to W/m^2/sr/um. Acts on each band separately.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ds |
Dataset
|
The input dataset to be converted. |
required |
wavelengths |
Dict[float]
|
Dictionary of wavelengths of data for each band (i). |
required |
Returns:
| Type | Description |
|---|---|
Dataset
|
xr.Dataset: The converted dataset. |