GithubHelp home page GithubHelp logo

Comments (2)

giovaniceotto avatar giovaniceotto commented on May 22, 2024

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.

giovaniceotto avatar giovaniceotto commented on May 22, 2024

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
  • NOAA Ruc Soundings
  • 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)

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.