Skip to content

Commit

Permalink
changed preprossing to also handle point extractions
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVerelst committed Jun 20, 2024
1 parent 286bbc0 commit aa45245
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/worldcereal/openeo/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def worldcereal_preprocessed_inputs_gfmap(
backend_context: BackendContext,
spatial_extent: BoundingBoxExtent,
temporal_extent: TemporalContext,
fetch_type: Optional[FetchType] = FetchType.TILE,
) -> DataCube:
# Extraction of S2 from GFMAP
s2_data = raw_datacube_S2(
Expand All @@ -279,7 +280,7 @@ def worldcereal_preprocessed_inputs_gfmap(
"S2-L2A-B11",
"S2-L2A-B12",
],
fetch_type=FetchType.TILE,
fetch_type=fetch_type,
filter_tile=False,
distance_to_cloud_flag=True,
additional_masks_flag=False,
Expand All @@ -304,9 +305,8 @@ def worldcereal_preprocessed_inputs_gfmap(
"S1-SIGMA0-VH",
"S1-SIGMA0-VV",
],
fetch_type=FetchType.TILE,
# Compute the backscatter at 20m resolution, then upsample nearest neighbor when merging cubes
target_resolution=10.0,
fetch_type=fetch_type,
target_resolution=10.0, # Compute the backscatter at 20m resolution, then upsample nearest neighbor when merging cubes
orbit_direction=None, # Make the querry on the catalogue for the best orbit
)

Expand All @@ -317,7 +317,7 @@ def worldcereal_preprocessed_inputs_gfmap(
connection=connection,
backend_context=backend_context,
spatial_extent=spatial_extent,
fetch_type=FetchType.TILE,
fetch_type=fetch_type,
)

dem_data = dem_data.linear_scale_range(0, 65534, 0, 65534)
Expand Down

0 comments on commit aa45245

Please sign in to comment.