Giter Site home page Giter Site logo

Comments (12)

csarantos-ceres avatar csarantos-ceres commented on May 26, 2024

It looks like maybe gaseous transmission is correclty calculated but aerosol coupling is NaN? Not sure, though.

from py6s.

robintw avatar robintw commented on May 26, 2024

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.

csarantos-ceres avatar csarantos-ceres commented on May 26, 2024

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.

csarantos-ceres avatar csarantos-ceres commented on May 26, 2024

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.

simonrp84 avatar simonrp84 commented on May 26, 2024

@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.

csarantos-ceres avatar csarantos-ceres commented on May 26, 2024

Good find! Thanks for notifying Eric.

from py6s.

josselin-aval avatar josselin-aval commented on May 26, 2024

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.

simonrp84 avatar simonrp84 commented on May 26, 2024

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.

josselin-aval avatar josselin-aval commented on May 26, 2024

Hi @simonrp84 , thanks a lot for your response. Good idea, I will send a mail and keep you informed.

from py6s.

robintw avatar robintw commented on May 26, 2024

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.

josselin-aval avatar josselin-aval commented on May 26, 2024

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.

simonrp84 avatar simonrp84 commented on May 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.