Questions tagged [weatherdata]

An R package to download weather data from the Weather Underground website.

Resources:

  1. cran.r-project.org
  2. github
29 questions
6
votes
1 answer

Is there a free historic weather data API with Latitude / Longitude support?

I want to extract (free) historic weather data for some countries (more specificaly the provinces / states in some countries) via latitude / longitude and I need the results as a .csv file or pandas data frame. I tried the wrapper for forecast.io /…
constiii
  • 638
  • 3
  • 19
2
votes
0 answers

How to properly parse NOAA GFS Grib2 files using GPS Coordinates?

I'm currently trying to download GFS files from NOAA to get irradiance forecasts. I've done this same process for NOAA's HRRR files, but for some reason, parsing out GFS files isn't giving me the proper result. For a given point on the West coast of…
arkipelago
  • 21
  • 1
2
votes
2 answers

Input CSV file of lat and long coordinates into API to extract the weather data?

Here is my code below where I used long and lat coordinates in locations variable and attached it to the URL via coordinates_str. SInce I have CSV file which has latitude and longitude coordinates of around many locations and then call that CSV file…
Shubham
  • 23
  • 5
2
votes
2 answers

Weather Undground API call limit per minute

I have to limit my API request to 10 calls per minute, how can I modify the for loops to accomplish this? I am trying to add in time.sleep(8) in the for observation loop without any luck... Any ideas? import arrow # learn more:…
bbartling
  • 3,288
  • 9
  • 43
  • 88
2
votes
1 answer

Setting time zone in weatherData queries

I am using the weatherData package, specifically, its getDetailedWeather function. It returns a data frame, one of the component of the data frame is Time, of class POSIXct. My problem is that all the Time comes set to the local timezone of the…
user2345448
  • 159
  • 2
  • 11
1
vote
1 answer

how to resolve the HTTP 422 error with the NASAPOWER get_power function in R

I am getting the Error: Unprocessable Entity (HTTP 422) with the get_power function (global meteorology and surface solar energy climatology data) of the NASAPOWER library in R library(nasapower) ag_d <- get_power( community = "AG", lonlat =…
Ahmed Attia
  • 153
  • 1
  • 8
1
vote
2 answers

How to transform wide date data to long format in Pandas

I have a large weather dataset in this format: 'Daily Mean Temp for place name 2015' # One table title per year 'Day' 'JAN' 'FEB' 'MAR' ... 'DEC' 1 23 26 21 ... 14 2 20 30 22 ... 12 3 26 27 …
1
vote
1 answer

How to generate hourly weather data for 8760 (Entire Year) using PvLib Python

Instede of reading TMY file in to PvLib, I wants to generate weather data using PvLib function, class or modules. I have found some of function to generate weather forecast using "from pvlib.forecast import GFS, NAM, NDFD, HRRR, RAP" these…
1
vote
1 answer

R weatherData Detroit station error

I keep getting errors in my attempt to pull weather data for Detroit airport. I am able to manually go to wunderground.com to get the historical hourly data, so it does exist there for Detroit location. But R package keeps sending me errors. I used…
user1656028
  • 63
  • 1
  • 4
1
vote
1 answer

How to loop through a list of cities and get temparature for given date with 'weatherData' in R

I have the following df city <- data.frame(City = c("London", "Liverpool", "Manchester","London", "Liverpool", "Manchester"), Date = c("2016-08-05","2016-08-09","2016-08-10", "2016-09-05","2016-09-09","2016-09-10")) I want to…
Davis
  • 466
  • 4
  • 20
0
votes
0 answers

'rnoaa' not pulling monitors for weather stations found

I have been using the 'rnoaa' package to pull weather data from weather monitors within 30 km of my defined longitude and latitude using the following code which works for the majority of my locations. station_data <-…
ASHooper93
  • 27
  • 3
0
votes
0 answers

Extracting weather data from local weather stations package

I have been trying to extract weather data from local weather stations close to the locations I am interested in. Although when using the "weatherData" package with an API key from their website…
ASHooper93
  • 27
  • 3
0
votes
1 answer

Cumulate precipitations over measurement periods by groups

I am trying to cumulate monthly precipitations by plot measurement dates. Plots were measured at uneven dates and have their own rain records on a separate df. dfs: precip=as.data.frame(cbind(id=c(1,1,1,1), date_met=c('2021-01-01', '2021-02-01',…
0
votes
1 answer

Pulling weather data into excel in bulk

We have a government source of weather data at https://climate.weather.gc.ca/historical_data/search_historic_data_e.html I go and search for the station I want and then get to hourly data. It shows me one day worth, but will let me download the…
Chris
  • 1
0
votes
0 answers

I am working on R using package on Drought

I am working using this Rstudio code drought_severity <- cut(PTspei, breaks = spei_level, labels = c("D4","D3","D2","D1", "N","W1")) The error message I received is Error in cut.default(PTspei, breaks = spei_level, labels = c("D4", "D3", : …
1
2