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

Differentiate mangroves and other aquatic veg #170

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Conversation

emmaai
Copy link
Contributor

@emmaai emmaai commented Nov 15, 2024

Now mangroves=124 and others=125 in level 1

@emmaai emmaai requested a review from tebadi November 15, 2024 02:59
dtype="uint8",
)
l4 = expr_eval(
"where((a==124)&(b==12)&(c==2), 81, a)",
##########################################
Copy link
Contributor

Choose a reason for hiding this comment

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

as above

dtype="uint8",
)
#########################################
Copy link
Contributor

Choose a reason for hiding this comment

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

as above


l4 = expr_eval(
"where((a==124)&(b==13)&(c==2)&(d==2), 86, a)",
##########################################
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

dtype="uint8",
)

l4 = expr_eval(
"where((a==124)&(b==10)&(c==2)&(d==2), 80, a)",
#########################################
Copy link
Contributor

Choose a reason for hiding this comment

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

unwanted artefact

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's not unwanted. It's meant to be there to section the code

unwanted artefact

@emmaai emmaai merged commit 02de18c into level4 Nov 15, 2024
3 of 4 checks passed
@emmaai emmaai deleted the l1_diff_mangroves branch November 15, 2024 03:39
emmaai added a commit that referenced this pull request Nov 18, 2024
* Changed the band names to match the config files. Also updated vegetation , lifeform and water seasonality to correctly replace nodata

* Fixed a typo in the name of the expression in the water sesonality

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update the path to the urban model on s3

* Differentiate mangroves and other aquatic veg (#170)

* differentiate mangroves and other aquatic veg

* fix level1 test

---------

Co-authored-by: Emma Ai <[email protected]>

* Fixed a few errors after rewriting the logic on aquatic vegetation

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Emma Ai <[email protected]>
Co-authored-by: Emma Ai <[email protected]>
emmaai added a commit that referenced this pull request Nov 24, 2024
* Changed the band names to match the config files. Also updated vegetation , lifeform and water seasonality to correctly replace nodata

* Fixed a typo in the name of the expression in the water sesonality

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update the path to the urban model on s3

* Differentiate mangroves and other aquatic veg (#170)

* differentiate mangroves and other aquatic veg

* fix level1 test

---------

Co-authored-by: Emma Ai <[email protected]>

* Fixed a few errors after rewriting the logic on aquatic vegetation

* Ensured nodata is replaced with 255 in all level4 plugins

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove debugging code

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Corrected the implementation of water seasonality and water persistence. Also made a range of other mappings at Level 4 based on the latest understanding of Collection 2

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Mock the veg and bare thresholds in the unit test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Cleaned the code and removed redundant checks at level4

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Applied more code cleaning

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Emma Ai <[email protected]>
Co-authored-by: Emma Ai <[email protected]>
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