Module: sarpyx.snapflow.engine
File: sarpyx/snapflow/engine.py
SNAP GPT (Graph Processing Tool) wrapper for SAR data processing. This module provides a Pythonic interface to ESA's SNAP GPT command-line tool, enabling automated processing of Synthetic Aperture Radar (SAR) data through various operators like calibration, terrain correction, and subsetting.
Exported Symbols (__all__)
No explicit __all__ list. Public symbols inferred from implementation.
Public Functions (0)
No public top-level functions detected.
Public Classes (1)
GPT class
Wrapper class for executing SNAP Graph Processing Tool (GPT) commands. This class provides a high-level interface to SNAP's GPT command-line tool, abstracting away the complexity of command construction and execution.
File location: sarpyx/snapflow/engine.py:20
Class Signature
class GPT
Constructor Parameters
Return Type
GPT instances.
Exceptions
Construction/runtime exceptions are inferred from implementation and method-level documentation.
Side Effects
See method-level side effects below.
Example Usage
from sarpyx.snapflow.engine import GPT
obj = GPT(...) # inferred from implementation
Edge Cases
No class-level edge-case section is explicitly documented; rely on method-level checks and raised exceptions.
Public Methods (156)
GPT.run_graph method
Execute a standalone GPT XML graph file.
File location: sarpyx/snapflow/engine.py:223
Signature
run_graph(self, graph_path: str | Path, output_path: str | Path, delete_graph: bool=False) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
graph_path | str | Path | yes | - | inferred from implementation. |
output_path | str | Path | yes | - | inferred from implementation. |
delete_graph | bool | no | False | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.run_graph(graph_path=<graph_path>, output_path=<output_path>)
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.last_error_summary method
Return a concise summary of the last GPT error.
File location: sarpyx/snapflow/engine.py:324
Signature
last_error_summary(self, max_chars: int=800) -> str
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
max_chars | int | no | 800 | inferred from implementation. |
Return Type
str
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.last_error_summary()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.import_vector method
Import vector data into the product.
File location: sarpyx/snapflow/engine.py:386
Signature
import_vector(self, vector_data: str | Path, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
vector_data | str | Path | yes | - | Path to the shapefile or vector data. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with imported vector, or None if failed.
Exceptions
FileNotFoundError
Side Effects
- io
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.import_vector(vector_data=<vector_data>)
Edge Cases
May raise: FileNotFoundError. Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.land_mask method
Apply Land-Sea Masking using a predefined XML graph structure.
File location: sarpyx/snapflow/engine.py:439
Signature
land_mask(self, shoreline_extension: int=300, geometry_name: str='Buff_750', use_srtm: bool=True, invert_geometry: bool=True, land_mask: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
shoreline_extension | int | no | 300 | Distance to extend shoreline in meters. |
geometry_name | str | no | 'Buff_750' | Name of the geometry to use for masking. |
use_srtm | bool | no | True | Use SRTM DEM for land/sea determination. |
invert_geometry | bool | no | True | Invert the geometry mask. |
land_mask | bool | no | False | Mask land (True) or sea (False) areas. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to masked output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- io
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.land_mask()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.terrain_mask method
Generate a terrain mask using a DEM.
File location: sarpyx/snapflow/engine.py:535
Signature
terrain_mask(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='NEAREST_NEIGHBOUR', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, threshold_in_meter: float=40.0, window_size_str: str='15x15', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use. |
dem_resampling_method | str | no | 'NEAREST_NEIGHBOUR' | DEM resampling method. |
external_dem_file | Optional[str | Path] | no | None | Path to an external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for the external DEM. |
threshold_in_meter | float | no | 40.0 | Elevation threshold for mask detection. |
window_size_str | str | no | '15x15' | Size of the window used for filtering. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to the terrain mask product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.terrain_mask()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.terrain_flattening method
Perform terrain flattening with configurable DEM and output options.
File location: sarpyx/snapflow/engine.py:574
Signature
terrain_flattening(self, additional_overlap: float=0.1, dem_name: str='SRTM 1Sec HGT', dem_resampling_method: str='BILINEAR_INTERPOLATION', external_dem_apply_egm: bool=False, external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, nodata_value_at_sea: bool=True, output_sigma0: bool=False, output_simulated_image: bool=False, oversampling_multiple: float=1.0, source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
additional_overlap | float | no | 0.1 | inferred from implementation. |
dem_name | str | no | 'SRTM 1Sec HGT' | inferred from implementation. |
dem_resampling_method | str | no | 'BILINEAR_INTERPOLATION' | inferred from implementation. |
external_dem_apply_egm | bool | no | False | inferred from implementation. |
external_dem_file | Optional[str | Path] | no | None | inferred from implementation. |
external_dem_no_data_value | float | no | 0.0 | inferred from implementation. |
nodata_value_at_sea | bool | no | True | inferred from implementation. |
output_sigma0 | bool | no | False | inferred from implementation. |
output_simulated_image | bool | no | False | inferred from implementation. |
oversampling_multiple | float | no | 1.0 | inferred from implementation. |
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.terrain_flattening()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.temporal_percentile method
Compute percentile statistics over time series products.
File location: sarpyx/snapflow/engine.py:613
Signature
temporal_percentile(self, source_products: Optional[List[str | Path]]=None, source_product_paths: Optional[List[str]]=None, band_math_expression: Optional[str]=None, source_band_name: Optional[str]=None, crs: str='EPSG:4326', west_bound: float=-15.0, north_bound: float=75.0, east_bound: float=30.0, south_bound: float=35.0, pixel_size_x: float=0.05, pixel_size_y: float=0.05, resampling: str='Nearest', percentiles: Optional[List[int]]=None, valid_pixel_expression: str='true', gap_filling_method: str='gapFillingLinearInterpolation', start_date: Optional[str]=None, end_date: Optional[str]=None, start_value_fallback: float=0.0, end_value_fallback: float=0.0, keep_intermediate_time_series_product: bool=True, time_series_output_dir: Optional[str | Path]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | inferred from implementation. |
source_product_paths | Optional[List[str]] | no | None | inferred from implementation. |
band_math_expression | Optional[str] | no | None | inferred from implementation. |
source_band_name | Optional[str] | no | None | inferred from implementation. |
crs | str | no | 'EPSG:4326' | inferred from implementation. |
west_bound | float | no | -15.0 | inferred from implementation. |
north_bound | float | no | 75.0 | inferred from implementation. |
east_bound | float | no | 30.0 | inferred from implementation. |
south_bound | float | no | 35.0 | inferred from implementation. |
pixel_size_x | float | no | 0.05 | inferred from implementation. |
pixel_size_y | float | no | 0.05 | inferred from implementation. |
resampling | str | no | 'Nearest' | inferred from implementation. |
percentiles | Optional[List[int]] | no | None | inferred from implementation. |
valid_pixel_expression | str | no | 'true' | inferred from implementation. |
gap_filling_method | str | no | 'gapFillingLinearInterpolation' | inferred from implementation. |
start_date | Optional[str] | no | None | inferred from implementation. |
end_date | Optional[str] | no | None | inferred from implementation. |
start_value_fallback | float | no | 0.0 | inferred from implementation. |
end_value_fallback | float | no | 0.0 | inferred from implementation. |
keep_intermediate_time_series_product | bool | no | True | inferred from implementation. |
time_series_output_dir | Optional[str | Path] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.temporal_percentile()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior.
GPT.calibration method
Apply radiometric calibration.
File location: sarpyx/snapflow/engine.py:695
Signature
calibration(self, pols: Optional[List[str]]=None, output_complex: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
pols | Optional[List[str]] | no | None | Polarizations to calibrate. If None, all polarizations are used. |
output_complex | bool | no | True | Output complex values. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to calibrated product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.calibration()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.thermal_noise_removal method
Remove thermal noise from products.
File location: sarpyx/snapflow/engine.py:726
Signature
thermal_noise_removal(self, pols: Optional[List[str]]=None, output_noise: bool=False, reintroduce_thermal_noise: bool=False, remove_thermal_noise: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
pols | Optional[List[str]] | no | None | Polarizations to process. If None, all polarizations are used. |
output_noise | bool | no | False | Output the noise band. |
reintroduce_thermal_noise | bool | no | False | Re-introduce thermal noise. |
remove_thermal_noise | bool | no | True | Remove thermal noise. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.thermal_noise_removal()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.deburst method
Apply TOPSAR Debursting.
File location: sarpyx/snapflow/engine.py:764
Signature
deburst(self, pols: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
pols | Optional[List[str]] | no | None | Polarizations to deburst. If None, all channels are debursted. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to deburst product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.deburst()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.multilook method
Apply Multilooking.
File location: sarpyx/snapflow/engine.py:788
Signature
multilook(self, n_rg_looks: int, n_az_looks: int, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
n_rg_looks | int | yes | - | Number of range looks. |
n_az_looks | int | yes | - | Number of azimuth looks. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to multilooked product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.multilook(n_rg_looks=<n_rg_looks>, n_az_looks=<n_az_looks>)
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.adaptive_thresholding method
Apply Adaptive Thresholding for object detection.
File location: sarpyx/snapflow/engine.py:810
Signature
adaptive_thresholding(self, background_window_m: float=800, guard_window_m: float=500, target_window_m: float=50, pfa: float=6.5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
background_window_m | float | no | 800 | Background window size in meters. |
guard_window_m | float | no | 500 | Guard window size in meters. |
target_window_m | float | no | 50 | Target window size in meters. |
pfa | float | no | 6.5 | Probability of false alarm. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to thresholded product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.adaptive_thresholding()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.object_discrimination method
Discriminate objects based on size.
File location: sarpyx/snapflow/engine.py:840
Signature
object_discrimination(self, min_target_m: float, max_target_m: float, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
min_target_m | float | yes | - | Minimum target size in meters. |
max_target_m | float | yes | - | Maximum target size in meters. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to discriminated product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.object_discrimination(min_target_m=<min_target_m>, max_target_m=<max_target_m>)
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.subset method
Create a spatial and/or spectral subset of a data product.
File location: sarpyx/snapflow/engine.py:864
Signature
subset(self, source_bands: Optional[List[str]]=None, tie_point_grids: Optional[List[str]]=None, region: Optional[str]=None, reference_band: Optional[str]=None, geo_region: Optional[str]=None, sub_sampling_x: int=1, sub_sampling_y: int=1, full_swath: bool=False, vector_file: Optional[str | Path]=None, polygon_region: Optional[str]=None, copy_metadata: bool=False, suffix: str='SUB', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to include. If None, all bands are included. |
tie_point_grids | Optional[List[str]] | no | None | List of tie-point grid names to include. |
region | Optional[str] | no | None | Subset region in pixel coordinates. |
reference_band | Optional[str] | no | None | Band used to indicate the pixel coordinates. |
geo_region | Optional[str] | no | None | Subset region in geographical coordinates using WKT-format. e.g., 'POLYGON((lon1 lat1, lon2 lat2, ..., lon1 lat1))'. This parameter has precedence over 'region'. |
sub_sampling_x | int | no | 1 | Pixel sub-sampling step in X (horizontal direction). |
sub_sampling_y | int | no | 1 | Pixel sub-sampling step in Y (vertical direction). |
full_swath | bool | no | False | Forces the operator to extend the subset region to the full swath. |
vector_file | Optional[str | Path] | no | None | File from which the polygon is read. |
polygon_region | Optional[str] | no | None | Subset region in geographical coordinates using WKT-format. |
copy_metadata | bool | no | False | Whether to copy the metadata of the source product. |
suffix | str | no | 'SUB' | Suffix for the output filename. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to the subset output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
# Subset by pixel region
gpt.subset(region='100,200,500,500', source_bands=['Amplitude_VV'])
# Subset by geographic region
gpt.subset(
geo_region='POLYGON((10.0 53.0, 11.0 53.0, 11.0 54.0, 10.0 54.0, 10.0 53.0))',
source_bands=['Intensity_VH', 'Intensity_VV']
)
# Subset using vector file
gpt.subset(vector_file='aoi.shp', source_bands=['Sigma0_VV'])
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.set_no_data_value method
Set the NoDataValue and enable the NoDataValueUsed flag for all bands.
File location: sarpyx/snapflow/engine.py:959
Signature
set_no_data_value(self, no_data_value: float=0.0, no_data_value_used: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
no_data_value | float | no | 0.0 | inferred from implementation. |
no_data_value_used | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.set_no_data_value()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.supervised_wishart_classification method
Perform supervised Wishart classification using provided training data.
File location: sarpyx/snapflow/engine.py:974
Signature
supervised_wishart_classification(self, training_dataset: str, window_size: int=5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
training_dataset | str | yes | - | inferred from implementation. |
window_size | int | no | 5 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.supervised_wishart_classification(training_dataset=<training_dataset>)
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.subgraph method
Encapsulate an existing graph via the SubGraph operator.
File location: sarpyx/snapflow/engine.py:990
Signature
subgraph(self, graph_file: str, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
graph_file | str | yes | - | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
FileNotFoundError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.subgraph(graph_file=<graph_file>)
Edge Cases
May raise: FileNotFoundError. Includes optional parameters with implementation-defined fallback behavior.
GPT.statistics_op method
Compute statistics for the provided source products.
File location: sarpyx/snapflow/engine.py:1004
Signature
statistics_op(self, source_products: Optional[List[str | Path]]=None, source_product_paths: Optional[List[str]]=None, shapefile: Optional[str | Path]=None, feature_id: str='name', start_date: Optional[str]=None, end_date: Optional[str]=None, output_shapefile: Optional[str | Path]=None, output_ascii_file: Optional[str | Path]=None, percentiles: Optional[List[int]]=None, accuracy: int=3, write_data_types_separately: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | inferred from implementation. |
source_product_paths | Optional[List[str]] | no | None | inferred from implementation. |
shapefile | Optional[str | Path] | no | None | inferred from implementation. |
feature_id | str | no | 'name' | inferred from implementation. |
start_date | Optional[str] | no | None | inferred from implementation. |
end_date | Optional[str] | no | None | inferred from implementation. |
output_shapefile | Optional[str | Path] | no | None | inferred from implementation. |
output_ascii_file | Optional[str | Path] | no | None | inferred from implementation. |
percentiles | Optional[List[int]] | no | None | inferred from implementation. |
accuracy | int | no | 3 | inferred from implementation. |
write_data_types_separately | bool | no | False | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.statistics_op()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior.
GPT.stamps_export method
Export StaMPS-compatible data products.
File location: sarpyx/snapflow/engine.py:1063
Signature
stamps_export(self, target_folder: str, psi_format: bool=True, source_product: Optional[str | Path]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
target_folder | str | yes | - | inferred from implementation. |
psi_format | bool | no | True | inferred from implementation. |
source_product | Optional[str | Path] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.stamps_export(target_folder=<target_folder>)
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.stack_split method
Split the product into one file per band via Stack-Split.
File location: sarpyx/snapflow/engine.py:1088
Signature
stack_split(self, target_folder: str='target', format_name: str='BEAM-DIMAP', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
target_folder | str | no | 'target' | inferred from implementation. |
format_name | str | no | 'BEAM-DIMAP' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.stack_split()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.stack_averaging method
Run Stack-Averaging on the product with the desired statistic.
File location: sarpyx/snapflow/engine.py:1107
Signature
stack_averaging(self, statistic: str='Mean Average', source_product: Optional[str | Path]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
statistic | str | no | 'Mean Average' | inferred from implementation. |
source_product | Optional[str | Path] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.stack_averaging()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.s2_resampling method
Run the S2Resampling operator with configurable options.
File location: sarpyx/snapflow/engine.py:1127
Signature
s2_resampling(self, source_product: Optional[str | Path]=None, bands: Optional[List[str]]=None, downsampling: str='Mean', flag_downsampling: str='First', masks: Optional[List[str]]=None, resample_on_pyramid_levels: bool=True, resolution: str='60', upsampling: str='Bilinear', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_product | Optional[str | Path] | no | None | inferred from implementation. |
bands | Optional[List[str]] | no | None | inferred from implementation. |
downsampling | str | no | 'Mean' | inferred from implementation. |
flag_downsampling | str | no | 'First' | inferred from implementation. |
masks | Optional[List[str]] | no | None | inferred from implementation. |
resample_on_pyramid_levels | bool | no | True | inferred from implementation. |
resolution | str | no | '60' | inferred from implementation. |
upsampling | str | no | 'Bilinear' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.s2_resampling()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.s2rep method
Compute the Sentinel-2 red-edge position index (S2rep).
File location: sarpyx/snapflow/engine.py:1165
Signature
s2rep(self, downsampling: str='First', nir_factor: float=1.0, nir_source_band: Optional[str]=None, red_b4_factor: float=1.0, red_b5_factor: float=1.0, red_b6_factor: float=1.0, red_source_band4: Optional[str]=None, red_source_band5: Optional[str]=None, red_source_band6: Optional[str]=None, resample_type: str='None', upsampling: str='Nearest', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
downsampling | str | no | 'First' | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_b4_factor | float | no | 1.0 | inferred from implementation. |
red_b5_factor | float | no | 1.0 | inferred from implementation. |
red_b6_factor | float | no | 1.0 | inferred from implementation. |
red_source_band4 | Optional[str] | no | None | inferred from implementation. |
red_source_band5 | Optional[str] | no | None | inferred from implementation. |
red_source_band6 | Optional[str] | no | None | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.s2rep()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.spectral_angle_mapper method
Classify the product using the Spectral Angle Mapper operator.
File location: sarpyx/snapflow/engine.py:1205
Signature
spectral_angle_mapper(self, reference_bands: Optional[List[str]]=None, thresholds: str='0.0', spectra: Optional[List[str]]=None, hidden_spectra: Optional[List[str]]=None, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
reference_bands | Optional[List[str]] | no | None | inferred from implementation. |
thresholds | str | no | '0.0' | inferred from implementation. |
spectra | Optional[List[str]] | no | None | inferred from implementation. |
hidden_spectra | Optional[List[str]] | no | None | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.spectral_angle_mapper()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.speckle_filter method
Apply the Speckle-Filter operator with configurable parameters.
File location: sarpyx/snapflow/engine.py:1238
Signature
speckle_filter(self, source_bands: Optional[List[str]]=None, filter_type: str='Lee Sigma', filter_size_x: int=3, filter_size_y: int=3, damping_factor: int=2, en_l: float=1.0, estimate_enl: bool=False, num_looks_str: str='1', sigma_str: str='0.9', window_size: str='7x7', target_window_size_str: str='3x3', an_size: int=50, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
filter_type | str | no | 'Lee Sigma' | inferred from implementation. |
filter_size_x | int | no | 3 | inferred from implementation. |
filter_size_y | int | no | 3 | inferred from implementation. |
damping_factor | int | no | 2 | inferred from implementation. |
en_l | float | no | 1.0 | inferred from implementation. |
estimate_enl | bool | no | False | inferred from implementation. |
num_looks_str | str | no | '1' | inferred from implementation. |
sigma_str | str | no | '0.9' | inferred from implementation. |
window_size | str | no | '7x7' | inferred from implementation. |
target_window_size_str | str | no | '3x3' | inferred from implementation. |
an_size | int | no | 50 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.speckle_filter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.speckle_divergence method
Generate urban-area detection via the Speckle-Divergence operator.
File location: sarpyx/snapflow/engine.py:1277
Signature
speckle_divergence(self, source_bands: Optional[List[str]]=None, window_size_str: str='15x15', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
window_size_str | str | no | '15x15' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.speckle_divergence()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.snaphu_import method
Import Snaphu results into the product via SnaphuImport.
File location: sarpyx/snapflow/engine.py:1296
Signature
snaphu_import(self, source_products: Optional[List[str | Path]]=None, do_not_keep_wrapped: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | inferred from implementation. |
do_not_keep_wrapped | bool | no | False | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.snaphu_import()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior.
GPT.aatsr_sst method
Compute sea surface temperature (SST) from (A)ATSR products.
File location: sarpyx/snapflow/engine.py:1320
Signature
aatsr_sst(self, dual: bool=True, dual_coefficients_file: str='AVERAGE_POLAR_DUAL_VIEW', dual_mask_expression: str='!cloud_flags_nadir.LAND and !cloud_flags_nadir.CLOUDY and !cloud_flags_nadir.SUN_GLINT and !cloud_flags_fward.LAND and !cloud_flags_fward.CLOUDY and !cloud_flags_fward.SUN_GLINT', invalid_sst_value: float=-999.0, nadir: bool=True, nadir_coefficients_file: str='AVERAGE_POLAR_SINGLE_VIEW', nadir_mask_expression: str='!cloud_flags_nadir.LAND and !cloud_flags_nadir.CLOUDY and !cloud_flags_nadir.SUN_GLINT', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dual | bool | no | True | Enable dual-view SST processing. |
dual_coefficients_file | str | no | 'AVERAGE_POLAR_DUAL_VIEW' | Coefficients file for dual-view processing. |
dual_mask_expression | str | no | '!cloud_flags_nadir.LAND and !cloud_flags_nadir.CLOUDY and !cloud_flags_nadir.SUN_GLINT and !cloud_flags_fward.LAND and !cloud_flags_fward.CLOUDY and !cloud_flags_fward.SUN_GLINT' | Mask expression for dual-view processing. |
invalid_sst_value | float | no | -999.0 | Value assigned to invalid SST pixels. |
nadir | bool | no | True | Enable nadir-view SST processing. |
nadir_coefficients_file | str | no | 'AVERAGE_POLAR_SINGLE_VIEW' | Coefficients file for nadir-view processing. |
nadir_mask_expression | str | no | '!cloud_flags_nadir.LAND and !cloud_flags_nadir.CLOUDY and !cloud_flags_nadir.SUN_GLINT' | Mask expression for nadir-view processing. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to SST output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.aatsr_sst()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.aatsr_ungrid method
Ungrid (A)ATSR L1B products and extract geolocation and pixel field of view data.
File location: sarpyx/snapflow/engine.py:1371
Signature
aatsr_ungrid(self, l1b_characterisation_file: Optional[str | Path]=None, corner_reference_flag: bool=True, topographic_flag: bool=False, topography_homogenity: float=0.05, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
l1b_characterisation_file | Optional[str | Path] | no | None | L1B characterisation file needed to specify first forward pixel and first nadir pixel. |
corner_reference_flag | bool | no | True | Choose pixel coordinate reference point for output file. True for corner (default), False for centre. |
topographic_flag | bool | no | False | Apply topographic corrections to tie points. |
topography_homogenity | float | no | 0.05 | Distance (image coordinates) pixel can be from tie-point to have topographic correction applied. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to ungridded output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.aatsr_ungrid()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.smac_op method
Run the SmacOp atmospheric correction operator.
File location: sarpyx/snapflow/engine.py:1412
Signature
smac_op(self, aerosol_type: str, band_names: List[str], invalid_pixel: float=0.0, mask_expression: Optional[str]=None, mask_expression_forward: Optional[str]=None, surf_press: float=1013.0, tau_aero550: float=0.2, u_h2o: float=3.0, u_o3: float=0.15, use_meris_ads: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
aerosol_type | str | yes | - | inferred from implementation. |
band_names | List[str] | yes | - | inferred from implementation. |
invalid_pixel | float | no | 0.0 | inferred from implementation. |
mask_expression | Optional[str] | no | None | inferred from implementation. |
mask_expression_forward | Optional[str] | no | None | inferred from implementation. |
surf_press | float | no | 1013.0 | inferred from implementation. |
tau_aero550 | float | no | 0.2 | inferred from implementation. |
u_h2o | float | no | 3.0 | inferred from implementation. |
u_o3 | float | no | 0.15 | inferred from implementation. |
use_meris_ads | bool | no | False | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.smac_op(aerosol_type=<aerosol_type>, band_names=<band_names>)
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior.
GPT.sm_dielectric_modeling method
Perform soil moisture inversion using the dielectric model.
File location: sarpyx/snapflow/engine.py:1451
Signature
sm_dielectric_modeling(self, source_products: Optional[List[str | Path]]=None, effective_soil_temperature: float=18.0, max_sm: float=0.55, min_sm: float=0.0, model_to_use: str='Hallikainen', output_land_cover: bool=True, output_rdc: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | inferred from implementation. |
effective_soil_temperature | float | no | 18.0 | inferred from implementation. |
max_sm | float | no | 0.55 | inferred from implementation. |
min_sm | float | no | 0.0 | inferred from implementation. |
model_to_use | str | no | 'Hallikainen' | inferred from implementation. |
output_land_cover | bool | no | True | inferred from implementation. |
output_rdc | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.sm_dielectric_modeling()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior.
GPT.slice_assembly method
Merge Sentinel-1 slice products using the SliceAssembly operator.
File location: sarpyx/snapflow/engine.py:1487
Signature
slice_assembly(self, source_products: Optional[List[str | Path]]=None, selected_polarisations: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | inferred from implementation. |
selected_polarisations | Optional[List[str]] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.slice_assembly()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior.
GPT.wind_field_estimation method
Estimate wind speed and direction from SAR imagery.
File location: sarpyx/snapflow/engine.py:1513
Signature
wind_field_estimation(self, source_bands: Optional[List[str]]=None, window_size_in_km: float=20.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to use for wind estimation. If None, all available bands are used. |
window_size_in_km | float | no | 20.0 | Window size for wind estimation in kilometers. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to wind field output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.wind_field_estimation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.wdvi method
Compute Weighted Difference Vegetation Index (WDVI).
File location: sarpyx/snapflow/engine.py:1543
Signature
wdvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, slope_soil_line: float=1.5, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | The red band for WDVI computation. If None, operator will try to find the best fitting band. |
nir_source_band | Optional[str] | no | None | The near-infrared band for WDVI computation. If None, operator will try to find the best fitting band. |
red_factor | float | no | 1.0 | Multiplication factor for red band values. |
nir_factor | float | no | 1.0 | Multiplication factor for NIR band values. |
slope_soil_line | float | no | 1.5 | Slope of the soil line passing through origin. |
resample_type | str | no | 'None' | Resample method if bands differ in size. Must be one of 'None', 'Lowest resolution', 'Highest resolution'. |
upsampling | str | no | 'Nearest' | Interpolation method for upsampling to finer resolution. Must be one of 'Nearest', 'Bilinear', 'Bicubic'. |
downsampling | str | no | 'First' | Aggregation method for downsampling to coarser resolution. Must be one of 'First', 'Min', 'Max', 'Mean', 'Median'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to WDVI output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.wdvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.savi method
Compute the Soil Adjusted Vegetation Index (SAVI).
File location: sarpyx/snapflow/engine.py:1600
Signature
savi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, soil_correction_factor: float=0.5, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
soil_correction_factor | float | no | 0.5 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.savi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.warp method
Create warp function and get co-registered images.
File location: sarpyx/snapflow/engine.py:1632
Signature
warp(self, rms_threshold: float=0.05, warp_polynomial_order: int=2, interpolation_method: str='Cubic convolution (6 points)', dem_refinement: bool=False, dem_name: str='SRTM 3Sec', exclude_master: bool=False, open_residuals_file: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
rms_threshold | float | no | 0.05 | Confidence level for outlier detection procedure. Lower value accepts more outliers. Must be one of 0.001, 0.05, 0.1, 0.5, 1.0. |
warp_polynomial_order | int | no | 2 | The order of WARP polynomial function. Must be one of 1, 2, or 3. |
interpolation_method | str | no | 'Cubic convolution (6 points)' | Interpolation method for resampling. Must be one of 'Nearest-neighbor interpolation', 'Bilinear interpolation', 'Bicubic interpolation', 'Bicubic2 interpolation', 'Linear interpolation', 'Cubic convolution (4 points)', 'Cubic convolution (6 points)', 'Truncated sinc (6 points)', 'Truncated sinc (8 points)', 'Truncated sinc (16 points)'. |
dem_refinement | bool | no | False | Refine estimated offsets using a-priori DEM. |
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use. |
exclude_master | bool | no | False | Whether to exclude the master image from output. |
open_residuals_file | bool | no | False | Show the residuals file in a text viewer. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to warped output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.warp()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.srgr method
Convert slant range to ground range using SRGR operator.
File location: sarpyx/snapflow/engine.py:1684
Signature
srgr(self, source_bands: Optional[List[str]]=None, interpolation_method: str='Linear interpolation', warp_polynomial_order: int=4, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
interpolation_method | str | no | 'Linear interpolation' | inferred from implementation. |
warp_polynomial_order | int | no | 4 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.srgr()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.update_geo_reference method
Update geo-reference information in the product.
File location: sarpyx/snapflow/engine.py:1705
Signature
update_geo_reference(self, source_bands: Optional[List[str]]=None, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BICUBIC_INTERPOLATION', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, re_grid_method: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to process. If None, all bands are processed. |
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use. Must be one of 'ACE', 'ASTER 1sec GDEM', 'GETASSE30', 'SRTM 1Sec HGT', 'SRTM 3Sec'. |
dem_resampling_method | str | no | 'BICUBIC_INTERPOLATION' | DEM resampling method. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
re_grid_method | bool | no | False | Apply re-gridding method. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with updated geo-reference, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.update_geo_reference()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.add_elevation method
Add a DEM elevation band to the product.
File location: sarpyx/snapflow/engine.py:1752
Signature
add_elevation(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BICUBIC_INTERPOLATION', elevation_band_name: str='elevation', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use. Must be one of 'ACE', 'ASTER 1sec GDEM', 'GETASSE30', 'SRTM 1Sec HGT', 'SRTM 3Sec'. |
dem_resampling_method | str | no | 'BICUBIC_INTERPOLATION' | DEM resampling method. |
elevation_band_name | str | no | 'elevation' | Name of the elevation band. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with elevation band, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.add_elevation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.three_pass_dinsar method
Perform three-pass differential interferometry.
File location: sarpyx/snapflow/engine.py:1794
Signature
three_pass_dinsar(self, source_products: Optional[List[str | Path]]=None, orbit_degree: int=3, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | Source product paths. If None, uses the current product. |
orbit_degree | int | no | 3 | Degree of orbit interpolation polynomial. Valid interval is (1, 10]. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product, or None if failed.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.three_pass_dinsar()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.unmix method
Perform linear spectral unmixing.
File location: sarpyx/snapflow/engine.py:1827
Signature
unmix(self, source_bands: Optional[List[str]]=None, endmember_file: Optional[str | Path]=None, unmixing_model_name: str='Constrained LSU', abundance_band_name_suffix: str='_abundance', error_band_name_suffix: str='_error', compute_error_bands: bool=False, min_bandwidth: float=10.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of spectral bands providing the source spectrum. If None, all bands are used. |
endmember_file | Optional[str | Path] | no | None | Text file containing endmembers in a table. Wavelengths must be given in nanometers. |
unmixing_model_name | str | no | 'Constrained LSU' | The unmixing model to use. Must be one of 'Unconstrained LSU', 'Constrained LSU', 'Fully Constrained LSU'. |
abundance_band_name_suffix | str | no | '_abundance' | Suffix for generated abundance band names (name = endmember + suffix). Must match pattern '[a-zA-Z_0-9]*'. |
error_band_name_suffix | str | no | '_error' | Suffix for generated error band names (name = source + suffix). Must match pattern '[a-zA-Z_0-9]*'. |
compute_error_bands | bool | no | False | Generate error bands for all source bands. |
min_bandwidth | float | no | 10.0 | Minimum spectral bandwidth for endmember wavelength matching in nanometers. Must be greater than 0. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to unmixed output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.unmix()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.undersample method
Undersample the dataset by reducing spatial resolution.
File location: sarpyx/snapflow/engine.py:1882
Signature
undersample(self, source_bands: Optional[List[str]]=None, method: str='LowPass Filtering', filter_size: str='3x3', sub_sampling_x: int=2, sub_sampling_y: int=2, output_image_by: str='Ratio', target_image_height: int=1000, target_image_width: int=1000, width_ratio: float=0.5, height_ratio: float=0.5, range_spacing: float=12.5, azimuth_spacing: float=12.5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to undersample. If None, all bands are processed. |
method | str | no | 'LowPass Filtering' | Undersampling method to use. Must be one of 'Sub-Sampling', 'LowPass Filtering'. |
filter_size | str | no | '3x3' | Filter size for low-pass filtering. Must be one of '3x3', '5x5', '7x7'. |
sub_sampling_x | int | no | 2 | Sub-sampling factor in X direction. |
sub_sampling_y | int | no | 2 | Sub-sampling factor in Y direction. |
output_image_by | str | no | 'Ratio' | Method to determine output image size. Must be one of 'Image Size', 'Ratio', 'Pixel Spacing'. |
target_image_height | int | no | 1000 | Row dimension of output image (pixels). |
target_image_width | int | no | 1000 | Column dimension of output image (pixels). |
width_ratio | float | no | 0.5 | Width ratio of output/input images. |
height_ratio | float | no | 0.5 | Height ratio of output/input images. |
range_spacing | float | no | 12.5 | Range pixel spacing in meters. |
azimuth_spacing | float | no | 12.5 | Azimuth pixel spacing in meters. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to undersampled output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.undersample()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.tsavi method
Compute Transformed Soil Adjusted Vegetation Index (TSAVI).
File location: sarpyx/snapflow/engine.py:1947
Signature
tsavi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, slope: float=0.5, intercept: float=0.5, adjustment: float=0.08, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | The red band for TSAVI computation. If None, operator will try to find the best fitting band. |
nir_source_band | Optional[str] | no | None | The near-infrared band for TSAVI computation. If None, operator will try to find the best fitting band. |
red_factor | float | no | 1.0 | Multiplication factor for red band values. |
nir_factor | float | no | 1.0 | Multiplication factor for NIR band values. |
slope | float | no | 0.5 | The soil line slope. |
intercept | float | no | 0.5 | The soil line intercept. |
adjustment | float | no | 0.08 | Adjustment factor to minimize soil background. |
resample_type | str | no | 'None' | Resample method if bands differ in size. Must be one of 'None', 'Lowest resolution', 'Highest resolution'. |
upsampling | str | no | 'Nearest' | Interpolation method for upsampling to finer resolution. Must be one of 'Nearest', 'Bilinear', 'Bicubic'. |
downsampling | str | no | 'First' | Aggregation method for downsampling to coarser resolution. Must be one of 'First', 'Min', 'Max', 'Mean', 'Median'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to TSAVI output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.tsavi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.tndvi method
Compute Transformed Normalized Difference Vegetation Index (TNDVI).
File location: sarpyx/snapflow/engine.py:2010
Signature
tndvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | The red band for TNDVI computation. If None, operator will try to find the best fitting band. |
nir_source_band | Optional[str] | no | None | The near-infrared band for TNDVI computation. If None, operator will try to find the best fitting band. |
red_factor | float | no | 1.0 | Multiplication factor for red band values. |
nir_factor | float | no | 1.0 | Multiplication factor for NIR band values. |
resample_type | str | no | 'None' | Resample method if bands differ in size. Must be one of 'None', 'Lowest resolution', 'Highest resolution'. |
upsampling | str | no | 'Nearest' | Interpolation method for upsampling to finer resolution. Must be one of 'Nearest', 'Bilinear', 'Bicubic'. |
downsampling | str | no | 'First' | Aggregation method for downsampling to coarser resolution. Must be one of 'First', 'Min', 'Max', 'Mean', 'Median'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to TNDVI output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.tndvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.topsar_split method
Create a new product with only the selected subswath.
File location: sarpyx/snapflow/engine.py:2063
Signature
topsar_split(self, subswath: Optional[str]=None, selected_polarisations: Optional[List[str]]=None, first_burst_index: int=1, last_burst_index: int=9999, wkt_aoi: Optional[str]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subswath | Optional[str] | no | None | The subswath to select (e.g., 'IW1', 'IW2', 'IW3'). If None, all subswaths are included. |
selected_polarisations | Optional[List[str]] | no | None | List of polarisations to include. If None, all polarisations are included. |
first_burst_index | int | no | 1 | The first burst index to include (1-based). Must be >= 1. |
last_burst_index | int | no | 9999 | The last burst index to include (1-based). Must be >= 1. |
wkt_aoi | Optional[str] | no | None | WKT polygon to be used for selecting bursts. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to split output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.topsar_split()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.topsar_merge method
Merge subswaths of a Sentinel-1 TOPSAR product.
File location: sarpyx/snapflow/engine.py:2111
Signature
topsar_merge(self, selected_polarisations: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
selected_polarisations | Optional[List[str]] | no | None | List of polarisations to merge. If None, all polarisations are merged. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to merged output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.topsar_merge()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.topsar_deramp_demod method
Perform deramp and demodulation for TOPSAR burst co-registration.
File location: sarpyx/snapflow/engine.py:2139
Signature
topsar_deramp_demod(self, output_deramp_demod_phase: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_deramp_demod_phase | bool | no | True | Output the deramp/demod phase. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to deramp/demod output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.topsar_deramp_demod()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.topo_phase_removal method
Compute and subtract topographic phase from interferogram.
File location: sarpyx/snapflow/engine.py:2164
Signature
topo_phase_removal(self, orbit_degree: int=3, dem_name: str='SRTM 3Sec', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, tile_extension_percent: str='100', output_topo_phase_band: bool=False, output_elevation_band: bool=False, output_lat_lon_bands: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
orbit_degree | int | no | 3 | Degree of orbit interpolation polynomial. Must be in range (1, 10]. |
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
tile_extension_percent | str | no | '100' | Extension of tile for DEM simulation (optimization parameter). |
output_topo_phase_band | bool | no | False | Output topographic phase band. |
output_elevation_band | bool | no | False | Output elevation band. |
output_lat_lon_bands | bool | no | False | Output latitude/longitude bands. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with topographic phase removed, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.topo_phase_removal()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.tool_adapter method
Execute a custom tool adapter operator.
File location: sarpyx/snapflow/engine.py:2215
Signature
tool_adapter(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to tool adapter output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.tool_adapter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.apply_orbit_file method
Apply orbit file correction to SAR products.
File location: sarpyx/snapflow/engine.py:2239
Signature
apply_orbit_file(self, orbit_type: str='Sentinel Precise (Auto Download)', poly_degree: int=3, continue_on_fail: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
orbit_type | str | no | 'Sentinel Precise (Auto Download)' | Type of orbit file to apply. Valid options include 'Sentinel Precise (Auto Download)', 'Sentinel Restituted (Auto Download)', etc. |
poly_degree | int | no | 3 | Degree of polynomial for orbit interpolation. |
continue_on_fail | bool | no | False | Continue processing if orbit file application fails. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to the output product with applied orbit file, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.apply_orbit_file()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.terrain_correction method
Apply terrain correction (orthorectification) using Range-Doppler method.
File location: sarpyx/snapflow/engine.py:2271
Signature
terrain_correction(self, source_bands: Optional[List[str]]=None, dem_name: str='Copernicus 30m Global DEM', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, external_dem_apply_egm: bool=True, dem_resampling_method: str='BILINEAR_INTERPOLATION', img_resampling_method: str='BISINC_21_POINT_INTERPOLATION', pixel_spacing_in_meter: float=0.0, pixel_spacing_in_degree: float=0.0, map_projection: str='WGS84(DD)', align_to_standard_grid: bool=False, standard_grid_origin_x: float=0.0, standard_grid_origin_y: float=0.0, nodata_value_at_sea: bool=False, save_dem: bool=True, save_lat_lon: bool=False, save_incidence_angle_from_ellipsoid: bool=False, save_local_incidence_angle: bool=True, save_projected_local_incidence_angle: bool=False, save_selected_source_band: bool=True, save_layover_shadow_mask: bool=False, output_complex: bool=True, apply_radiometric_normalization: bool=False, save_sigma_nought: bool=False, save_gamma_nought: bool=False, save_beta_nought: bool=False, incidence_angle_for_sigma0: str='Use projected local incidence angle from DEM', incidence_angle_for_gamma0: str='Use projected local incidence angle from DEM', aux_file: str='Latest Auxiliary File', external_aux_file: Optional[str | Path]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to process. If None, all bands are processed. |
dem_name | str | no | 'Copernicus 30m Global DEM' | Digital elevation model name. (CDEM, SRTM 3Sec, Copernicus 30m Global DEM, ...) |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
external_dem_apply_egm | bool | no | True | Apply EGM96 geoid to external DEM. |
dem_resampling_method | str | no | 'BILINEAR_INTERPOLATION' | DEM resampling method. |
img_resampling_method | str | no | 'BISINC_21_POINT_INTERPOLATION' | Image resampling method. |
pixel_spacing_in_meter | float | no | 0.0 | Output pixel spacing in meters (0 = automatic). |
pixel_spacing_in_degree | float | no | 0.0 | Output pixel spacing in degrees (0 = automatic). |
map_projection | str | no | 'WGS84(DD)' | Map projection in WKT format. |
align_to_standard_grid | bool | no | False | Align output to standard grid. |
standard_grid_origin_x | float | no | 0.0 | X-coordinate of standard grid origin. |
standard_grid_origin_y | float | no | 0.0 | Y-coordinate of standard grid origin. |
nodata_value_at_sea | bool | no | False | Mask sea areas with no data value. |
save_dem | bool | no | True | Save DEM band in output. |
save_lat_lon | bool | no | False | Save latitude/longitude bands. |
save_incidence_angle_from_ellipsoid | bool | no | False | Save incidence angle from ellipsoid. |
save_local_incidence_angle | bool | no | True | Save local incidence angle. |
save_projected_local_incidence_angle | bool | no | False | Save projected local incidence angle. |
save_selected_source_band | bool | no | True | Save selected source bands. |
save_layover_shadow_mask | bool | no | False | Save layover/shadow mask. |
output_complex | bool | no | True | Output complex data. |
apply_radiometric_normalization | bool | no | False | Apply radiometric normalization. |
save_sigma_nought | bool | no | False | Save sigma nought band. |
save_gamma_nought | bool | no | False | Save gamma nought band. |
save_beta_nought | bool | no | False | Save beta nought band. |
incidence_angle_for_sigma0 | str | no | 'Use projected local incidence angle from DEM' | Incidence angle type for sigma0. |
incidence_angle_for_gamma0 | str | no | 'Use projected local incidence angle from DEM' | Incidence angle type for gamma0. |
aux_file | str | no | 'Latest Auxiliary File' | Auxiliary file selection. |
external_aux_file | Optional[str | Path] | no | None | Path to external auxiliary file. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to the terrain-corrected output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.terrain_correction()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.sar_sim_terrain_correction method
Orthorectify the product using SARSim Terrain Correction.
File location: sarpyx/snapflow/engine.py:2390
Signature
sar_sim_terrain_correction(self, map_projection: str='WGS84(DD)', img_resampling_method: str='BILINEAR_INTERPOLATION', pixel_spacing_in_meter: float=0.0, pixel_spacing_in_degree: float=0.0, align_to_standard_grid: bool=False, standard_grid_origin_x: float=0.0, standard_grid_origin_y: float=0.0, rms_threshold: float=1.0, warp_polynomial_order: int=1, apply_radiometric_normalization: bool=False, aux_file: str='Latest Auxiliary File', external_aux_file: Optional[str | Path]=None, open_shifts_file: bool=False, open_residuals_file: bool=False, output_complex: bool=False, save_dem: bool=False, save_lat_lon: bool=False, save_local_incidence_angle: bool=False, save_projected_local_incidence_angle: bool=False, save_selected_source_band: bool=True, save_sigma_nought: bool=False, save_gamma_nought: bool=False, save_beta_nought: bool=False, incidence_angle_for_sigma0: str='Use projected local incidence angle from DEM', incidence_angle_for_gamma0: str='Use projected local incidence angle from DEM', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
map_projection | str | no | 'WGS84(DD)' | inferred from implementation. |
img_resampling_method | str | no | 'BILINEAR_INTERPOLATION' | inferred from implementation. |
pixel_spacing_in_meter | float | no | 0.0 | inferred from implementation. |
pixel_spacing_in_degree | float | no | 0.0 | inferred from implementation. |
align_to_standard_grid | bool | no | False | inferred from implementation. |
standard_grid_origin_x | float | no | 0.0 | inferred from implementation. |
standard_grid_origin_y | float | no | 0.0 | inferred from implementation. |
rms_threshold | float | no | 1.0 | inferred from implementation. |
warp_polynomial_order | int | no | 1 | inferred from implementation. |
apply_radiometric_normalization | bool | no | False | inferred from implementation. |
aux_file | str | no | 'Latest Auxiliary File' | inferred from implementation. |
external_aux_file | Optional[str | Path] | no | None | inferred from implementation. |
open_shifts_file | bool | no | False | inferred from implementation. |
open_residuals_file | bool | no | False | inferred from implementation. |
output_complex | bool | no | False | inferred from implementation. |
save_dem | bool | no | False | inferred from implementation. |
save_lat_lon | bool | no | False | inferred from implementation. |
save_local_incidence_angle | bool | no | False | inferred from implementation. |
save_projected_local_incidence_angle | bool | no | False | inferred from implementation. |
save_selected_source_band | bool | no | True | inferred from implementation. |
save_sigma_nought | bool | no | False | inferred from implementation. |
save_gamma_nought | bool | no | False | inferred from implementation. |
save_beta_nought | bool | no | False | inferred from implementation. |
incidence_angle_for_sigma0 | str | no | 'Use projected local incidence angle from DEM' | inferred from implementation. |
incidence_angle_for_gamma0 | str | no | 'Use projected local incidence angle from DEM' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.sar_sim_terrain_correction()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.sar_simulation method
Run the rigorous SAR Simulation operator.
File location: sarpyx/snapflow/engine.py:2455
Signature
sar_simulation(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BICUBIC_INTERPOLATION', external_dem_apply_egm: bool=True, external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, save_layover_shadow_mask: bool=False, source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | inferred from implementation. |
dem_resampling_method | str | no | 'BICUBIC_INTERPOLATION' | inferred from implementation. |
external_dem_apply_egm | bool | no | True | inferred from implementation. |
external_dem_file | Optional[str | Path] | no | None | inferred from implementation. |
external_dem_no_data_value | float | no | 0.0 | inferred from implementation. |
save_layover_shadow_mask | bool | no | False | inferred from implementation. |
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.sar_simulation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.sar_mosaic method
Mosaic multiple SAR products with adjustable blending parameters.
File location: sarpyx/snapflow/engine.py:2486
Signature
sar_mosaic(self, source_bands: Optional[List[str]]=None, average: bool=True, convergence_threshold: float=0.0001, feather: int=0, gradient_domain_mosaic: bool=False, max_iterations: int=5000, normalize_by_mean: bool=True, pixel_size: float=0.0, presampling_method: str='NEAREST_NEIGHBOUR', scene_height: int=0, scene_width: int=0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
average | bool | no | True | inferred from implementation. |
convergence_threshold | float | no | 0.0001 | inferred from implementation. |
feather | int | no | 0 | inferred from implementation. |
gradient_domain_mosaic | bool | no | False | inferred from implementation. |
max_iterations | int | no | 5000 | inferred from implementation. |
normalize_by_mean | bool | no | True | inferred from implementation. |
pixel_size | float | no | 0.0 | inferred from implementation. |
presampling_method | str | no | 'NEAREST_NEIGHBOUR' | inferred from implementation. |
scene_height | int | no | 0 | inferred from implementation. |
scene_width | int | no | 0 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.sar_mosaic()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.do_subaps method
Run sub-aperture decomposition on a SNAP DIM product.
File location: sarpyx/snapflow/engine.py:2523
Signature
do_subaps(self, dim_path: Optional[Union[str, Path]]=None, safe_path: Optional[Union[str, Path]]=None, numberofLooks: int=3, n_decompositions: Optional[Union[int, List[int]]]=None, DownSample: bool=True, byte_order: int=1, prefix: str='', VERBOSE: bool=False) -> Path
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dim_path | Optional[Union[str, Path]] | no | None | Path or str, optional Path to the DIM product to process. If None, self.prod_path is used. |
safe_path | Optional[Union[str, Path]] | no | None | Path or str Path to the original SAFE product (required by sub-aperture processing). |
numberofLooks | int | no | 3 | int Number of looks used for azimuth bandwidth estimation. |
n_decompositions | Optional[Union[int, List[int]]] | no | None | int or list[int], optional Sub-aperture decomposition scheme (e.g. [2, 3]). |
DownSample | bool | no | True | bool Whether to downsample the output images. |
byte_order | int | no | 1 | int Byte order of output ENVI files (0=little endian, 1=big endian). |
prefix | str | no | '' | str Prefix for generated band names. |
VERBOSE | bool | no | False | bool Verbose mode. |
Return Type
Path
Path Path to the processed DIM product.
Exceptions
ValueError
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.do_subaps()
Edge Cases
May raise: ValueError. Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.demodulate method
Perform demodulation and deramping of SLC data.
File location: sarpyx/snapflow/engine.py:2592
Signature
demodulate(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to the demodulated output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.demodulate()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.write method
Write a data product to a file with explicit control over write parameters.
File location: sarpyx/snapflow/engine.py:2613
Signature
write(self, output_file: Optional[str | Path]=None, format_name: Optional[str]=None, clear_cache_after_row_write: bool=False, delete_output_on_failure: bool=True, write_entire_tile_rows: bool=False) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_file | Optional[str | Path] | no | None | The output file path. If None, uses standard path construction. |
format_name | Optional[str] | no | None | The output file format name. If None, uses the instance format. |
clear_cache_after_row_write | bool | no | False | Clear internal tile cache after a tile row has been written. Only effective if write_entire_tile_rows is True. |
delete_output_on_failure | bool | no | True | Delete all output files after a failed write operation. |
write_entire_tile_rows | bool | no | False | Wait until an entire tile row is computed before writing. |
Return Type
Optional[str]
Path to the written output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.write()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.tile_writer method
Write a data product to tiles.
File location: sarpyx/snapflow/engine.py:2658
Signature
tile_writer(self, output_file: Optional[str | Path]=None, format_name: Optional[str]=None, division_by: str='Tiles', number_of_tiles: str='4', pixel_size_x: int=200, pixel_size_y: int=200, overlap: int=0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_file | Optional[str | Path] | no | None | The output file path. If None, uses standard path construction. |
format_name | Optional[str] | no | None | The output file format name. If None, uses the instance format. |
division_by | str | no | 'Tiles' | How to divide the tiles. Must be one of 'Tiles', 'Pixels'. |
number_of_tiles | str | no | '4' | The number of output tiles. Must be one of '2', '4', '9', '16', '36', '64', '100', '256'. |
pixel_size_x | int | no | 200 | Tile pixel width. |
pixel_size_y | int | no | 200 | Tile pixel height. |
overlap | int | no | 0 | Tile overlap in pixels. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to tiled output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.tile_writer()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.band_maths method
inferred from implementation.
File location: sarpyx/snapflow/engine.py:2752
Signature
band_maths(self, target_bands=None, variables=None, output_name=None)
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
target_bands | inferred from implementation | no | None | inferred from implementation. |
variables | inferred from implementation | no | None | inferred from implementation. |
output_name | inferred from implementation | no | None | inferred from implementation. |
Return Type
inferred from implementation
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.band_maths()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.band_select method
Creates a new product with only selected bands.
File location: sarpyx/snapflow/engine.py:2766
Signature
band_select(self, source_bands: Optional[List[str]]=None, band_name_pattern: Optional[str]=None, selected_polarisations: Optional[List[str]]=None, selected_sub_images: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source band names to include. |
band_name_pattern | Optional[str] | no | None | Band name regular expression pattern. |
selected_polarisations | Optional[List[str]] | no | None | List of polarisations to select. |
selected_sub_images | Optional[List[str]] | no | None | List of imagettes or sub-images to select. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with selected bands, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.band_select()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.band_merge method
Allows copying raster data from any number of source products to a specified 'master' product.
File location: sarpyx/snapflow/engine.py:2808
Signature
band_merge(self, source_products: Optional[List[str | Path]]=None, source_bands: Optional[List[str]]=None, geographic_error: float=1e-05, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_products | Optional[List[str | Path]] | no | None | List of source product paths. |
source_bands | Optional[List[str]] | no | None | List of source band names. |
geographic_error | float | no | 1e-05 | Maximum lat/lon error in degrees between products. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to merged output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.band_merge()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.coherence method
Estimate coherence from stack of coregistered images.
File location: sarpyx/snapflow/engine.py:2839
Signature
coherence(self, coh_win_az: int=10, coh_win_rg: int=10, subtract_flat_earth_phase: bool=False, srp_polynomial_degree: int=5, srp_number_points: int=501, orbit_degree: int=3, square_pixel: bool=True, subtract_topographic_phase: bool=False, dem_name: str='SRTM 3Sec', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, external_dem_apply_egm: bool=True, tile_extension_percent: str='100', single_master: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
coh_win_az | int | no | 10 | Size of coherence estimation window in Azimuth direction. Valid interval is (1, 90]. |
coh_win_rg | int | no | 10 | Size of coherence estimation window in Range direction. Valid interval is (1, 90]. |
subtract_flat_earth_phase | bool | no | False | Subtract flat earth phase. |
srp_polynomial_degree | int | no | 5 | Order of 'Flat earth phase' polynomial. Must be one of 1, 2, 3, 4, 5, 6, 7, 8. |
srp_number_points | int | no | 501 | Number of points for the 'flat earth phase' polynomial estimation. Must be one of 301, 401, 501, 601, 701, 801, 901, 1001. |
orbit_degree | int | no | 3 | Degree of orbit (polynomial) interpolator. Must be one of 1, 2, 3, 4, 5. |
square_pixel | bool | no | True | Use ground square pixel. |
subtract_topographic_phase | bool | no | False | Subtract topographic phase. |
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
external_dem_apply_egm | bool | no | True | Apply EGM96 geoid to external DEM. |
tile_extension_percent | str | no | '100' | Define extension of tile for DEM simulation. |
single_master | bool | no | True | Single master mode. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to coherence output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.coherence()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.interferogram method
Compute interferograms from stack of coregistered S-1 images.
File location: sarpyx/snapflow/engine.py:2911
Signature
interferogram(self, subtract_flat_earth_phase: bool=True, srp_polynomial_degree: int=5, srp_number_points: int=501, orbit_degree: int=3, include_coherence: bool=True, coh_win_az: int=10, coh_win_rg: int=10, square_pixel: bool=True, subtract_topographic_phase: bool=False, dem_name: str='SRTM 3Sec', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, external_dem_apply_egm: bool=True, tile_extension_percent: str='100', output_flat_earth_phase: bool=False, output_topo_phase: bool=False, output_elevation: bool=False, output_lat_lon: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subtract_flat_earth_phase | bool | no | True | Subtract flat earth phase. |
srp_polynomial_degree | int | no | 5 | Order of 'Flat earth phase' polynomial. |
srp_number_points | int | no | 501 | Number of points for polynomial estimation. |
orbit_degree | int | no | 3 | Degree of orbit interpolator. |
include_coherence | bool | no | True | Include coherence estimation. |
coh_win_az | int | no | 10 | Coherence window size in azimuth. |
coh_win_rg | int | no | 10 | Coherence window size in range. |
square_pixel | bool | no | True | Use ground square pixel. |
subtract_topographic_phase | bool | no | False | Subtract topographic phase. |
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
external_dem_apply_egm | bool | no | True | Apply EGM96 geoid to external DEM. |
tile_extension_percent | str | no | '100' | Tile extension for DEM simulation. |
output_flat_earth_phase | bool | no | False | Output flat earth phase band. |
output_topo_phase | bool | no | False | Output topographic phase band. |
output_elevation | bool | no | False | Output elevation band. |
output_lat_lon | bool | no | False | Output latitude/longitude bands. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to interferogram output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.interferogram()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.goldstein_phase_filtering method
Phase filtering using Goldstein method.
File location: sarpyx/snapflow/engine.py:2990
Signature
goldstein_phase_filtering(self, alpha: float=1.0, fft_size_string: str='64', window_size_string: str='3', use_coherence_mask: bool=False, coherence_threshold: float=0.2, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
alpha | float | no | 1.0 | Adaptive filter exponent. Valid interval is (0, 1]. |
fft_size_string | str | no | '64' | FFT size. Must be one of '32', '64', '128', '256'. |
window_size_string | str | no | '3' | Window size. Must be one of '3', '5', '7'. |
use_coherence_mask | bool | no | False | Use coherence mask. |
coherence_threshold | float | no | 0.2 | The coherence threshold. Valid interval is [0, 1]. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to filtered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.goldstein_phase_filtering()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.back_geocoding method
Bursts co-registration using orbit and DEM.
File location: sarpyx/snapflow/engine.py:3028
Signature
back_geocoding(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BICUBIC_INTERPOLATION', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, resampling_type: str='BISINC_5_POINT_INTERPOLATION', mask_out_area_without_elevation: bool=True, output_range_azimuth_offset: bool=False, output_deramp_demod_phase: bool=False, disable_reramp: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model. |
dem_resampling_method | str | no | 'BICUBIC_INTERPOLATION' | DEM resampling method. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
resampling_type | str | no | 'BISINC_5_POINT_INTERPOLATION' | Method for resampling slave grid onto master grid. |
mask_out_area_without_elevation | bool | no | True | Mask areas without elevation data. |
output_range_azimuth_offset | bool | no | False | Output range/azimuth offset bands. |
output_deramp_demod_phase | bool | no | False | Output deramp/demod phase band. |
disable_reramp | bool | no | False | Disable reramp operation. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to coregistered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.back_geocoding()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.create_stack method
Collocates two or more products based on their geo-codings.
File location: sarpyx/snapflow/engine.py:3080
Signature
create_stack(self, master_bands: Optional[List[str]]=None, source_bands: Optional[List[str]]=None, resampling_type: str='NONE', extent: str='Master', initial_offset_method: str='Orbit', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
master_bands | Optional[List[str]] | no | None | List of master bands. |
source_bands | Optional[List[str]] | no | None | List of source bands. |
resampling_type | str | no | 'NONE' | Method for resampling slave grid onto master grid. |
extent | str | no | 'Master' | The output image extents. Must be one of 'Master', 'Minimum', 'Maximum'. |
initial_offset_method | str | no | 'Orbit' | Method for computing initial offset. Must be one of 'Orbit', 'Product Geolocation'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to stack output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.create_stack()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.resample method
Resampling of a multi-size source product to a single-size target product.
File location: sarpyx/snapflow/engine.py:3123
Signature
resample(self, reference_band: Optional[str]=None, target_width: Optional[int]=None, target_height: Optional[int]=None, target_resolution: Optional[int]=None, upsampling: str='Nearest', downsampling: str='First', flag_downsampling: str='First', resampling_preset: Optional[str]=None, band_resamplings: Optional[str]=None, resample_on_pyramid_levels: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
reference_band | Optional[str] | no | None | Name of reference band. All other bands resampled to match it. |
target_width | Optional[int] | no | None | Target width in pixels. |
target_height | Optional[int] | no | None | Target height in pixels. |
target_resolution | Optional[int] | no | None | Target resolution. |
upsampling | str | no | 'Nearest' | Interpolation method for upsampling. Must be one of 'Nearest', 'Bilinear', 'Bicubic'. |
downsampling | str | no | 'First' | Aggregation method for downsampling. Must be one of 'First', 'Min', 'Max', 'Mean', 'Median'. |
flag_downsampling | str | no | 'First' | Aggregation method for flags. Must be one of 'First', 'FlagAnd', 'FlagOr', 'FlagMedianAnd', 'FlagMedianOr'. |
resampling_preset | Optional[str] | no | None | Resampling preset name. |
band_resamplings | Optional[str] | no | None | Band-specific resampling settings. |
resample_on_pyramid_levels | bool | no | True | Increase performance for viewing. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to resampled output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.resample()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.linear_to_from_db method
Converts bands to/from dB.
File location: sarpyx/snapflow/engine.py:3191
Signature
linear_to_from_db(self, source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to convert. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to converted output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.linear_to_from_db()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.remove_grd_border_noise method
Mask no-value pixels for GRD product.
File location: sarpyx/snapflow/engine.py:3218
Signature
remove_grd_border_noise(self, selected_polarisations: Optional[List[str]]=None, border_limit: int=500, trim_threshold: float=0.5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
selected_polarisations | Optional[List[str]] | no | None | List of polarisations to process. |
border_limit | int | no | 500 | The border margin limit in pixels. |
trim_threshold | float | no | 0.5 | The trim threshold. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to noise-removed output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.remove_grd_border_noise()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.collocate method
Collocates two products based on their geo-codings.
File location: sarpyx/snapflow/engine.py:3252
Signature
collocate(self, source_product_paths: Optional[List[str]]=None, reference_product_name: Optional[str]=None, target_product_type: str='COLLOCATED', copy_secondary_metadata: bool=False, rename_reference_components: bool=True, rename_secondary_components: bool=True, reference_component_pattern: str='${ORIGINAL_NAME}_M', secondary_component_pattern: str='${ORIGINAL_NAME}_S${SLAVE_NUMBER_ID}', resampling_type: str='NEAREST_NEIGHBOUR', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_product_paths | Optional[List[str]] | no | None | Comma-separated list of source product paths. |
reference_product_name | Optional[str] | no | None | Name of the reference product. |
target_product_type | str | no | 'COLLOCATED' | Product type string for target product. |
copy_secondary_metadata | bool | no | False | Copy metadata from secondary products. |
rename_reference_components | bool | no | True | Rename reference components in target. |
rename_secondary_components | bool | no | True | Rename secondary components in target. |
reference_component_pattern | str | no | '${ORIGINAL_NAME}_M' | Text pattern for renaming reference components. |
secondary_component_pattern | str | no | '${ORIGINAL_NAME}_S${SLAVE_NUMBER_ID}' | Text pattern for renaming secondary components. |
resampling_type | str | no | 'NEAREST_NEIGHBOUR' | Method for resampling secondary grid onto reference grid. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to collocated output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.collocate()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.polarimetric_decomposition method
Perform Polarimetric decomposition of a given product.
File location: sarpyx/snapflow/engine.py:3306
Signature
polarimetric_decomposition(self, decomposition: str='Sinclair Decomposition', window_size: int=5, output_ha_alpha: bool=False, output_beta_delta_gamma_lambda: bool=False, output_alpha123: bool=False, output_lambda123: bool=False, output_touzi_param_set0: bool=False, output_touzi_param_set1: bool=False, output_touzi_param_set2: bool=False, output_touzi_param_set3: bool=False, output_huynen_param_set0: bool=True, output_huynen_param_set1: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
decomposition | str | no | 'Sinclair Decomposition' | 'Sinclair Decomposition', 'Pauli Decomposition', 'Freeman-Durden Decomposition', 'Generalized Freeman-Durden Decomposition', 'Yamaguchi Decomposition', 'van Zyl Decomposition', 'H-A-Alpha Quad Pol Decomposition', 'H-Alpha Dual Pol Decomposition', 'Cloude Decomposition', 'Touzi Decomposition', 'Huynen Decomposition', 'Yang Decomposition', 'Krogager Decomposition', 'Cameron Decomposition', 'Model-free 3-component Decomposition', 'Model-free 4-component Decomposition', 'Model-Based Dual Pol Decomposition'. |
window_size | int | no | 5 | The sliding window size. Valid interval is [1, 100]. |
output_ha_alpha | bool | no | False | Output entropy, anisotropy, alpha. |
output_beta_delta_gamma_lambda | bool | no | False | Output beta, delta, gamma, lambda. |
output_alpha123 | bool | no | False | Output alpha 1, 2, 3. |
output_lambda123 | bool | no | False | Output lambda 1, 2, 3. |
output_touzi_param_set0 | bool | no | False | Output psi, tau, alpha, phi. |
output_touzi_param_set1 | bool | no | False | Output psi1, tau1, alpha1, phi1. |
output_touzi_param_set2 | bool | no | False | Output psi2, tau2, alpha2, phi2. |
output_touzi_param_set3 | bool | no | False | Output psi3, tau3, alpha3, phi3. |
output_huynen_param_set0 | bool | no | True | Output 2A0_b, B0_plus_B, B0_minus_B. |
output_huynen_param_set1 | bool | no | False | Output A0, B0, B, C, D, E, F, G, H. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to decomposed output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.polarimetric_decomposition()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.polarimetric_parameters method
Compute general polarimetric parameters.
File location: sarpyx/snapflow/engine.py:3373
Signature
polarimetric_parameters(self, use_mean_matrix: bool=True, window_size_x_str: str='5', window_size_y_str: str='5', output_span: bool=True, output_pedestal_height: bool=False, output_rvi: bool=False, output_rfdi: bool=False, output_csi: bool=False, output_vsi: bool=False, output_bmi: bool=False, output_iti: bool=False, output_hhvv_ratio: bool=False, output_hhhv_ratio: bool=False, output_vvvh_ratio: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
use_mean_matrix | bool | no | True | Use mean coherency or covariance matrix. |
window_size_x_str | str | no | '5' | Window size in X direction. Must be one of '3', '5', '7', '9', '11', '13', '15', '17', '19'. |
window_size_y_str | str | no | '5' | Window size in Y direction. Must be one of '3', '5', '7', '9', '11', '13', '15', '17', '19'. |
output_span | bool | no | True | Output Span. |
output_pedestal_height | bool | no | False | Output pedestal height. |
output_rvi | bool | no | False | Output RVI. |
output_rfdi | bool | no | False | Output RFDI. |
output_csi | bool | no | False | Output CSI. |
output_vsi | bool | no | False | Output VSI. |
output_bmi | bool | no | False | Output BMI. |
output_iti | bool | no | False | Output ITI. |
output_hhvv_ratio | bool | no | False | Output Co-Pol HH/VV ratio. |
output_hhhv_ratio | bool | no | False | Output Cross-Pol HH/HV ratio. |
output_vvvh_ratio | bool | no | False | Output Cross-Pol VV/VH ratio. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with polarimetric parameters, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.polarimetric_parameters()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.offset_tracking method
Create velocity vectors from offset tracking.
File location: sarpyx/snapflow/engine.py:3440
Signature
offset_tracking(self, grid_azimuth_spacing: int=40, grid_range_spacing: int=40, registration_window_width: str='128', registration_window_height: str='128', x_corr_threshold: float=0.1, registration_oversampling: str='16', average_box_size: str='5', max_velocity: float=5.0, radius: int=4, resampling_type: str='BICUBIC_INTERPOLATION', spatial_average: bool=True, fill_holes: bool=True, roi_vector: Optional[str]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
grid_azimuth_spacing | int | no | 40 | Output grid azimuth spacing in pixels. |
grid_range_spacing | int | no | 40 | Output grid range spacing in pixels. |
registration_window_width | str | no | '128' | Registration window width. Must be one of '32', '64', '128', '256', '512', '1024', '2048'. |
registration_window_height | str | no | '128' | Registration window height. Must be one of '32', '64', '128', '256', '512', '1024', '2048'. |
x_corr_threshold | float | no | 0.1 | The cross-correlation threshold. |
registration_oversampling | str | no | '16' | Registration oversampling factor. Must be one of '2', '4', '8', '16', '32', '64', '128', '256', '512'. |
average_box_size | str | no | '5' | Average box size. Must be one of '3', '5', '9', '11'. |
max_velocity | float | no | 5.0 | Threshold for eliminating invalid GCPs. |
radius | int | no | 4 | Radius for hole-filling. |
resampling_type | str | no | 'BICUBIC_INTERPOLATION' | Method for velocity interpolation. Must be one of 'NEAREST_NEIGHBOUR', 'BILINEAR_INTERPOLATION', 'BICUBIC_INTERPOLATION', 'BISINC_5_POINT_INTERPOLATION', 'CUBIC_CONVOLUTION'. |
spatial_average | bool | no | True | Apply spatial averaging. |
fill_holes | bool | no | True | Fill holes in velocity field. |
roi_vector | Optional[str] | no | None | Region of interest vector. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to offset tracking output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.offset_tracking()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.ndvi method
The retrieves the Normalized Difference Vegetation Index (NDVI).
File location: sarpyx/snapflow/engine.py:3510
Signature
ndvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | The red band for NDVI computation. If not provided, the operator will try to find the best fitting band. |
nir_source_band | Optional[str] | no | None | The near-infrared band for NDVI computation. If not provided, the operator will try to find the best fitting band. |
red_factor | float | no | 1.0 | The value of the red source band is multiplied by this value. |
nir_factor | float | no | 1.0 | The value of the NIR source band is multiplied by this value. |
resample_type | str | no | 'None' | If selected bands differ in size, the resample method used. Must be one of 'None', 'Lowest resolution', 'Highest resolution'. |
upsampling | str | no | 'Nearest' | Method for interpolation (upsampling to finer resolution). Must be one of 'Nearest', 'Bilinear', 'Bicubic'. |
downsampling | str | no | 'First' | Method for aggregation (downsampling to coarser resolution). Must be one of 'First', 'Min', 'Max', 'Mean', 'Median'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to NDVI output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ndvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.reproject method
Reprojection of a source product to a target Coordinate Reference System.
File location: sarpyx/snapflow/engine.py:3563
Signature
reproject(self, crs: Optional[str]=None, wkt_file: Optional[str | Path]=None, resampling: str='Nearest', reference_pixel_x: Optional[float]=None, reference_pixel_y: Optional[float]=None, easting: Optional[float]=None, northing: Optional[float]=None, orientation: float=0.0, pixel_size_x: Optional[float]=None, pixel_size_y: Optional[float]=None, width: Optional[int]=None, height: Optional[int]=None, tile_size_x: Optional[int]=None, tile_size_y: Optional[int]=None, orthorectify: bool=False, elevation_model_name: Optional[str]=None, no_data_value: Optional[float]=None, include_tie_point_grids: bool=True, add_delta_bands: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
crs | Optional[str] | no | None | Target Coordinate Reference System in WKT or as authority code. |
wkt_file | Optional[str | Path] | no | None | File containing target CRS in WKT format. |
resampling | str | no | 'Nearest' | Resampling method for floating-point raster data. Must be one of 'Nearest', 'Bilinear', 'Bicubic'. |
reference_pixel_x | Optional[float] | no | None | X-position of reference pixel. |
reference_pixel_y | Optional[float] | no | None | Y-position of reference pixel. |
easting | Optional[float] | no | None | Easting of reference pixel. |
northing | Optional[float] | no | None | Northing of reference pixel. |
orientation | float | no | 0.0 | Orientation of output product in degrees. Valid interval is [-360, 360]. |
pixel_size_x | Optional[float] | no | None | Pixel size in X direction in CRS units. |
pixel_size_y | Optional[float] | no | None | Pixel size in Y direction in CRS units. |
width | Optional[int] | no | None | Width of target product. |
height | Optional[int] | no | None | Height of target product. |
tile_size_x | Optional[int] | no | None | Tile size in X direction. |
tile_size_y | Optional[int] | no | None | Tile size in Y direction. |
orthorectify | bool | no | False | Whether to orthorectify the source product. |
elevation_model_name | Optional[str] | no | None | Elevation model name for orthorectification. |
no_data_value | Optional[float] | no | None | Value used to indicate no-data. |
include_tie_point_grids | bool | no | True | Include tie-point grids in output. |
add_delta_bands | bool | no | False | Whether to add delta longitude and latitude bands. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to reprojected output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.reproject()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.polarimetric_matrices method
Generate covariance or coherency matrix for given product.
File location: sarpyx/snapflow/engine.py:3674
Signature
polarimetric_matrices(self, matrix: str='T3', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
matrix | str | no | 'T3' | The covariance or coherency matrix type to generate. Must be one of 'C2', 'C3', 'C4', 'T3', 'T4'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to output product with generated matrix, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.polarimetric_matrices()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.polarimetric_speckle_filter method
Apply polarimetric speckle filtering for noise reduction.
File location: sarpyx/snapflow/engine.py:3698
Signature
polarimetric_speckle_filter(self, filter: str='Refined Lee Filter', filter_size: int=5, num_looks_str: str='1', window_size: str='7x7', target_window_size_str: str='3x3', an_size: int=50, sigma_str: str='0.9', search_window_size_str: str='15', patch_size_str: str='5', scale_size_str: str='1', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filter | str | no | 'Refined Lee Filter' | The speckle filter to apply. Must be one of 'Box Car Filter', 'IDAN Filter', 'Refined Lee Filter', 'Improved Lee Sigma Filter'. |
filter_size | int | no | 5 | (1, 100]. |
num_looks_str | str | no | '1' | Number of looks. Must be one of '1', '2', '3', '4'. |
window_size | str | no | '7x7' | The window size. Must be one of '5x5', '7x7', '9x9', '11x11', '13x13', '15x15', '17x17'. |
target_window_size_str | str | no | '3x3' | The target window size. Must be one of '3x3', '5x5'. |
an_size | int | no | 50 | (1, 200]. |
sigma_str | str | no | '0.9' | Sigma parameter. Must be one of '0.5', '0.6', '0.7', '0.8', '0.9'. |
search_window_size_str | str | no | '15' | The search window size. Must be one of '3', '5', '7', '9', '11', '13', '15', '17', '19', '21', '23', '25'. |
patch_size_str | str | no | '5' | The patch size. Must be one of '3', '5', '7', '9', '11'. |
scale_size_str | str | no | '1' | The scale size. Must be one of '0', '1', '2'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to filtered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.polarimetric_speckle_filter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.polarimetric_classification method
Perform polarimetric classification of SAR data.
File location: sarpyx/snapflow/engine.py:3760
Signature
polarimetric_classification(self, classification: str='H Alpha Wishart', window_size: int=5, max_iterations: int=3, num_initial_classes: int=90, num_final_classes: int=15, mixed_category_threshold: float=0.5, decomposition: str='Sinclair Decomposition', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
classification | str | no | 'H Alpha Wishart' | The classification method to use. Must be one of 'Cloude-Pottier', 'Cloude-Pottier Dual Pol', 'H Alpha Wishart', 'H Alpha Wishart Dual Pol', 'Freeman-Durden Wishart', 'General Wishart'. |
window_size | int | no | 5 | (1, 100]. |
max_iterations | int | no | 3 | [1, 100]. |
num_initial_classes | int | no | 90 | [9, 1000]. |
num_final_classes | int | no | 15 | [9, 100]. |
mixed_category_threshold | float | no | 0.5 | The threshold for classifying pixels to mixed category. Valid range: (0, *). |
decomposition | str | no | 'Sinclair Decomposition' | The polarimetric decomposition method. Must be one of 'Sinclair Decomposition', 'Pauli Decomposition', 'Freeman-Durden Decomposition', 'Generalized Freeman-Durden Decomposition', 'Yamaguchi Decomposition', 'van Zyl Decomposition', 'H-A-Alpha Quad Pol Decomposition', 'Cloude Decomposition', 'Touzi Decomposition'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to classified output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.polarimetric_classification()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.read_product method
Read a data product from a given file location.
File location: sarpyx/snapflow/engine.py:3812
Signature
read_product(self, file: str | Path, format_name: Optional[str]=None, source_bands: Optional[List[str]]=None, source_masks: Optional[List[str]]=None, pixel_region: Optional[str]=None, geometry_region: Optional[str]=None, vector_file: Optional[str | Path]=None, polygon_region: Optional[str]=None, use_advanced_options: bool=False, copy_metadata: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
file | str | Path | yes | - | The file from which the data product is read. |
format_name | Optional[str] | no | None | An optional format name to specify the reader. |
source_bands | Optional[List[str]] | no | None | List of source band names to read. |
source_masks | Optional[List[str]] | no | None | List of source mask names to read. |
pixel_region | Optional[str] | no | None | 'x,y,width,height'). |
geometry_region | Optional[str] | no | None | Subset region in geographical coordinates using WKT-format. |
vector_file | Optional[str | Path] | no | None | File from which the polygon geometry is read. |
polygon_region | Optional[str] | no | None | Subset region in geographical coordinates using WKT-format. |
use_advanced_options | bool | no | False | Whether to use advanced options for reading. |
copy_metadata | bool | no | True | Whether to copy the metadata of the source product. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to read output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.read_product(file=<file>)
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.merge_products method
Merge several source products using a master product as reference.
File location: sarpyx/snapflow/engine.py:3880
Signature
merge_products(self, geographic_error: float=1e-05, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
geographic_error | float | no | 1e-05 | Maximum lat/lon error in degrees between products. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to merged output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.merge_products()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.mosaic method
Create a mosaic from a set of source products.
File location: sarpyx/snapflow/engine.py:3904
Signature
mosaic(self, combine: str='OR', crs: str='EPSG:4326', east_bound: float=30.0, north_bound: float=75.0, south_bound: float=35.0, west_bound: float=-15.0, pixel_size_x: float=0.05, pixel_size_y: float=0.05, orthorectify: bool=False, elevation_model_name: Optional[str]=None, resampling: str='Nearest', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
combine | str | no | 'OR' | Specifies how conditions are combined. Must be 'OR' or 'AND'. |
crs | str | no | 'EPSG:4326' | The CRS of the target product (WKT or authority code). |
east_bound | float | no | 30.0 | [-180, 180]. |
north_bound | float | no | 75.0 | [-90, 90]. |
south_bound | float | no | 35.0 | [-90, 90]. |
west_bound | float | no | -15.0 | [-180, 180]. |
pixel_size_x | float | no | 0.05 | Size of a pixel in X-direction in map units. |
pixel_size_y | float | no | 0.05 | Size of a pixel in Y-direction in map units. |
orthorectify | bool | no | False | Whether the source product should be orthorectified. |
elevation_model_name | Optional[str] | no | None | Elevation model name for orthorectification. |
resampling | str | no | 'Nearest' | Resampling method. Must be 'Nearest', 'Bilinear', or 'Bicubic'. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to mosaic output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.mosaic()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.flip method
Flip a product horizontally, vertically, or both.
File location: sarpyx/snapflow/engine.py:3962
Signature
flip(self, flip_type: str='Vertical', source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
flip_type | str | no | 'Vertical' | The type of flip to apply. Must be 'Horizontal', 'Vertical', or 'Horizontal and Vertical'. |
source_bands | Optional[List[str]] | no | None | List of source bands to flip. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to flipped output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.flip()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.image_filter method
Apply common image processing filters.
File location: sarpyx/snapflow/engine.py:3992
Signature
image_filter(self, selected_filter_name: Optional[str]=None, source_bands: Optional[List[str]]=None, user_defined_kernel_file: Optional[str | Path]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
selected_filter_name | Optional[str] | no | None | The name of the filter to apply. |
source_bands | Optional[List[str]] | no | None | List of source bands to filter. |
user_defined_kernel_file | Optional[str | Path] | no | None | Path to file containing a user-defined kernel. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to filtered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.image_filter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.convert_datatype method
Convert product data type.
File location: sarpyx/snapflow/engine.py:4030
Signature
convert_datatype(self, target_data_type: str='uint8', target_scaling_str: str='Linear (between 95% clipped histogram)', target_no_data_value: float=0.0, source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
target_data_type | str | no | 'uint8' | The target data type. Must be one of 'int8', 'int16', 'int32', 'uint8', 'uint16', 'uint32', 'float32', 'float64'. |
target_scaling_str | str | no | 'Linear (between 95% clipped histogram)' | The scaling method for data type conversion. Must be one of 'Truncate', 'Linear (slope and intercept)', 'Linear (between 95% clipped histogram)', 'Linear (peak clipped histogram)', 'Logarithmic'. |
target_no_data_value | float | no | 0.0 | The no-data value for the target product. |
source_bands | Optional[List[str]] | no | None | List of source bands to convert. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to converted output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.convert_datatype()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.land_sea_mask method
Create a bitmask defining land versus ocean areas.
File location: sarpyx/snapflow/engine.py:4072
Signature
land_sea_mask(self, land_mask: bool=True, use_srtm: bool=True, geometry: Optional[str]=None, invert_geometry: bool=False, shoreline_extension: int=0, source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
land_mask | bool | no | True | If True, masks land areas; if False, masks sea areas. |
use_srtm | bool | no | True | Use SRTM water body data for land/sea determination. |
geometry | Optional[str] | no | None | Name of geometry to use for masking. |
invert_geometry | bool | no | False | Invert the geometry mask. |
shoreline_extension | int | no | 0 | Distance in pixels to extend the shoreline. |
source_bands | Optional[List[str]] | no | None | List of source bands to apply the mask to. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to masked output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.land_sea_mask()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.enhanced_spectral_diversity method
Estimate constant range and azimuth offsets for a stack of images.
File location: sarpyx/snapflow/engine.py:4117
Signature
enhanced_spectral_diversity(self, fine_win_width_str: str='512', fine_win_height_str: str='512', fine_win_acc_azimuth: str='16', fine_win_acc_range: str='16', fine_win_oversampling: str='128', x_corr_threshold: float=0.1, coh_threshold: float=0.3, num_blocks_per_overlap: int=10, esd_estimator: str='Periodogram', weight_func: str='Inv Quadratic', temporal_baseline_type: str='Number of images', max_temporal_baseline: int=4, integration_method: str='L1 and L2', do_not_write_target_bands: bool=False, use_supplied_range_shift: bool=False, overall_range_shift: float=0.0, use_supplied_azimuth_shift: bool=False, overall_azimuth_shift: float=0.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
fine_win_width_str | str | no | '512' | Width of fine registration window. |
fine_win_height_str | str | no | '512' | Height of fine registration window. |
fine_win_acc_azimuth | str | no | '16' | Fine registration azimuth accuracy. |
fine_win_acc_range | str | no | '16' | Fine registration range accuracy. |
fine_win_oversampling | str | no | '128' | Fine registration oversampling factor. |
x_corr_threshold | float | no | 0.1 | Peak cross-correlation threshold. |
coh_threshold | float | no | 0.3 | Coherence threshold for outlier removal. |
num_blocks_per_overlap | int | no | 10 | Number of windows per overlap for ESD. |
esd_estimator | str | no | 'Periodogram' | ESD estimator used for azimuth shift computation. |
weight_func | str | no | 'Inv Quadratic' | Weight function of coherence for azimuth shift estimation. |
temporal_baseline_type | str | no | 'Number of images' | Baseline type for building integration network. |
max_temporal_baseline | int | no | 4 | Maximum temporal baseline between image pairs. |
integration_method | str | no | 'L1 and L2' | Method used for integrating shifts network. |
do_not_write_target_bands | bool | no | False | Do not write target bands. |
use_supplied_range_shift | bool | no | False | Use user supplied range shift. |
overall_range_shift | float | no | 0.0 | The overall range shift value. |
use_supplied_azimuth_shift | bool | no | False | Use user supplied azimuth shift. |
overall_azimuth_shift | float | no | 0.0 | The overall azimuth shift value. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to ESD-corrected output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.enhanced_spectral_diversity()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.phase_to_displacement method
Convert unwrapped phase to displacement along line of sight.
File location: sarpyx/snapflow/engine.py:4194
Signature
phase_to_displacement(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to displacement output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.phase_to_displacement()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.phase_to_elevation method
Convert interferometric phase to elevation (DEM generation).
File location: sarpyx/snapflow/engine.py:4213
Signature
phase_to_elevation(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BILINEAR_INTERPOLATION', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use as reference. |
dem_resampling_method | str | no | 'BILINEAR_INTERPOLATION' | DEM resampling method. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to elevation output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.phase_to_elevation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.phase_to_height method
Convert unwrapped phase to height.
File location: sarpyx/snapflow/engine.py:4249
Signature
phase_to_height(self, n_points: int=200, n_heights: int=3, degree_1d: int=2, degree_2d: int=5, orbit_degree: int=3, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
n_points | int | no | 200 | Number of points for evaluation of flat earth phase. |
n_heights | int | no | 3 | Number of height samples in range [0,5000). |
degree_1d | int | no | 2 | Degree of 1D polynomial to fit reference phase through. |
degree_2d | int | no | 5 | Degree of 2D polynomial to fit reference phase through. |
orbit_degree | int | no | 3 | Degree of orbit (polynomial) interpolator. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to height output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.phase_to_height()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.snaphu_export method
Download and execute SNAPHU on interferograms.
File location: sarpyx/snapflow/engine.py:4286
Signature
snaphu_export(self, snaphu_processing_location: Optional[str | Path]=None, snaphu_install_location: Optional[str | Path]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
snaphu_processing_location | Optional[str | Path] | no | None | Directory for SNAPHU processing. |
snaphu_install_location | Optional[str | Path] | no | None | Directory to install SNAPHU binary. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to SNAPHU export output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.snaphu_export()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.cross_correlation method
Automatic GCP selection using cross-correlation.
File location: sarpyx/snapflow/engine.py:4317
Signature
cross_correlation(self, num_gcp_to_generate: int=2000, coarse_registration_window_width: str='128', coarse_registration_window_height: str='128', row_interp_factor: str='2', column_interp_factor: str='2', max_iteration: int=10, gcp_tolerance: float=0.5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
num_gcp_to_generate | int | no | 2000 | Number of GCPs to use in a grid. |
coarse_registration_window_width | str | no | '128' | Coarse registration window width. |
coarse_registration_window_height | str | no | '128' | Coarse registration window height. |
row_interp_factor | str | no | '2' | Row interpolation factor. |
column_interp_factor | str | no | '2' | Column interpolation factor. |
max_iteration | int | no | 10 | Maximum number of iterations. |
gcp_tolerance | float | no | 0.5 | Tolerance in slave GCP validation check. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to coregistered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.cross_correlation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.dem_assisted_coregistration method
Perform orbit and DEM based coregistration.
File location: sarpyx/snapflow/engine.py:4360
Signature
dem_assisted_coregistration(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BICUBIC_INTERPOLATION', external_dem_file: Optional[str | Path]=None, external_dem_no_data_value: float=0.0, resampling_type: str='BISINC_5_POINT_INTERPOLATION', mask_out_area_without_elevation: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | The digital elevation model to use. |
dem_resampling_method | str | no | 'BICUBIC_INTERPOLATION' | DEM resampling method. |
external_dem_file | Optional[str | Path] | no | None | Path to external DEM file. |
external_dem_no_data_value | float | no | 0.0 | No data value for external DEM. |
resampling_type | str | no | 'BISINC_5_POINT_INTERPOLATION' | Method for resampling slave grid onto master grid. |
mask_out_area_without_elevation | bool | no | True | Mask out areas without elevation. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to coregistered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.dem_assisted_coregistration()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.eap_phase_correction method
Apply EAP (Equivalent Aperture Position) phase correction.
File location: sarpyx/snapflow/engine.py:4402
Signature
eap_phase_correction(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to phase-corrected output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.eap_phase_correction()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.ellipsoid_correction_rd method
Apply ellipsoid correction with Range-Doppler method.
File location: sarpyx/snapflow/engine.py:4420
Signature
ellipsoid_correction_rd(self, source_bands: Optional[List[str]]=None, pixel_spacing_in_meter: float=0.0, map_projection: str='WGS84(DD)', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to process. |
pixel_spacing_in_meter | float | no | 0.0 | Pixel spacing in meters. |
map_projection | str | no | 'WGS84(DD)' | Coordinate reference system in WKT format. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to terrain-corrected output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ellipsoid_correction_rd()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.range_filter method
Apply range filtering for spectral analysis.
File location: sarpyx/snapflow/engine.py:4453
Signature
range_filter(self, fft_length: int=8, alpha_hamming: float=0.75, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
fft_length | int | no | 8 | Length of filtering window. |
alpha_hamming | float | no | 0.75 | Weight for Hamming filter. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to range-filtered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.range_filter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.azimuth_filter method
Apply azimuth filtering for spectral analysis.
File location: sarpyx/snapflow/engine.py:4481
Signature
azimuth_filter(self, fft_length: int=256, alpha_hamming: float=0.75, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
fft_length | int | no | 256 | Length of filtering window. |
alpha_hamming | float | no | 0.75 | Weight for Hamming filter. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to azimuth-filtered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.azimuth_filter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.band_pass_filter method
Create basebanded SLC based on a subband of 1/3 the original bandwidth.
File location: sarpyx/snapflow/engine.py:4509
Signature
band_pass_filter(self, subband: str='low', alpha: float=1.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
subband | str | no | 'low' | Subband selection ('low' or 'high'). |
alpha | float | no | 1.0 | Hamming alpha parameter. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to band-pass filtered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.band_pass_filter()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.oversample method
Oversample the dataset to increase spatial resolution.
File location: sarpyx/snapflow/engine.py:4537
Signature
oversample(self, source_bands: Optional[List[str]]=None, output_image_by: str='Ratio', width_ratio: float=2.0, height_ratio: float=2.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands to oversample. |
output_image_by | str | no | 'Ratio' | Method to specify output dimensions. |
width_ratio | float | no | 2.0 | Width ratio of output/input images. |
height_ratio | float | no | 2.0 | Height ratio of output/input images. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to oversampled output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.oversample()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.glcm method
Extract texture features using Gray Level Co-occurrence Matrix.
File location: sarpyx/snapflow/engine.py:4573
Signature
glcm(self, source_bands: Optional[List[str]]=None, window_size_str: str='9x9', angle_str: str='ALL', quantization_levels_str: str='32', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | List of source bands for texture analysis. |
window_size_str | str | no | '9x9' | Size of the analysis window. |
angle_str | str | no | 'ALL' | Angle for co-occurrence matrix computation. |
quantization_levels_str | str | no | '32' | Number of quantization levels. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to GLCM output product with texture features, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.glcm()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.pca method
Perform Principal Component Analysis (PCA).
File location: sarpyx/snapflow/engine.py:4609
Signature
pca(self, source_band_names: Optional[List[str]]=None, component_count: int=-1, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_band_names | Optional[List[str]] | no | None | Names of bands to use for analysis. |
component_count | int | no | -1 | Maximum number of components (-1 for all). |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to PCA output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.pca()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.k_means_cluster_analysis method
Perform K-Means cluster analysis.
File location: sarpyx/snapflow/engine.py:4637
Signature
k_means_cluster_analysis(self, source_band_names: Optional[List[str]]=None, cluster_count: int=14, iteration_count: int=30, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_band_names | Optional[List[str]] | no | None | Names of bands to use for cluster analysis. |
cluster_count | int | no | 14 | Number of clusters. |
iteration_count | int | no | 30 | Number of iterations. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to clustered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.k_means_cluster_analysis()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.em_cluster_analysis method
Perform Expectation-Maximization cluster analysis.
File location: sarpyx/snapflow/engine.py:4670
Signature
em_cluster_analysis(self, source_band_names: Optional[List[str]]=None, cluster_count: int=14, iteration_count: int=30, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_band_names | Optional[List[str]] | no | None | Names of bands to use for cluster analysis. |
cluster_count | int | no | 14 | Number of clusters. |
iteration_count | int | no | 30 | Number of iterations. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to clustered output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.em_cluster_analysis()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.random_forest_classifier method
Perform Random Forest classification.
File location: sarpyx/snapflow/engine.py:4703
Signature
random_forest_classifier(self, tree_count: int=10, feature_bands: Optional[List[str]]=None, training_vectors: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
tree_count | int | no | 10 | Number of trees in the forest. |
feature_bands | Optional[List[str]] | no | None | Names of bands to use as features. |
training_vectors | Optional[List[str]] | no | None | Vectors to train on. |
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to classified output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.random_forest_classifier()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.decision_tree method
Perform Decision Tree classification.
File location: sarpyx/snapflow/engine.py:4736
Signature
decision_tree(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | Custom output filename (without extension). |
Return Type
Optional[str]
Path to classified output product, or None if failed.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.decision_tree()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior. Documented return may be None for some execution paths.
GPT.arvi method
Compute Atmospherically Resistant Vegetation Index.
File location: sarpyx/snapflow/engine.py:4754
Signature
arvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, blue_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, blue_factor: float=1.0, gamma_parameter: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
blue_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
blue_factor | float | no | 1.0 | inferred from implementation. |
gamma_parameter | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.arvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.dvi method
Compute Difference Vegetation Index.
File location: sarpyx/snapflow/engine.py:4788
Signature
dvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.dvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.gemi method
Compute Global Environmental Monitoring Index.
File location: sarpyx/snapflow/engine.py:4815
Signature
gemi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.gemi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.gndvi method
Compute Green Normalized Difference Vegetation Index.
File location: sarpyx/snapflow/engine.py:4842
Signature
gndvi(self, green_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, green_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
green_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.gndvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ipvi method
Compute Infrared Percentage Vegetation Index.
File location: sarpyx/snapflow/engine.py:4869
Signature
ipvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ipvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.mcari method
Compute Modified Chlorophyll Absorption Ratio Index.
File location: sarpyx/snapflow/engine.py:4896
Signature
mcari(self, red1_source_band: Optional[str]=None, red2_source_band: Optional[str]=None, green_source_band: Optional[str]=None, red1_factor: float=1.0, red2_factor: float=1.0, green_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red1_source_band | Optional[str] | no | None | inferred from implementation. |
red2_source_band | Optional[str] | no | None | inferred from implementation. |
green_source_band | Optional[str] | no | None | inferred from implementation. |
red1_factor | float | no | 1.0 | inferred from implementation. |
red2_factor | float | no | 1.0 | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.mcari()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.mndwi method
Compute Modified Normalized Difference Water Index.
File location: sarpyx/snapflow/engine.py:4928
Signature
mndwi(self, green_source_band: Optional[str]=None, mir_source_band: Optional[str]=None, green_factor: float=1.0, mir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
green_source_band | Optional[str] | no | None | inferred from implementation. |
mir_source_band | Optional[str] | no | None | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
mir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.mndwi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.msavi2 method
Compute second Modified Soil Adjusted Vegetation Index.
File location: sarpyx/snapflow/engine.py:4955
Signature
msavi2(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.msavi2()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.msavi method
Compute Modified Soil Adjusted Vegetation Index.
File location: sarpyx/snapflow/engine.py:4982
Signature
msavi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, slope: float=0.5, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
slope | float | no | 0.5 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.msavi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.mtci method
Compute MERIS Terrestrial Chlorophyll Index.
File location: sarpyx/snapflow/engine.py:5011
Signature
mtci(self, red_source_band4: Optional[str]=None, red_source_band5: Optional[str]=None, nir_source_band: Optional[str]=None, red_b4_factor: float=1.0, red_b5_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band4 | Optional[str] | no | None | inferred from implementation. |
red_source_band5 | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_b4_factor | float | no | 1.0 | inferred from implementation. |
red_b5_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.mtci()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ndwi method
Compute Normalized Difference Water Index.
File location: sarpyx/snapflow/engine.py:5043
Signature
ndwi(self, nir_source_band: Optional[str]=None, mir_source_band: Optional[str]=None, nir_factor: float=1.0, mir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
nir_source_band | Optional[str] | no | None | inferred from implementation. |
mir_source_band | Optional[str] | no | None | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
mir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ndwi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.rvi method
Compute Ratio Vegetation Index.
File location: sarpyx/snapflow/engine.py:5070
Signature
rvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.rvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.bi2 method
Second Brightness Index.
File location: sarpyx/snapflow/engine.py:5097
Signature
bi2(self, red_source_band: Optional[str]=None, green_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, green_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
green_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.bi2()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.bi method
Brightness Index.
File location: sarpyx/snapflow/engine.py:5129
Signature
bi(self, red_source_band: Optional[str]=None, green_source_band: Optional[str]=None, red_factor: float=1.0, green_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
green_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.bi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ci method
Colour Index.
File location: sarpyx/snapflow/engine.py:5156
Signature
ci(self, red_source_band: Optional[str]=None, green_source_band: Optional[str]=None, red_factor: float=1.0, green_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
green_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ci()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ireci method
Inverted Red-Edge Chlorophyll.
File location: sarpyx/snapflow/engine.py:5183
Signature
ireci(self, red_source_band4: Optional[str]=None, red_source_band5: Optional[str]=None, red_source_band6: Optional[str]=None, nir_source_band: Optional[str]=None, red_b4_factor: float=1.0, red_b5_factor: float=1.0, red_b6_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band4 | Optional[str] | no | None | inferred from implementation. |
red_source_band5 | Optional[str] | no | None | inferred from implementation. |
red_source_band6 | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_b4_factor | float | no | 1.0 | inferred from implementation. |
red_b5_factor | float | no | 1.0 | inferred from implementation. |
red_b6_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ireci()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ndi45 method
Normalized Difference Index.
File location: sarpyx/snapflow/engine.py:5220
Signature
ndi45(self, red_source_band4: Optional[str]=None, red_source_band5: Optional[str]=None, red_b4_factor: float=1.0, red_b5_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band4 | Optional[str] | no | None | inferred from implementation. |
red_source_band5 | Optional[str] | no | None | inferred from implementation. |
red_b4_factor | float | no | 1.0 | inferred from implementation. |
red_b5_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ndi45()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ndpi method
Normalized Differential Pond.
File location: sarpyx/snapflow/engine.py:5247
Signature
ndpi(self, green_source_band: Optional[str]=None, mir_source_band: Optional[str]=None, green_factor: float=1.0, mir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
green_source_band | Optional[str] | no | None | inferred from implementation. |
mir_source_band | Optional[str] | no | None | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
mir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ndpi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ndti method
Normalized Difference Turbidity.
File location: sarpyx/snapflow/engine.py:5274
Signature
ndti(self, red_source_band: Optional[str]=None, green_source_band: Optional[str]=None, red_factor: float=1.0, green_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
green_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ndti()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ndwi2 method
Normalized Difference Water.
File location: sarpyx/snapflow/engine.py:5301
Signature
ndwi2(self, green_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, green_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
green_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ndwi2()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.pssra method
Pigment Specific Simple.
File location: sarpyx/snapflow/engine.py:5328
Signature
pssra(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.pssra()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.pvi method
Perpendicular Vegetation Index.
File location: sarpyx/snapflow/engine.py:5355
Signature
pvi(self, red_source_band: Optional[str]=None, nir_source_band: Optional[str]=None, red_factor: float=1.0, nir_factor: float=1.0, angle_soil_line_nir_axis: float=45.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
angle_soil_line_nir_axis | float | no | 45.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.pvi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.reip method
Red Edge Inflection.
File location: sarpyx/snapflow/engine.py:5384
Signature
reip(self, red_source_band4: Optional[str]=None, red_source_band5: Optional[str]=None, red_source_band6: Optional[str]=None, nir_source_band: Optional[str]=None, red_b4_factor: float=1.0, red_b5_factor: float=1.0, red_b6_factor: float=1.0, nir_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band4 | Optional[str] | no | None | inferred from implementation. |
red_source_band5 | Optional[str] | no | None | inferred from implementation. |
red_source_band6 | Optional[str] | no | None | inferred from implementation. |
nir_source_band | Optional[str] | no | None | inferred from implementation. |
red_b4_factor | float | no | 1.0 | inferred from implementation. |
red_b5_factor | float | no | 1.0 | inferred from implementation. |
red_b6_factor | float | no | 1.0 | inferred from implementation. |
nir_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.reip()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ri method
Redness Index.
File location: sarpyx/snapflow/engine.py:5421
Signature
ri(self, red_source_band: Optional[str]=None, green_source_band: Optional[str]=None, red_factor: float=1.0, green_factor: float=1.0, resample_type: str='None', upsampling: str='Nearest', downsampling: str='First', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
red_source_band | Optional[str] | no | None | inferred from implementation. |
green_source_band | Optional[str] | no | None | inferred from implementation. |
red_factor | float | no | 1.0 | inferred from implementation. |
green_factor | float | no | 1.0 | inferred from implementation. |
resample_type | str | no | 'None' | inferred from implementation. |
upsampling | str | no | 'Nearest' | inferred from implementation. |
downsampling | str | no | 'First' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ri()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.c2rcc_msi method
C2RCC MSI atmospheric correction.
File location: sarpyx/snapflow/engine.py:5448
Signature
c2rcc_msi(self, valid_pixel_expression: Optional[str]='B8 > 0 && B8 < 0.1', salinity: float=35.0, temperature: float=15.0, ozone: float=330.0, press: float=1000.0, elevation: float=0.0, tsm_fac: float=1.06, tsm_exp: float=0.942, chl_exp: float=1.04, chl_fac: float=21.0, threshold_rtosa_oos: float=0.05, threshold_ac_reflec_oos: float=0.1, threshold_cloud_t_down865: float=0.955, atmospheric_aux_data_path: Optional[str]=None, alternative_nn_path: Optional[str]=None, net_set: str='C2RCC-Nets', output_as_rrs: bool=False, derive_rw_from_path_and_transmittance: bool=False, use_ecmwf_aux_data: bool=False, dem_name: str='Copernicus 90m Global DEM', output_rtoa: bool=True, output_rtosa_gc: bool=False, output_rtosa_gc_aann: bool=False, output_rpath: bool=False, output_tdown: bool=False, output_tup: bool=False, output_ac_reflectance: bool=True, output_rhown: bool=True, output_oos: bool=False, output_kd: bool=True, output_uncertainties: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
valid_pixel_expression | Optional[str] | no | 'B8 > 0 && B8 < 0.1' | inferred from implementation. |
salinity | float | no | 35.0 | inferred from implementation. |
temperature | float | no | 15.0 | inferred from implementation. |
ozone | float | no | 330.0 | inferred from implementation. |
press | float | no | 1000.0 | inferred from implementation. |
elevation | float | no | 0.0 | inferred from implementation. |
tsm_fac | float | no | 1.06 | inferred from implementation. |
tsm_exp | float | no | 0.942 | inferred from implementation. |
chl_exp | float | no | 1.04 | inferred from implementation. |
chl_fac | float | no | 21.0 | inferred from implementation. |
threshold_rtosa_oos | float | no | 0.05 | inferred from implementation. |
threshold_ac_reflec_oos | float | no | 0.1 | inferred from implementation. |
threshold_cloud_t_down865 | float | no | 0.955 | inferred from implementation. |
atmospheric_aux_data_path | Optional[str] | no | None | inferred from implementation. |
alternative_nn_path | Optional[str] | no | None | inferred from implementation. |
net_set | str | no | 'C2RCC-Nets' | inferred from implementation. |
output_as_rrs | bool | no | False | inferred from implementation. |
derive_rw_from_path_and_transmittance | bool | no | False | inferred from implementation. |
use_ecmwf_aux_data | bool | no | False | inferred from implementation. |
dem_name | str | no | 'Copernicus 90m Global DEM' | inferred from implementation. |
output_rtoa | bool | no | True | inferred from implementation. |
output_rtosa_gc | bool | no | False | inferred from implementation. |
output_rtosa_gc_aann | bool | no | False | inferred from implementation. |
output_rpath | bool | no | False | inferred from implementation. |
output_tdown | bool | no | False | inferred from implementation. |
output_tup | bool | no | False | inferred from implementation. |
output_ac_reflectance | bool | no | True | inferred from implementation. |
output_rhown | bool | no | True | inferred from implementation. |
output_oos | bool | no | False | inferred from implementation. |
output_kd | bool | no | True | inferred from implementation. |
output_uncertainties | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.c2rcc_msi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.c2rcc_olci method
C2RCC OLCI atmospheric correction.
File location: sarpyx/snapflow/engine.py:5524
Signature
c2rcc_olci(self, valid_pixel_expression: Optional[str]='!quality_flags.invalid && (!quality_flags.land || quality_flags.fresh_inland_water)', salinity: float=35.0, temperature: float=15.0, ozone: float=330.0, press: float=1000.0, tsm_fac: float=1.06, tsm_exp: float=0.942, chl_exp: float=1.04, chl_fac: float=21.0, threshold_rtosa_oos: float=0.01, threshold_ac_reflec_oos: float=0.15, threshold_cloud_t_down865: float=0.955, atmospheric_aux_data_path: Optional[str]=None, alternative_nn_path: Optional[str]=None, output_as_rrs: bool=False, derive_rw_from_path_and_transmittance: bool=False, use_ecmwf_aux_data: bool=True, dem_name: Optional[str]=None, output_rtoa: bool=True, output_rtosa_gc: bool=False, output_rtosa_gc_aann: bool=False, output_rpath: bool=False, output_tdown: bool=False, output_tup: bool=False, output_ac_reflectance: bool=True, output_rhown: bool=True, output_oos: bool=False, output_kd: bool=True, output_uncertainties: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
valid_pixel_expression | Optional[str] | no | '!quality_flags.invalid && (!quality_flags.land || quality_flags.fresh_inland_water)' | inferred from implementation. |
salinity | float | no | 35.0 | inferred from implementation. |
temperature | float | no | 15.0 | inferred from implementation. |
ozone | float | no | 330.0 | inferred from implementation. |
press | float | no | 1000.0 | inferred from implementation. |
tsm_fac | float | no | 1.06 | inferred from implementation. |
tsm_exp | float | no | 0.942 | inferred from implementation. |
chl_exp | float | no | 1.04 | inferred from implementation. |
chl_fac | float | no | 21.0 | inferred from implementation. |
threshold_rtosa_oos | float | no | 0.01 | inferred from implementation. |
threshold_ac_reflec_oos | float | no | 0.15 | inferred from implementation. |
threshold_cloud_t_down865 | float | no | 0.955 | inferred from implementation. |
atmospheric_aux_data_path | Optional[str] | no | None | inferred from implementation. |
alternative_nn_path | Optional[str] | no | None | inferred from implementation. |
output_as_rrs | bool | no | False | inferred from implementation. |
derive_rw_from_path_and_transmittance | bool | no | False | inferred from implementation. |
use_ecmwf_aux_data | bool | no | True | inferred from implementation. |
dem_name | Optional[str] | no | None | inferred from implementation. |
output_rtoa | bool | no | True | inferred from implementation. |
output_rtosa_gc | bool | no | False | inferred from implementation. |
output_rtosa_gc_aann | bool | no | False | inferred from implementation. |
output_rpath | bool | no | False | inferred from implementation. |
output_tdown | bool | no | False | inferred from implementation. |
output_tup | bool | no | False | inferred from implementation. |
output_ac_reflectance | bool | no | True | inferred from implementation. |
output_rhown | bool | no | True | inferred from implementation. |
output_oos | bool | no | False | inferred from implementation. |
output_kd | bool | no | True | inferred from implementation. |
output_uncertainties | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.c2rcc_olci()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.c2rcc_s2_msi method
C2RCC S2 MSI correction.
File location: sarpyx/snapflow/engine.py:5597
Signature
c2rcc_s2_msi(self, valid_pixel_expression: Optional[str]='B8 > 0 && B8 < 0.1', salinity: float=35.0, temperature: float=15.0, ozone: float=330.0, press: float=1000.0, elevation: float=0.0, tsm_fac: float=1.06, tsm_exp: float=0.942, chl_exp: float=1.04, chl_fac: float=21.0, threshold_rtosa_oos: float=0.05, threshold_ac_reflec_oos: float=0.1, threshold_cloud_t_down865: float=0.955, atmospheric_aux_data_path: Optional[str]=None, alternative_nn_path: Optional[str]=None, net_set: str='C2RCC-Nets', output_as_rrs: bool=False, derive_rw_from_path_and_transmittance: bool=False, use_ecmwf_aux_data: bool=False, dem_name: str='Copernicus 90m Global DEM', output_rtoa: bool=True, output_rtosa_gc: bool=False, output_rtosa_gc_aann: bool=False, output_rpath: bool=False, output_tdown: bool=False, output_tup: bool=False, output_ac_reflectance: bool=True, output_rhown: bool=True, output_oos: bool=False, output_kd: bool=True, output_uncertainties: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
valid_pixel_expression | Optional[str] | no | 'B8 > 0 && B8 < 0.1' | inferred from implementation. |
salinity | float | no | 35.0 | inferred from implementation. |
temperature | float | no | 15.0 | inferred from implementation. |
ozone | float | no | 330.0 | inferred from implementation. |
press | float | no | 1000.0 | inferred from implementation. |
elevation | float | no | 0.0 | inferred from implementation. |
tsm_fac | float | no | 1.06 | inferred from implementation. |
tsm_exp | float | no | 0.942 | inferred from implementation. |
chl_exp | float | no | 1.04 | inferred from implementation. |
chl_fac | float | no | 21.0 | inferred from implementation. |
threshold_rtosa_oos | float | no | 0.05 | inferred from implementation. |
threshold_ac_reflec_oos | float | no | 0.1 | inferred from implementation. |
threshold_cloud_t_down865 | float | no | 0.955 | inferred from implementation. |
atmospheric_aux_data_path | Optional[str] | no | None | inferred from implementation. |
alternative_nn_path | Optional[str] | no | None | inferred from implementation. |
net_set | str | no | 'C2RCC-Nets' | inferred from implementation. |
output_as_rrs | bool | no | False | inferred from implementation. |
derive_rw_from_path_and_transmittance | bool | no | False | inferred from implementation. |
use_ecmwf_aux_data | bool | no | False | inferred from implementation. |
dem_name | str | no | 'Copernicus 90m Global DEM' | inferred from implementation. |
output_rtoa | bool | no | True | inferred from implementation. |
output_rtosa_gc | bool | no | False | inferred from implementation. |
output_rtosa_gc_aann | bool | no | False | inferred from implementation. |
output_rpath | bool | no | False | inferred from implementation. |
output_tdown | bool | no | False | inferred from implementation. |
output_tup | bool | no | False | inferred from implementation. |
output_ac_reflectance | bool | no | True | inferred from implementation. |
output_rhown | bool | no | True | inferred from implementation. |
output_oos | bool | no | False | inferred from implementation. |
output_kd | bool | no | True | inferred from implementation. |
output_uncertainties | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.c2rcc_s2_msi()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.biophysical method
Biophysical processor.
File location: sarpyx/snapflow/engine.py:5673
Signature
biophysical(self, sensor: str='S2A', resolution: str='60', compute_lai: bool=True, compute_fapar: bool=True, compute_fcover: bool=True, compute_cab: bool=True, compute_cw: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sensor | str | no | 'S2A' | inferred from implementation. |
resolution | str | no | '60' | inferred from implementation. |
compute_lai | bool | no | True | inferred from implementation. |
compute_fapar | bool | no | True | inferred from implementation. |
compute_fcover | bool | no | True | inferred from implementation. |
compute_cab | bool | no | True | inferred from implementation. |
compute_cw | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.biophysical()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.biophysical_10m method
Biophysical processor 10m.
File location: sarpyx/snapflow/engine.py:5698
Signature
biophysical_10m(self, sensor: str='S2A_10m', compute_lai: bool=True, compute_fapar: bool=True, compute_fcover: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
sensor | str | no | 'S2A_10m' | inferred from implementation. |
compute_lai | bool | no | True | inferred from implementation. |
compute_fapar | bool | no | True | inferred from implementation. |
compute_fcover | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.biophysical_10m()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.biophysical_landsat8 method
Biophysical Landsat8 processor.
File location: sarpyx/snapflow/engine.py:5717
Signature
biophysical_landsat8(self, compute_lai: bool=True, compute_fapar: bool=True, compute_fcover: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
compute_lai | bool | no | True | inferred from implementation. |
compute_fapar | bool | no | True | inferred from implementation. |
compute_fcover | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.biophysical_landsat8()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.compactpol_radar_vegetation_index method
Compact-pol radar vegetation index.
File location: sarpyx/snapflow/engine.py:5734
Signature
compactpol_radar_vegetation_index(self, window_size_str: str='3', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
window_size_str | str | no | '3' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.compactpol_radar_vegetation_index()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.generalized_radar_vegetation_indices method
Generalized radar vegetation indices.
File location: sarpyx/snapflow/engine.py:5745
Signature
generalized_radar_vegetation_indices(self, window_size: int=5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
window_size | int | no | 5 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.generalized_radar_vegetation_indices()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.radar_vegetation_index method
Radar vegetation index.
File location: sarpyx/snapflow/engine.py:5756
Signature
radar_vegetation_index(self, window_size: int=5, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
window_size | int | no | 5 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.radar_vegetation_index()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.change_detection method
Log ratio change detection.
File location: sarpyx/snapflow/engine.py:5767
Signature
change_detection(self, source_bands: Optional[List[str]]=None, mask_upper_threshold: float=2.0, mask_lower_threshold: float=-2.0, include_source_bands: bool=False, output_difference: bool=False, output_ratio: bool=False, output_log_ratio: bool=True, output_normalized_ratio: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
mask_upper_threshold | float | no | 2.0 | inferred from implementation. |
mask_lower_threshold | float | no | -2.0 | inferred from implementation. |
include_source_bands | bool | no | False | inferred from implementation. |
output_difference | bool | no | False | inferred from implementation. |
output_ratio | bool | no | False | inferred from implementation. |
output_log_ratio | bool | no | True | inferred from implementation. |
output_normalized_ratio | bool | no | False | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.change_detection()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.change_vector_analysis method
Change vector analysis.
File location: sarpyx/snapflow/engine.py:5795
Signature
change_vector_analysis(self, source_band1: Optional[str]=None, source_band2: Optional[str]=None, magnitude_threshold: str='0', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_band1 | Optional[str] | no | None | inferred from implementation. |
source_band2 | Optional[str] | no | None | inferred from implementation. |
magnitude_threshold | str | no | '0' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.change_vector_analysis()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.add_land_cover method
Add land cover band.
File location: sarpyx/snapflow/engine.py:5812
Signature
add_land_cover(self, land_cover_names: Optional[List[str]]=None, external_files: Optional[List[str]]=None, resampling_method: str='NEAREST_NEIGHBOUR', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
land_cover_names | Optional[List[str]] | no | None | inferred from implementation. |
external_files | Optional[List[str]] | no | None | inferred from implementation. |
resampling_method | str | no | 'NEAREST_NEIGHBOUR' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.add_land_cover()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.cloud_prob method
Cloud probability detection.
File location: sarpyx/snapflow/engine.py:5829
Signature
cloud_prob(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.cloud_prob()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.double_difference_interferogram method
Compute double difference interferogram.
File location: sarpyx/snapflow/engine.py:5838
Signature
double_difference_interferogram(self, coh_win_size: str='5', output_coherence: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
coh_win_size | str | no | '5' | inferred from implementation. |
output_coherence | bool | no | False | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.double_difference_interferogram()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.add_elevation method
Creates DEM band.
File location: sarpyx/snapflow/engine.py:5853
Signature
add_elevation(self, dem_name: str='SRTM 3Sec', dem_resampling_method: str='BICUBIC_INTERPOLATION', elevation_band_name: str='elevation', external_dem_file: Optional[str]=None, external_dem_no_data_value: float=0.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_name | str | no | 'SRTM 3Sec' | inferred from implementation. |
dem_resampling_method | str | no | 'BICUBIC_INTERPOLATION' | inferred from implementation. |
elevation_band_name | str | no | 'elevation' | inferred from implementation. |
external_dem_file | Optional[str] | no | None | inferred from implementation. |
external_dem_no_data_value | float | no | 0.0 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.add_elevation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.fill_dem_hole method
Fill DEM holes.
File location: sarpyx/snapflow/engine.py:5875
Signature
fill_dem_hole(self, no_data_value: float=0.0, source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
no_data_value | float | no | 0.0 | inferred from implementation. |
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.fill_dem_hole()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.compute_slope_aspect method
Compute slope and aspect.
File location: sarpyx/snapflow/engine.py:5889
Signature
compute_slope_aspect(self, dem_band_name: str='elevation', dem_name: str='SRTM 1Sec HGT', dem_resampling_method: str='BILINEAR_INTERPOLATION', external_dem_apply_egm: bool=False, external_dem_file: Optional[str]=None, external_dem_no_data_value: float=0.0, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
dem_band_name | str | no | 'elevation' | inferred from implementation. |
dem_name | str | no | 'SRTM 1Sec HGT' | inferred from implementation. |
dem_resampling_method | str | no | 'BILINEAR_INTERPOLATION' | inferred from implementation. |
external_dem_apply_egm | bool | no | False | inferred from implementation. |
external_dem_file | Optional[str] | no | None | inferred from implementation. |
external_dem_no_data_value | float | no | 0.0 | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.compute_slope_aspect()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.cp_decomposition method
Compact polarimetric decomposition.
File location: sarpyx/snapflow/engine.py:5913
Signature
cp_decomposition(self, decomposition: str='M-Chi Decomposition', window_size_x_str: str='5', window_size_y_str: str='5', compute_alpha_by_t3: bool=True, output_rvog: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
decomposition | str | no | 'M-Chi Decomposition' | inferred from implementation. |
window_size_x_str | str | no | '5' | inferred from implementation. |
window_size_y_str | str | no | '5' | inferred from implementation. |
compute_alpha_by_t3 | bool | no | True | inferred from implementation. |
output_rvog | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.cp_decomposition()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.cp_simulation method
Compact pol simulation.
File location: sarpyx/snapflow/engine.py:5934
Signature
cp_simulation(self, compact_mode: str='Right Circular Hybrid Mode', output_format: str='Covariance Matrix C2', noise_power: float=-25.0, simulate_noise_floor: bool=False, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
compact_mode | str | no | 'Right Circular Hybrid Mode' | inferred from implementation. |
output_format | str | no | 'Covariance Matrix C2' | inferred from implementation. |
noise_power | float | no | -25.0 | inferred from implementation. |
simulate_noise_floor | bool | no | False | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.cp_simulation()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.cp_stokes_parameters method
Compact pol Stokes parameters.
File location: sarpyx/snapflow/engine.py:5953
Signature
cp_stokes_parameters(self, window_size_x_str: str='5', window_size_y_str: str='5', output_stokes_vector: bool=False, output_degree_of_polarization: bool=True, output_degree_of_depolarization: bool=True, output_degree_of_circularity: bool=True, output_degree_of_ellipticity: bool=True, output_cpr: bool=True, output_lpr: bool=True, output_relative_phase: bool=True, output_alphas: bool=True, output_conformity: bool=True, output_phase_phi: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
window_size_x_str | str | no | '5' | inferred from implementation. |
window_size_y_str | str | no | '5' | inferred from implementation. |
output_stokes_vector | bool | no | False | inferred from implementation. |
output_degree_of_polarization | bool | no | True | inferred from implementation. |
output_degree_of_depolarization | bool | no | True | inferred from implementation. |
output_degree_of_circularity | bool | no | True | inferred from implementation. |
output_degree_of_ellipticity | bool | no | True | inferred from implementation. |
output_cpr | bool | no | True | inferred from implementation. |
output_lpr | bool | no | True | inferred from implementation. |
output_relative_phase | bool | no | True | inferred from implementation. |
output_alphas | bool | no | True | inferred from implementation. |
output_conformity | bool | no | True | inferred from implementation. |
output_phase_phi | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.cp_stokes_parameters()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.coregistration method
Coregister two rasters.
File location: sarpyx/snapflow/engine.py:5990
Signature
coregistration(self, master_source_band: Optional[str]=None, slave_source_band: Optional[str]=None, levels: int=6, rank: int=4, iterations: int=2, radius: str='32, 28, 24, 20, 16, 12, 8', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
master_source_band | Optional[str] | no | None | inferred from implementation. |
slave_source_band | Optional[str] | no | None | inferred from implementation. |
levels | int | no | 6 | inferred from implementation. |
rank | int | no | 4 | inferred from implementation. |
iterations | int | no | 2 | inferred from implementation. |
radius | str | no | '32, 28, 24, 20, 16, 12, 8' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.coregistration()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.ellipsoid_correction_gg method
GG ellipsoid correction.
File location: sarpyx/snapflow/engine.py:6015
Signature
ellipsoid_correction_gg(self, img_resampling_method: str='BILINEAR_INTERPOLATION', map_projection: str='WGS84(DD)', source_bands: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
img_resampling_method | str | no | 'BILINEAR_INTERPOLATION' | inferred from implementation. |
map_projection | str | no | 'WGS84(DD)' | inferred from implementation. |
source_bands | Optional[List[str]] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.ellipsoid_correction_gg()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.cross_resampling method
Cross resampling operation.
File location: sarpyx/snapflow/engine.py:6033
Signature
cross_resampling(self, warp_polynomial_order: int=2, interpolation_method: str='Cubic convolution (6 points)', target_geometry: str='ERS', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
warp_polynomial_order | int | no | 2 | inferred from implementation. |
interpolation_method | str | no | 'Cubic convolution (6 points)' | inferred from implementation. |
target_geometry | str | no | 'ERS' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.cross_resampling()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.bands_difference method
Bands difference operation.
File location: sarpyx/snapflow/engine.py:6050
Signature
bands_difference(self, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.bands_difference()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.bands_extractor method
Extract specific bands.
File location: sarpyx/snapflow/engine.py:6059
Signature
bands_extractor(self, source_band_names: Optional[List[str]]=None, source_mask_names: Optional[List[str]]=None, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
source_band_names | Optional[List[str]] | no | None | inferred from implementation. |
source_mask_names | Optional[List[str]] | no | None | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.bands_extractor()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.binning method
Spatial temporal binning.
File location: sarpyx/snapflow/engine.py:6075
Signature
binning(self, num_rows: int=2160, mask_expr: Optional[str]=None, source_product_paths: Optional[List[str]]=None, source_product_format: Optional[str]=None, region: Optional[str]=None, start_date_time: Optional[str]=None, period_duration: Optional[float]=None, time_filter_method: str='NONE', min_data_hour: Optional[float]=None, super_sampling: int=1, max_distance_on_earth: int=-1, output_binned_data: bool=False, output_mapped_product: bool=True, output_type: str='Product', output_format: str='BEAM-DIMAP', output_file: Optional[str]=None, metadata_aggregator_name: str='NAME', output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
num_rows | int | no | 2160 | inferred from implementation. |
mask_expr | Optional[str] | no | None | inferred from implementation. |
source_product_paths | Optional[List[str]] | no | None | inferred from implementation. |
source_product_format | Optional[str] | no | None | inferred from implementation. |
region | Optional[str] | no | None | inferred from implementation. |
start_date_time | Optional[str] | no | None | inferred from implementation. |
period_duration | Optional[float] | no | None | inferred from implementation. |
time_filter_method | str | no | 'NONE' | inferred from implementation. |
min_data_hour | Optional[float] | no | None | inferred from implementation. |
super_sampling | int | no | 1 | inferred from implementation. |
max_distance_on_earth | int | no | -1 | inferred from implementation. |
output_binned_data | bool | no | False | inferred from implementation. |
output_mapped_product | bool | no | True | inferred from implementation. |
output_type | str | no | 'Product' | inferred from implementation. |
output_format | str | no | 'BEAM-DIMAP' | inferred from implementation. |
output_file | Optional[str] | no | None | inferred from implementation. |
metadata_aggregator_name | str | no | 'NAME' | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.binning()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.fu_classification method
Forel-Ule classification.
File location: sarpyx/snapflow/engine.py:6128
Signature
fu_classification(self, copy_all_source_bands: bool=False, input_is_irradiance_reflectance: bool=False, valid_expression: Optional[str]=None, reflectance_name_pattern: Optional[str]=None, instrument: str='AUTO_DETECT', include_dominant_lambda: bool=False, include_intermediate_results: bool=True, output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
copy_all_source_bands | bool | no | False | inferred from implementation. |
input_is_irradiance_reflectance | bool | no | False | inferred from implementation. |
valid_expression | Optional[str] | no | None | inferred from implementation. |
reflectance_name_pattern | Optional[str] | no | None | inferred from implementation. |
instrument | str | no | 'AUTO_DETECT' | inferred from implementation. |
include_dominant_lambda | bool | no | False | inferred from implementation. |
include_intermediate_results | bool | no | True | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.fu_classification()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.
GPT.flh_mci method
Fluorescence line height.
File location: sarpyx/snapflow/engine.py:6155
Signature
flh_mci(self, preset: str='NONE', lower_baseline_band_name: Optional[str]=None, upper_baseline_band_name: Optional[str]=None, signal_band_name: Optional[str]=None, line_height_band_name: Optional[str]=None, slope: bool=True, slope_band_name: Optional[str]=None, mask_expression: Optional[str]=None, cloud_correction_factor: float=1.005, invalid_flh_mci_value: float=float('nan'), output_name: Optional[str]=None) -> Optional[str]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
preset | str | no | 'NONE' | inferred from implementation. |
lower_baseline_band_name | Optional[str] | no | None | inferred from implementation. |
upper_baseline_band_name | Optional[str] | no | None | inferred from implementation. |
signal_band_name | Optional[str] | no | None | inferred from implementation. |
line_height_band_name | Optional[str] | no | None | inferred from implementation. |
slope | bool | no | True | inferred from implementation. |
slope_band_name | Optional[str] | no | None | inferred from implementation. |
mask_expression | Optional[str] | no | None | inferred from implementation. |
cloud_correction_factor | float | no | 1.005 | inferred from implementation. |
invalid_flh_mci_value | float | no | float('nan') | inferred from implementation. |
output_name | Optional[str] | no | None | inferred from implementation. |
Return Type
Optional[str]
inferred from implementation.
Exceptions
None explicitly documented; inferred from implementation.
Side Effects
- inferred from implementation
Example Usage
from sarpyx.snapflow.engine import GPT
# Constructor arguments are inferred from implementation.
obj = GPT(...) # inferred from implementation
result = obj.flh_mci()
Edge Cases
Includes optional parameters with implementation-defined fallback behavior.