-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GFS, GEFS and FV3 will stop working #32
Comments
I tested all Atmospheric Models right now and surprisingly some features are still available:
However, I will create a new branch for replace the URL mentioned. |
I verify why RAP isn't working. |
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:
However, notice how the forecast time period is short: 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. |
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 |
Issue #32 fixed, all NOAA files were replaced
NOAA is starting to push a couple of updates to its Open-source Project for a Network Data Access Protocol (OPeNDAP)
server, which will affect how RocketPy downloads weather forecasts from NOAA, including GFS and GEFS.
The main change is the port used. The standard SSL 443 port will be replace the 9090 port currently in use. Therefore, everywhere in the Environment class code where the string https://nomads.ncep.noaa.gov:9090 appears, it will need to be replaced.
More detail is available at: https://www.weather.gov/media/notification/scn20-13nomads_website.pdf
Furthermore, since FV3 has been merged into GFS, its servers have stopped updating. So no new forecasts are available. This means the FV3 name should be removed from RocketPy.Environment.
The text was updated successfully, but these errors were encountered: