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

check on rasters + fix RCM bug #224

Merged
merged 4 commits into from
Oct 21, 2024
Merged

Conversation

vincelhx
Copy link
Collaborator

@vincelhx vincelhx commented Sep 19, 2024

self.rasters needs to be an instance attr ; not class attr

image

@vincelhx vincelhx self-assigned this Sep 19, 2024
@vincelhx
Copy link
Collaborator Author

I also suggest to cancel #223 : as discussed, _load_rasters_vars & get_function already handle this problem in xsar.

to use them outside xsar, maybe we should externalize _load_rasters_vars (and also map_raster)

waiting for @Skealz opinion

@vincelhx vincelhx marked this pull request as draft September 19, 2024 15:20
@@ -103,7 +106,7 @@ def flip_sample_da(self):
antenna_pointing = self.dt['sourceAttributes/radarParameters'].attrs['antennaPointing']
pass_direction = self.dt['sourceAttributes/orbitAndAttitude/orbitInformation'].attrs['passDirection']
flipped_cases = [('Left', 'Ascending'), ('Right', 'Descending')]
samples_depending_ds = ['geolocationGrid', 'lut', 'noise_lut']
samples_depending_ds = ['geolocationGrid']
Copy link
Member

Choose a reason for hiding this comment

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

Is it the modification tha prevent the bug of flipped RCM images? Is there an issue opened related to this problem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No issue, should I create one to explain the problem?
Yes, this is the line that prevent the RCM bug

Copy link
Member

Choose a reason for hiding this comment

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

note: the variable name samples_depending_ds is not super explicit.

@vincelhx vincelhx changed the title check on rasters check on rasters Oct 15, 2024
@vincelhx vincelhx changed the title check on rasters check on rasters + fix NCM bug Oct 15, 2024
@vincelhx vincelhx changed the title check on rasters + fix NCM bug check on rasters + fix RCM bug Oct 15, 2024
@agrouaze agrouaze linked an issue Oct 17, 2024 that may be closed by this pull request
@agrouaze agrouaze marked this pull request as ready for review October 21, 2024 09:10
@Skealz Skealz merged commit bf1e334 into umr-lops:develop Oct 21, 2024
19 of 41 checks passed
@agrouaze
Copy link
Member

@vincelhx I doing an infringement to our rules of githuber, I set your PR as "ready for review" and I merged it but it seems that Théo is stuck with his processings without your correction on RCM.
Unit test is still needed and the second issue regarding the bias on the incidence will be done separately. Thanks.

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.

RCM problem with LUTs indexes
3 participants