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

Negative Reflectance values after atmospheric correction #220

Open
akasom89 opened this issue Apr 19, 2024 · 2 comments
Open

Negative Reflectance values after atmospheric correction #220

akasom89 opened this issue Apr 19, 2024 · 2 comments

Comments

@akasom89
Copy link

I applied atmospheric correction to a satellite image. having negative reflectance is not reasonable based on its definition. I understand that the main reason is atmospheric data which we use for applying correction might be far away from the truth and it reflects in negative values. But I wonder what the best practice is for these negative reflectance? mapping all of them to zero!? or shifting all values towards the positive direction until all values be positive?

thanks for this awesome library.

@djhoese
Copy link
Member

djhoese commented Apr 19, 2024

I can't speak to the atmospheric correction in pyspectral and it producing negative reflectances, beyond pointing out that the rayleigh correction in pyspectral does clip it's correction from 0 to 100%.

res = np.clip(res, 0, 100)

We encounter negative reflectances often in "real" satellite data for various reasons (beyond my understanding) in the Satpy package. Some readers in Satpy have added optional functionality to clip the reflectances to 0 or alternatively take the digital number (a.k.a. "count") from the instrument data that produces a positive radiance and then convert that to a reflectance. This is the most realistic for cases where an instrument recorded negative radiances/reflectances.

@akasom89
Copy link
Author

Thanks @djhoese for your answer.

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