Comments (4)
I tested all Atmospheric Models right now and surprisingly some features are still available:
-
setAtmosphericModel(type="Forecast", file="GFS" ) -> OK!
-
setAtmosphericModel(type="Forecast", file="FV3" ) -> NOT OK (as mentioned earlier, this function will never work again)
-
setAtmosphericModel(type="Forecast", file="RAP" ) -> NOT OK (I'm still investigating why)
-
setAtmosphericModel(type="Forecast", file="NAM" ) -> OK!
-
setAtmosphericModel(type="Ensemble", file="GEFS" ) -> OK!
-
setAtmosphericModel(type="Ensemble", file="CMC") -> OK!
However, I will create a new branch for replace the URL mentioned.
from rocketpy.
I verify why RAP isn't working.
from rocketpy.
I did not find any problems in RAP actually.
Here is the code I ran:
from rocketpy import Environment
Env = Environment(
railLength=5.2,
latitude=32.990254,
longitude=-106.974998,
elevation=1400
)
import datetime
tomorrow = datetime.date.today() + datetime.timedelta(days=1)
Env.setDate((tomorrow.year, tomorrow.month, tomorrow.day, 12)) # Hour given in UTC time
Env.setAtmosphericModel(type='Forecast', file='RAP')
Env.info()
Output is:
Launch Site Details
Launch Rail Length: 5.2 m
Launch Date: 2020-08-02 12:00:00 UTC
Launch Site Latitude: 32.99025°
Launch Site Longitude: -106.97500°
Launch Site Surface Elevation: 1491.3 m
Atmospheric Model Details
Atmospheric Model Type: Forecast
Forecast Maximum Height: 16.691 km
Forecast Time Period: From 2020-08-01 18:00:00 to 2020-08-02 15:00:00 UTC
Forecast Hour Interval: 1 hrs
Forecast Latitude Range: From 16.322011 ° To 58.25097463636 °
Forecast Longitude Range: From -139.856603 ° To -57.49840949379 °
Surface Atmospheric Conditions
Surface Wind Speed: 1.81 m/s
Surface Wind Direction: 121.82°
Surface Wind Heading: 301.82°
Surface Pressure: 854.72 hPa
Surface Temperature: 297.21 K
Surface Air Density: 1.002 kg/m³
Surface Speed of Sound: 345.60 m/s
However, notice how the forecast time period is short: Forecast Time Period: From 2020-08-01 18:00:00 to 2020-08-02 15:00:00 UTC
. RAP is a RApid Refresh forecast, a new one is generated every hour and can be very useful hours before a launch inside continental US.
Having said that, if the user sets a date outside the forecast time period, an error occurs, which is probably a bug:
----> 1 Env.setAtmosphericModel(type='Forecast', file='RAP')
1 frames
/usr/local/lib/python3.6/dist-packages/rocketpy/Environment.py in setAtmosphericModel(self, type, file, dictionary, pressure, temperature, wind_u, wind_v)
792 )
793 try:
--> 794 self.processForecastReanalysis(file, dictionary)
795 success = True
796 except OSError:
/usr/local/lib/python3.6/dist-packages/rocketpy/Environment.py in processForecastReanalysis(self, file, dictionary)
1567 raise ValueError(
1568 "Chosen launch time is not available in the provided file, which ends at {:%Y-%m-%d %H:%M}.".format(
-> 1569 fileTimeDate
1570 )
1571 )
TypeError: unsupported format string passed to cftime._cftime.DatetimeGregorian.__format__
I am still looking into that.
from rocketpy.
Fixed this last bug described in the comment above, which from what I saw only happens in Linux systems, in the latest commit to master: b665ddd.
Basically, replaced all :%Y-%m-%d %H:%M
simply with :
. This means seconds are also displayed, but always works.
from rocketpy.
Related Issues (20)
- TST: Restructuring the test suite HOT 3
- ENH: _check_user_input method being called multiple times HOT 2
- BUG: Overfilled Tanks produce absurd calculations without an error thrown HOT 4
- ENH: automatically gets inputs and outputs from csv file
- 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`
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.