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

Adding scale to MODIS #61

Open
mdmaas opened this issue Oct 5, 2023 · 3 comments
Open

Adding scale to MODIS #61

mdmaas opened this issue Oct 5, 2023 · 3 comments

Comments

@mdmaas
Copy link

mdmaas commented Oct 5, 2023

Hi! I'm finding this is an amazing package!

I want to use it for MODIS data, which is marked as beta. One issue I'm seeing is that, for example NDVI data is not scaled automatically, and that the metadata shows a scale factor of 1.0 instead of the proper values which in some cases should be 0.0001 (as shown here under the Layers tab).

So let's say I create a table with the information in the LPDAAC page... where it should be added? Once the scale factor in the metadata is correct, will it propagate to any uses of the data?

Thanks!

@rafaqz
Copy link
Member

rafaqz commented Oct 5, 2023

You could add a scale function that accepts the same arguments as getraster, so would return matching values in Vector/NamedTuple just like getraster does?

Im not sure how else we could propagate them.

@mdmaas
Copy link
Author

mdmaas commented Oct 13, 2023

Ok, I'll add a scale function with the different MODIS producs, and then we'll see what can be done at the Rasters.jl level. I believe what MODIS is doing is storing data in a "scaledInt" numerical format, for compression purposes.

@rafaqz
Copy link
Member

rafaqz commented Oct 13, 2023

Rasters needs modis loading to be implementrd anyway right? We could use both in that.

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

No branches or pull requests

2 participants