rnoaa

Better way to optimize my code for getting NOAA climate data

孤街醉人 提交于 2020-01-16 01:17:35
问题 So I've been working on grabbing climate data (specifically temperature, precip) from NOAA's network of GHCN weather stations. I've managed to get a list of the stations pertinent to my area (~200) and have built a loop to essentially get a certain a climate variable for every station on that list for every day of between a specified min and max date. Ultimately I need ~10 years worth of data. However my simple loop is taking forever to get this data and I was wondering if there's a better

R ggmap Error: object 'f' not found

a 夏天 提交于 2019-12-12 10:56:12
问题 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 have the same problem? Thank you! 回答1: Reverting to ggplot v. 2.2.0 worked for me: devtools::install_github("hadley/ggplot2@v2.2.0") 回答2: Reinstall R and R Studio Library(devtools) devtools::install_github("dkahle/ggmap") devtools::install_github("hadley

Better optimization for RNOAA GSOM for loop

半世苍凉 提交于 2019-12-11 05:14:23
问题 This is a related question to this: Better way to optimize my code for getting NOAA climate data But because of the different data set as well as a completely different 'for' loop format I think it's best to start a new question. Essentially I am trying to get data from NOAA's GSOM data set (particularly degree days, precipitation, temperature, all monthly averages). I need this data from 2005 to 2015 and have been using the rnoaa package to access and download the information. So far the new