Editor
BandOrderEditor
Bases: EditorPatch
Reorders bands in data dictionary.
Source code in rs_tools/_src/datamodule/editor.py
__init__(target_order, key='data')
Parameters:
Name | Type | Description | Default |
---|---|---|---|
target_order |
list
|
Order of bands |
required |
key |
str
|
Key in dictionary to apply transformation |
'data'
|
BandSelectionEditor
Bases: EditorPatch
Selects a subset of available bands from data dictionary
Source code in rs_tools/_src/datamodule/editor.py
__init__(target_bands, key='data')
Parameters:
Name | Type | Description | Default |
---|---|---|---|
target_bands |
list
|
List of bands to select |
required |
key |
str
|
Key in dictionary to apply transformation |
'data'
|
CoordNormEditor
Bases: EditorPatch
Normalize latitude and longitude coordinates
Source code in rs_tools/_src/datamodule/editor.py
NanDictEditor
Bases: EditorPatch
Removes NaN values from data dictionary. Can also be used to replace NaN values of coordinates to remove off limb data.
Source code in rs_tools/_src/datamodule/editor.py
NanMaskEditor
Bases: EditorPatch
Returns mask for NaN values in data dictionary
Source code in rs_tools/_src/datamodule/editor.py
RadUnitEditor
Bases: EditorPatch
Convert radiance values from mW/m^2/sr/cm^-1 to W/m^2/sr/um
Source code in rs_tools/_src/datamodule/editor.py
StackDictEditor
Bases: EditorPatch
Stack data dictionary into a single array
Source code in rs_tools/_src/datamodule/editor.py
ToTensorEditor
Bases: EditorPatch
Convert numpy array to PyTorch tensor