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

new landsat mask functions for landsat 4-7 #64

Open
mateuszrydzik opened this issue Apr 30, 2024 · 2 comments
Open

new landsat mask functions for landsat 4-7 #64

mateuszrydzik opened this issue Apr 30, 2024 · 2 comments
Labels
feature a feature request or enhancement
Milestone

Comments

@mateuszrydzik
Copy link

Recently I was trying to download older Landsat imagery (from 1993 to 2007) using rsi and get_landsat_imagery(). Landsat 5 and Landsat 7 images I downloaded had no values. I did some research and found that Landsat 4-5 and 7 use different QA pixel values than Landsat 8 and 9.

For clear lands with lows sets, QA pixel is 5440, and for clear water with lows sets = 5504.

As rsi::get_landsat_imagery() allows to select older datasets using platforms argument, additional mask functions can be useful.

More QA pixel values can be found in this document, on page 21

@mikemahoney218 mikemahoney218 added this to the next release milestone Apr 30, 2024
@mikemahoney218 mikemahoney218 added the feature a feature request or enhancement label Apr 30, 2024
@mikemahoney218
Copy link
Collaborator

Thanks! This is a good idea to be built in, at least as its own standalone function (and maybe get_landsat_imagery() will look at the platforms argument to try and detect which one to use...). I won't have time to get to this soon, but seems like it should be easy to get into the next release!

@mikemahoney218
Copy link
Collaborator

The dev version of the package now has an argument, masked_bits, in the Landsat function that lets you control the bitmasks much more directly. I'm leaving this open because it'd be nice to provide a function that fills in the right bits by default, but, this might make things easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants