darothen / pyrcel Goto Github PK
View Code? Open in Web Editor NEWA 0D, adiabatic cloud parcel model for studying aerosol activation.
License: BSD 3-Clause "New" or "Revised" License
A 0D, adiabatic cloud parcel model for studying aerosol activation.
License: BSD 3-Clause "New" or "Revised" License
Dear Dr. Rothenberg,
I am currently utilizing the pyrcel package for my research on aerosol activation. I have a specific question regarding the output of the model. I would like to know if pyrcel can provide the number concentration of aerosols at each integration time step. Specifically, does the model output the number concentration corresponding to the new sizes after hygroscopic growth for each bin, or does it maintain the original number concentration for each bin despite changes in particle size?
Thank you very much for your assistance and for developing such a valuable tool for the research community. I look forward to your response.
Best regards,
Feiya
Currently, the air temperature is diagnosed in both the thermodynamics and RHS routines by using the virtual temperature,
Right now, you can't import any of the model components without a working build of Assimulo. That shouldn't be a requirement - the integrators.py
package should be refactored to accommodate this.
Dear Daniel,
This is Tianning Zhao. I'm currently using PYRCEL for a course project. Thanks a lot for all the efforts to put together parcel model in python, it was really helpful. I was having trouble to run ARG activation for customized multimode lognormal aerosols. The error I was getting is like this: 'MultiModeLognorm' object has no attribute 'mu'. Could you please help me fix this? Thank you.
A litany of things to do in prep for a nice, new v1.4.0 release:
black
formattingOn this page
https://pyrcel.readthedocs.io/en/latest/install.html
it says to run
python setup.py build_ext --inplace
but there is no setup.py
file in the repository (it was removed in commit 58a34c7).
Proposing a user-extensible output module. The basic idea is that a user can pass either a set of default or derived-type classes which encapsulates how to record data to disk. For instance, suppose we have a default writer type
class OutputWriter(object):
def __init__(self, output_filename):
self.output_filename = output_filename
def write_step(self, model_state)
def finalize(self)
The __init__
and finalize
methods take care of maintaining a reference to the output file. The write_step
method would be what is called during model runtime. E.g., in a proposed model physics loop:
output_handler = OutputWriter("my_output.csv")
while t < t_end:
model.step()
if ( output_step ):
output_handler.write_step(model.state)
t += dt
Then any output handlers simply need to implement the interface. Ideally, the write_step
file would incrementally add to a file.
Need a library of convenience methods for producing common plots on
see https://pypi.org/project/pyrcel/#history
Thanks,
Sylwester
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.