rslearn.train.transforms.sentinel1¶
sentinel1 ¶
Transforms related to Sentinel-1 data.
Sentinel1ToDecibels ¶
Bases: Transform
Convert Sentinel-1 data from raw intensity to or from decibels.
Source code in rslearn/train/transforms/sentinel1.py
apply_image ¶
apply_image(image: RasterImage) -> RasterImage
Normalize the specified image.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
RasterImage
|
the image to transform. |
required |
Source code in rslearn/train/transforms/sentinel1.py
forward ¶
forward(input_dict: dict[str, Any], target_dict: dict[str, Any]) -> tuple[dict[str, Any], dict[str, Any]]
Apply normalization over the inputs and targets.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_dict
|
dict[str, Any]
|
the input |
required |
target_dict
|
dict[str, Any]
|
the target |
required |
Returns:
| Type | Description |
|---|---|
tuple[dict[str, Any], dict[str, Any]]
|
normalized (input_dicts, target_dicts) tuple |