Questions tagged [rnoaa]

An R package to download several datasets from NOAA.

R interface to many NOAA data API. For more information look for https://github.com/ropensci/rnoaa

46 questions
5
votes
1 answer

Trying to map a value for geom_vline, but is not plotting in the correct place on the x axis with ggplot in R

I am currently trying to generate NOAA tide prediction charts (x = datetime, y = water level) with the dawn/sunrise/dusk/sunset times as vertical lines along the x axis timeline. The rnoaa package calls the data and gives me the prediction date…
M Mason
  • 53
  • 4
5
votes
6 answers

R ggmap Error: object 'f' not found

After I install rnoaa packages, my ggmap package is not working. I couldn't even do the simple example: >library(ggmap) >qmap(location = "boston university") Error in get("f", environment(CoordMap$train)) : object 'f' not found Does anyone…
Minchun Zhou
  • 51
  • 1
  • 4
2
votes
0 answers

how to find depature from normal in temperature - R 4.0.0

I have been working on a dataset that will be universal on multiple climate stations for analyzing temperature and precipitation. I have run into a brick wall designing the 'climatic norms', I have successfully calculated daily temperature average…
Metgeneer
  • 19
  • 2
2
votes
0 answers

set curl timout options rnoaa

I'm trying to use the rnoaa R package and am having some difficulty. When I run the following I get an error. >ghcnd_stations() Error in curl::curl_fetch_memory(x$url$url, handle = x$url$handle) : Timeout was reached: Connection timed out after…
iantist
  • 833
  • 2
  • 12
  • 27
2
votes
1 answer

Meteo_pull_monitors for mean climate data by lat/long

I have a dataframe of latitudes, longitudes, start years and end years. I want mean precipitation for each location for that period. Right now, I can get this for one location at a time, but I want to automate the following for multiple…
CrunchyTopping
  • 803
  • 7
  • 17
2
votes
1 answer

rnoaa showing data is available, but not returning request

I'm working with the rnoaa() package to get some historical weather data and am running into problems with retrieving data that says is available, but will not return. In order for this reproducible example to work you will first need a token from…
Vedda
  • 7,066
  • 6
  • 42
  • 77
2
votes
1 answer

What to do when a NOAA ERDDAP dataset is not found?

I'm trying to download some gridded ERDDAP data using the rnoaa package in R. While the data retrieval works perfectly for some datasets, I'm having some problems getting the data for some datasets in particular. For example when I run: library…
1
vote
1 answer

NOAA API: can there be offshore sites with sea level depth greater than 0?

I have a feeling there's a quick and easy answer to this but, not being an expert on this sort of thing, I thought it worth asking. I am trying to retrieve sea level depth data using the marmap package in R, which is a wrapper for the NOAA API. I…
Abed
  • 183
  • 7
1
vote
0 answers

Having trouble downloading county-level NOAA data in R

I'm trying to download NOAA data (GHCND dataset: https://www.ncei.noaa.gov/cdo-web/datasets) in R by county FIPS code using the rnoaa package. I feel like it should be possible to download county-level climate data…
1
vote
0 answers

Issues using ncdc function of rnoaa

I am using the ncdc function from rnoaa package of R to download rainfall data for one station This is the code: start_date <- "1895-01-01" end_date <- "1895-12-31" datatype <- "PRCP" siteNumber <- "GHCND:USC00023498" data <-…
Sss
  • 427
  • 2
  • 8
1
vote
0 answers

Download data from rnoaa (error in API key)

I am trying to download data from NOAA using the rnoaa package of R. I am using ncdc_stations function to download some data: siteNumber <- "GHCND:USC00023505" metadata_station <- ncdc_stations(datasetid='GHCND', stationid=siteNumber) However, I am…
Sss
  • 427
  • 2
  • 8
1
vote
1 answer

Strange tibble class when using lcd function from rnoaa package

I recently updated to the newest versions of R, RStudio, and tidyverse, and now I have an error when running the ldc function from the rnoaa package. This error only started after the updates. R version 4.0.2 (2020-06-22) Platform:…
1
vote
1 answer

Retrieving climate data on "rnoaa" package in R

I am trying to retrieve climate data for a specific station_ID on a specific date. My dataset contains both elements. for(i in data$date){lapply(data$station_id[i], ghcnd_search, var = "PRCP", …
1
vote
0 answers

Accessing historical weather model data with rNOMADS

I am in interested in accessing historical NOAA model data, and have been using the rNOMADS package in R. Most tutorials on this package focus on current data, for example this excellent…
Vint
  • 413
  • 6
  • 17
1
vote
1 answer

Using the NOAA API Token to pull in data

I am trying to pull weather data from NOAA's API I've downloaded rnoaa, httrm and jsonlite packages. I want to run this piece of code ncdc_stations(datasetid='GHCND', locationid='FIPS:12017', stationid='GHCND:USC00084289') I get the error…
1
2 3 4