Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added resampling function to mosaic process. #85

Merged
merged 2 commits into from
May 6, 2024

Conversation

hb6688
Copy link
Contributor

@hb6688 hb6688 commented Apr 25, 2024

Updated the following scripts:

  1. mosaic_gcov_frame.py
  2. schemas/algorithm_parameter_ni.yaml
  3. defaults/dswx_ni.yaml
  4. defaults/algorithm_parameter_ni.yaml

Added following parameters to schema and yaml:
resamp_required: bool(required=False)
resamp_method: str(required=False)
resamp_out_res_x: num(required=False)
resamp_out_res_y: num(required=False)

@oberonia78
Copy link
Contributor

Hi @hb6688, Please refer to the PR I submitted (hb6688#1). Some functions in your PR is not compatible with the rest of the steps. I've corrected the lines causing the issue.

Copy link
Contributor

@oberonia78 oberonia78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hb6688 While I was testing your PR, I found some issues which is not compatible with the rest of the functions. Please see the comments.

@@ -43,6 +43,10 @@ runconfig:
# - average : overlapped areas are averaged.
# - first : choose one burst without average.
mosaic_mode: 'first'
resamp_required: True
resamp_method: 'gdal.GRA_NearestNeighbour'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be simpler. For example, 'nearest', 'average', 'bilinear'...

@@ -70,7 +70,7 @@ runconfig:
mgrs_collection_database_file:

primary_executable:
product_type: DSWX_NI
product_type: dswx_ni
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why you are trying to change this? To have consistency with the DSWx-S1, I think we should keep as it is.(

product_type: DSWX_S1
)

@@ -756,13 +867,16 @@ def run(cfg):
# Mosaic input RTC into output Geotiff
reader.process_rtc_hdf5(
input_list,
scratch_dir,
output_dir,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line is not what we want to do. The mosaic geotiff should be the scratch directory. The output dir will be used only for saving the final (water) products. Please refer to the PR I submitted to your repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oberonia78 I think I will remove all 'output_dir'.

@hb6688 hb6688 merged commit 470811a into opera-adt:dswx-ni-interface May 6, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants