-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
"wpgt" does not populate. #125
Comments
Hi, What's your value for |
|
Can you share the result of |
-lat/lon of structure; -for the date range, September 9, 2022 thru September 27, 2022; -This brings up weather stations; However, it is not localized to only this lat/lon, all wpgt value for any station for any date range does not return values. When I use the UI on meteostat, the results also do not return wind gust as a visible output. Do you experience the same? |
Hello world,
All of the values are returned except for "wpgt"... the one variable I need. Here is a working code. I'm stumped, hoping to receive some pointers.
Import meteostat:
from meteostat import Stations, Daily, Point
Find nearby stations:
stations = Stations()
stations = stations.nearby(lat, lon, radius)
stations = stations.fetch(num_stations)
Fetch daily data for each station:
data_list = pd.DataFrame(columns=["station", "time", "tavg", "tmin","tmax","prcp","wdir","wspd","wpgt","pres",])
loop over each row in this set of data, add station, for each row for index, row in data.iterrows():
station_info = {
"station": [station_id],
"staion name": [station_name],
"time": [index.strftime("%Y-%m-%d")],
"tavg": [(row.tavg * 9/5) + 32],
"tmin": [(row.tmin * 9/5) + 32],
"tmax": [(row.tmax* 9/5) + 32],
"prcp": [row.prcp * 0.0393701],
"wdir": [row.wdir],
"wspd": [row.wspd * 0.621371192],
"wpgt": [row.wpgt * 0.621371192],
"pres": [round(row.pres* 0.0145037738)]}
output_file_path = "FILE_NAME"
output_file_path = "PATH"
data_list.to_excel(output_file_path, index=False)
The text was updated successfully, but these errors were encountered: