Coder Social home page Coder Social logo

Comments (4)

danielkoll avatar danielkoll commented on August 22, 2024

While working on this, I noticed that
p_H2O = RH * params.esat(temp)
is not valid in the stratosphere. Assuming q_H2O is uniform in the stratosphere, p_H2O has to decrease with pressure. Will fix the bug and generalize code to arbitrary dry gas mixtures.

from pyrads.

danielkoll avatar danielkoll commented on August 22, 2024

@AndrewWilliams3142 I think your suggestion might not be quite correct yet. 50000ppmv CO2 presumably means that we want the dry background gas to consist of 5% CO2, 95% rest by volume. However, once you're pushing into hot territory where the overall composition is 50% H2O-50% dry by volume, then ppv_CO2 & q_CO2 should drop due to the added H2O

from pyrads.

AndrewILWilliams avatar AndrewILWilliams commented on August 22, 2024

Hey @ddbkoll ! That makes sense to me. For context, I'm trying to reproduce the results of Seeley and Jeevanjee, 2020 with PyRADS, but PyRADS seems to be underestimating the CO2 at high temperatures compared to the line-by-line code in their paper ('RFM' in the figure). I thought that perhaps these simplifications could be the issue? I'm not entirely sure how the RFM treats these high-CO2/H2O situations...

Also, I'm currently running PyRADS with 100 log-spaced pressure levels, but maybe that needs to be improved as well (there are quite a few 'wiggles' which are probably due to the discretization).

image

from pyrads.

AndrewILWilliams avatar AndrewILWilliams commented on August 22, 2024

Actually I just realized it's probably because PyRADS doesn't include the CO2 self-continuum... I'll code up the analytic fits from POPC and see if that fixes the problem ^^

EDIT: It looks like it's a combination of the spectral and the vertical resolution. Upping spectral resolution to 0.01 cm-1 and using 300 levels gives you a 'bump' (see figure), but there are still a lot of wiggles, and the bump is underestimated - I'm rerunning now with 1000 vertical levels to see if that fixes it. I think this might be it, but running with hundreds of vertical levels slows the code down a lot so it might not be that practical.

image

from pyrads.

Related Issues (13)

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.