Comments (2)
A possible solution to this issue would be to add a translator dictionary to the Environment class which would convert standard variable names to those used in specific forecasts or reanalysis, such as GFS and ERA 5.
This dictionary could be an input parameter to the __init__ method of the Environment class.
from rocketpy.
To solve this issue in a more general form, the Environment class has suffered some big changes.
Now, when initializing the class , no atmospheric data is given, only rail length, possibly gravity, and spacetime data:
Env = Environment(railLength=5,
latitude=10,
longitude=10,
elevation=100,
date=(2019, 2, 6, 12))
Then, the atmospheric model can be set by using:
Env.setAtmosphericModel(type='Forecast', file='GFS')
As the example shows, not only are other forecast models supported by they can be easily specified my a short name.
The Environment.setAtmosphericModel
method supports several atmospheric model types:
- International Standard Atmosphere
- As defined by ISO 2533, with no wind.
- Custom Atmosphere
- Which allows the user to input custom pressure, temperature, and wind profiles. In case pressure and/or temperature are not given, the International Standard Atmosphere is used.
- Wyoming Upper Air Soundings
- Sounding data given at http://weather.uwyo.edu/upperair/sounding.html
- NOAA Ruc Soundings
- Sounding data given at https://rucsoundings.noaa.gov/
- Forecasts
- Forecast files in netCDF or OPeNDAP formats. Default ones such as GFS, FV3, RAP and NAM have shortcuts.
- Reanalysis
- Reanalysis files in netCDF or OPeNDAP formats.
- Ensembles
- Ensemble forecasts and reanalysis in netCDF or OPeNDAP formats. Default ones such as GEFS and CMC ensembles also have shortcuts.
The use of dictionaries needed for Forecasts, Reanalysis and Ensembles is well described in the method documentation and two dictionaries are available through shortcuts: ECMWF and NOAA.
Overall, this has greatly increased the capabilities of the Environment class relative to atmospheric models. It feels pretty complete by now, even though some few and small bugs might pop up in the future and need to be fixed.
from rocketpy.
Related Issues (20)
- Error during build & install rocketpy using setuptools HOT 1
- BUG: KeyError: 'I_11' and AttributeError: 'NoneType' object has no attribute 'reset' HOT 1
- ENH: Support for Open Meteo API
- ENH: make rocketpy classes json serializable
- ENH: adds an 3D animation of flight trajectory
- DOC: Software in a Loop (SIL) example with parachute ejection systems
- DOC: update badges on our README
- DOC: stop cloning the whole repository just for examples HOT 1
- ENH: plot inertia tensor components in a single plot
- ENH: display both power_off_drag and power_on_drag in a single plot
- ENH: adds `axial_acceleration` attribute to the Flight class HOT 2
- MNT: EmptyMotor class inherits from Motor(ABC)
- MNT: delete tools.cached_property
- DOC: convert notebooks to .rst files in the documentation
- ENH: Support for Meteomatics API
- ENH: give me a scissor or apply `Function.clip` and `Function.crop`
- BUG: Invalid Center of Pressure for Rockets with Variable Diameter
- Incorrect/incomplete docstring in environment.py HOT 4
- MNT: save ref_factor value when adding aero surfaces to a Rocket
- ENH: Allow saving plots instead of showing them HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocketpy.