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

Placeholder for geocoded radiometric calibration parameters #114

Merged
merged 16 commits into from
Mar 21, 2023

Conversation

seongsujeong
Copy link
Contributor

This PR adds a placeholders for geocoded LUTs for radiometric calibration.
gamma and sigma_naught are geocoded and placed into the group /science/SENTINEL1/CSLC/metadata/calibration_information as shown in the screenshot below.
Screenshot 2023-03-17 at 00 28 42

@@ -195,6 +196,95 @@ def run(cfg: GeoRunConfig):
weather_model_path=cfg.weather_model_file,
delay_type=cfg.tropo_params.delay_type)

# Designate radiometric calibration parameter to geocode
calibration_dict = {
'gamma':burst.burst_calibration.gamma,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please note that beta_naught is not provided here because it is constant, and was already provided in /science/SENTINEL1/CSLC/corrections/calibration

Copy link
Contributor

@LiangJYu LiangJYu left a comment

Choose a reason for hiding this comment

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

Once merged with main, there's no need to declare root_path.

src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
Copy link
Contributor

@LiangJYu LiangJYu left a comment

Choose a reason for hiding this comment

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

Code is structurally sound. My comments are for variable renames and comment adds for clarity.

src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
@vbrancat
Copy link
Contributor

Also, what about the datasets in the noise group? Do they need to be moved as well in the placeholder group?

src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
Copy link
Contributor

@LiangJYu LiangJYu left a comment

Choose a reason for hiding this comment

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

LGTM

src/compass/s1_geocode_metadata.py Outdated Show resolved Hide resolved
Copy link
Contributor

@vbrancat vbrancat left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @seongsujeong

Co-authored-by: Liang Yu <liangjyu@gmail.com>
@seongsujeong seongsujeong merged commit 6885a68 into opera-adt:main Mar 21, 2023
seongsujeong added a commit to seongsujeong/COMPASS that referenced this pull request Mar 31, 2023
…t#114)

* Placeholder for geocoded radiometric calibration parameters

* geocoded calibration parameter feature as standalone function in `s1_geocode_metadata.py`

* Update src/compass/s1_geocode_metadata.py

Co-authored-by: Liang Yu <liangjyu@gmail.com>

* Update src/compass/s1_geocode_metadata.py

Co-authored-by: Liang Yu <liangjyu@gmail.com>

* Update src/compass/s1_geocode_metadata.py

Co-authored-by: Liang Yu <liangjyu@gmail.com>

* Apply suggestions from code review by @LiangJYu

Co-authored-by: Liang Yu <liangjyu@gmail.com>

* finalizing applying the code change suggestion

* removed unused imports

* geocode calibration LUTS only when it is available in burst object

* Moving all calibration info. into `metadata/calibration_information`; removed irrelevant calibration info in geogrid.

* `dn` added for geocoded LUT; note added for placeholder

* removed unused codes

* addressing codacy issue

* Update src/compass/s1_geocode_metadata.py

Co-authored-by: Liang Yu <liangjyu@gmail.com>

---------

Co-authored-by: Seongsu Jeong <seongsu.jeong@jpl.nasa.gov>
Co-authored-by: Liang Yu <liangjyu@gmail.com>
@seongsujeong seongsujeong deleted the calibration_information branch May 26, 2023 00:08
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.

3 participants