Giter Site home page Giter Site logo

Calculating dry air density about atmos HOT 5 OPEN

atmos-python avatar atmos-python commented on August 15, 2024
Calculating dry air density

from atmos.

Comments (5)

mcgibbon avatar mcgibbon commented on August 15, 2024
  1. Yes, you would use something like atmos.calculate('rho', Tv=273., p=1e5).
  2. If a quantity isn't handled, it's just a matter of adding it to the quantities dictionary and putting in some equations which calculate it in equations.py,
  3. Yes, sort of. As far as I know, this package never had a user base (other than myself using it to convert between measures of humidity), so it fell by the wayside. I haven't thought much about it in a while. But if you need help with the package (like this issue), have a bug that needs fixing, or want to submit a PR, I'm here to handle that. I wouldn't implement new features, but I can clean up and fix any existing ones that need it, and I would consider PRs for new features.

from atmos.

mcgibbon avatar mcgibbon commented on August 15, 2024

You can find a complete list of handled quantities and assumptions in the docstring for atmos.calculate.

from atmos.

tomchor avatar tomchor commented on August 15, 2024

I see. Indeed using your suggestion I can calculate it via the ideal gas law. Apparently rho stands for just for density, while I thought it stood for moist air density specifically.

How would you feel about separating rho and rho_dry (or rhod), the first one being reserved only for moist air and the second one being reserved only for dry air? I could try to do that myself.

It's nice that you're still somewhat maintaining atmos. I'll definitely try to incorporate your package in the future, then.

from atmos.

mcgibbon avatar mcgibbon commented on August 15, 2024

rho is the air density including moisture (I suppose that's what you mean by moist air density). If you'd like a dry density, you can do that by saying the air is dry :) Just set any moisture measure you want to zero (e.g. atmos.calculate('rho', T=273., p=1e5, rv=0.)), or you can give the air temperature as the virtual temperature Tv instead of as T (when these are equal, there is no moisture). I don't think it makes sense to add a new quantity for this purpose. I think there's also an assumption like "Tv_equals_T" which can be used for this purpose.

from atmos.

nitesh1403 avatar nitesh1403 commented on August 15, 2024

How to do vertical integration, I found someone did
uq_int = atm.int_pres(uq, pmin=300e2)

But module 'atmos' has no attribute 'int_pres'

from atmos.

Related Issues (14)

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.