Comments (12)
It looks like maybe gaseous transmission is correclty calculated but aerosol coupling is NaN? Not sure, though.
from py6s.
Hi @csarantos-ceres.
Unfortunately I don't have any further information on this.
It's definitely an issue with the underlying 6S model, as it occurs when 6S is run outside of Py6S too. It also seems to be platform related, as it doesn't occur on my OS X machine, but occurs for you and the person in the original forum message, who were both using Windows. I think it must be something related to the compilation of the 6S code on Windows and some sort of floating point error - but beyond that I can't really say.
I don't have access to a Windows machine at the moment for testing - but is there any chance you could run this code on a different platform?
I've contacted the original author of 6S about this before, but haven't had any luck with a response. Feel free to contact him yourself (he's Eric Vermote) and do let me know if you hear anything.
from py6s.
Thanks, Robin! That's still very helpful to know that it doesn't happen in OSX. I'm ultimately intending to run this in Linux and this work is just an intermediate step. So if the Linux versions don't have this issue, that would be excellent! If I end up running it in Linux, I'll report back what happens.
Thanks!
Chris Sarantos
from py6s.
Whoops, I realize that I never reported back what happened. My recollection is that I ran it natively in Linux and this issue went away.
from py6s.
@csarantos-ceres @robintw: I spotted this problem today and it is indeed coming from 6S itself.
Having looked through the source code, the problem is in interp.f
.
If you change line 66 of that file from:
if(wl.gt.wldis(ll).and.wl.le.wldis(ll+1)) linf=ll
To:
if(wl.ge.wldis(ll).and.wl.lt.wldis(ll+1)) linf=ll
Then the code will output good results (no NaNs, output data looks OK). I've let Eric know via email.
from py6s.
Good find! Thanks for notifying Eric.
from py6s.
Hello @robintw and @simonrp84 ,
Do you know if this issue has been corrected in 6S?
In addition if I well understand, Py6S is based on 6SV1.1. However the last version of 6S seems to be the 2.1 (https://salsa.umd.edu/6spage.html). Maybe this bug is not in 6SV2.1. Do you plan to update Py6S with 6S2.1?
Thank you in advance for your support.
from py6s.
No, to my knowledge this has not been corrected. I emailed several times and never got a response from any of the team. Perhaps you could drop them a mail in case mine are getting caught by their junk filter?
from py6s.
Hi @simonrp84 , thanks a lot for your response. Good idea, I will send a mail and keep you informed.
from py6s.
I also haven't heard anything from the 6S team, despite contacting them multiple times.
There may be a fix for this in version 2.1, but I haven't yet been able to update Py6S to work with the new version. I now work as a freelancer, and would really need some proper funding to be able to do the upgrade work (which is more complex than it first seems).
from py6s.
Hi @robintw and thanks a lot for your response. I understand your situation.
As I said I will send a mail and keep you informed.
from py6s.
@robintw Out of interest (and somewhat offtopic), what's the blocker with upgrading to support V2.1? I simply changed 1.1
to 2.1
in the Py6S
code and the results are as expected across all the tests I tried. I presume there's some kind of niche example where it doesn't work?
from py6s.
Related Issues (20)
- name 'subplots' is not defined HOT 2
- When my Wavelength >=0.59,the coef_xb will become nan
- "NameError: name 'subplots' is not defined"bug in 'all_angles.py' HOT 1
- How use py6S in google colaboratory? problem "cannot find the sixs executable in $PATH or current directory" HOT 2
- A simple question about rayleigh scatter
- Aeronet's import_aeronet_data returning indexing error HOT 2
- the environment variable needs to be set on linux system HOT 1
- set_target_pressure has no effect HOT 5
- Pixel radiance above black surface and non-absorbing aerosol-free atmosphere is zero HOT 6
- Geometry.from_time_and_location ambiguity HOT 2
- Exception with numpy 1.20.0 HOT 4
- Py6s pysolar dependency is too old HOT 3
- error IEEE_INVALID_FLAG HOT 1
- support for LWIR thermal applications HOT 2
- several problem with installation and run of Py6S HOT 4
- How to calculate the percentage density of the aerosol?
- Typo in description of apparent reflectance (?) HOT 4
- 6SV1.1.tar Link failed HOT 1
- IEEE_UNDERFLOW_FLAG error in MacOs Darwin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py6s.