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

Clean Snow Notebook using Pangeo #50

Merged
merged 9 commits into from
Nov 2, 2023
Merged

Clean Snow Notebook using Pangeo #50

merged 9 commits into from
Nov 2, 2023

Conversation

acocac
Copy link
Member

@acocac acocac commented Nov 2, 2023

The PR focuses on fixing headings and proofreading of the snow notebook using Pangeo.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@acocac acocac marked this pull request as draft November 2, 2023 11:38
@@ -3,7 +3,10 @@
{
Copy link
Collaborator

@tinaok tinaok Nov 2, 2023

Choose a reason for hiding this comment

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

  • Justus Magin, UMR-LOPS CNRS(France), @keewis
  • Tina Odaka, UMR-LOPS Ifremer (France), @tinaok


Reply via ReviewNB

Copy link
Member Author

Choose a reason for hiding this comment

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

@tinaok this is fixed in the latest push in this PR

Copy link
Member Author

Choose a reason for hiding this comment

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

We should update your affiliation in the other notebooks

Copy link
Collaborator

Choose a reason for hiding this comment

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

@acocac could you please fix my name? It's Michele Claus, not Clous

Copy link
Member Author

Choose a reason for hiding this comment

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

@clausmichele fixed!

Copy link
Collaborator

Choose a reason for hiding this comment

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

my new affiliation is: Provare LTD

@acocac acocac requested a review from pl-marasco November 2, 2023 12:16
@acocac acocac marked this pull request as ready for review November 2, 2023 12:17
@acocac
Copy link
Member Author

acocac commented Nov 2, 2023

@pl-marasco the PR is ready to review. fyi, I've restructured the notebook and corrected the headings of the sections.

The data/ADO_DSC_ITH1_0025.csv file is missing. Please upload it to the data folder in this PR or a separate one.

@acocac
Copy link
Member Author

acocac commented Nov 2, 2023

The data/ADO_DSC_ITH1_0025.csv file is missing. Please upload it to the data folder in this PR or a separate one.

Fixed in the latest commit 6572f71

@@ -3,7 +3,10 @@
{
Copy link
Collaborator

@tinaok tinaok Nov 2, 2023

Choose a reason for hiding this comment

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

The explanation of stacstac could help here?

also possible other tool such ashttps://github.com/stac-utils/xpystac, odc-stac?


Reply via ReviewNB

Copy link
Collaborator

Choose a reason for hiding this comment

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

Indeed, maybe worth to mention the alternatives. Thanks Tina, I wasn't aware of xpystac! Here an interesting discussion comparing odc-stac and stackstac: opendatacube/odc-stac#54

@@ -3,7 +3,10 @@
{
Copy link
Collaborator

@tinaok tinaok Nov 2, 2023

Choose a reason for hiding this comment

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

Line #1.    snow = xr.where((ndsi > 0.42) & ~np.isnan(ndsi), 1, ndsi)

The original notebook https://github.com/EO-College/cubes-and-clouds/blob/main/lectures/3.1_data_processing/exercises/_alternatives/31_data_processing_stac.ipynb

use 0.4 instead of 0.42


Reply via ReviewNB

Copy link
Collaborator

Choose a reason for hiding this comment

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

If we want to replicate exactly the same result we have to set the same threshold, otherwise we can also keep it as is.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@clausmichele Good point, I'm using the 0.42 values as is the threshold mentioned in the Sentinel-2 Level-2A ATBD. The ultimate goal was finding a citable source, but, if you have another one, we can use 0.40 .
BTW I didn't check the compatibility between the outcomes as my ultimate purpose it's on the methodology.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I can set it to 0.42 on my side, I am anyway updating it.

@clausmichele
Copy link
Collaborator

@pl-marasco @acocac well done the notebook is really good! It also helped me to fix things on my side

@pl-marasco pl-marasco merged commit 456e806 into main Nov 2, 2023
1 check passed
@pl-marasco pl-marasco deleted the pr-snownb-pangeo branch November 2, 2023 15:44
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.

4 participants