-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error in perform_PCA/ Issue with data formatting #27
Comments
Dear @nmileva
then, once you get the resulting binary and hdr file, you can update the information required for biodivMapR to run properly:
Sorry, this is not very practical. A new version of biodivMapR should be released soon, with major updates so that there will not be any problem to run it with any raster format you want... Best regards, |
PS: the initial error may come from the range of values which is not correctly read and does not correspond to standard S2 reflectance values when using the hdr file you used. Then if you updated the mask with radiometric filtering, it will mask everything in your image, and you will get empty pixel values, I think |
Thanks! This worked. As you suggested, I needed to adjust also the radiometric filters to the range of reflectance values I have. |
When I perform the dimensionality reduction, as shown here:
I get the following error:
When I try to run the code with the test image provided, it works. So, I assume the problem is with the way the data is formatted. I tried both with ENVI and .tif file formats but the error persists. Do you have any tips and tricks for formatting the data?
Here is a subset of the Sentinel-2 tile I have used, together with the .hdr file: https://megastore.rz.uni-augsburg.de/get/9jgRjuA97J/
I use R version 4.3.3, biodivMapR version 1.14.0.
The text was updated successfully, but these errors were encountered: