AtmosphericProfilesLibrary.jl
AtmosphericProfilesLibrary.jl is a library of atmospheric profiles with respect to altitude (z) and time (t), using SI units.
Scope of repository
This repository is meant to serve as a library of static functions in efforts to reduce code duplication and boiler plate. Added profiles should satisfy the following criteria to limit the scope of this library:
- A single type argument (the float type
FT)- For example,
my_new_profile(::Type{FT}) where {FT}
- For example,
- No additional arguments
- The return type of the profile should be a type-stable
Functionor callable object.- For example:
prof = z->2*zcallable byprof(z)prof = t->2*tcallable byprof(t)prof = (t,z) -> z*tcallable byprof(t, z)prof = Interpolations.interpolate(FT[0, 1, 2], FT[0, 2, 4])callable byprof(z)
How to contribute
Contributing to this repo involves 3 parts:
- Add a reference to
docs/bibliography.bib - Add a function, with signature
my_new_profile(::Type{FT}) where {FT}, tosrc/with a doc string containing the reference- For example
""" [Grabowski2006](@cite) """.
- For example
- Add the new function to one of the
Vectors indocs/plot_profiles.jl:z_profilest_profilestz_profiles
with appriate keyword arguments (e.g., labels and units).
Your plots should automatically appear in the documentation after finishing these three steps.