Skip to content

Commit

Permalink
Cover all links to CRAN to canonical format
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Oct 13, 2016
1 parent e2520ef commit 0cd111f
Showing 3 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ GSOD.

There are several other sources of weather data and ways of retrieving them
through R. In particular, the excellent
[rnoaa](https://cran.r-project.org/web/packages/rnoaa/index.html) package from
[rnoaa](https://CRAN.R-project.org/package=rnoaa) package from
[ROpenSci](https://ropensci.org) offers tools for interacting with and
downloading weather data from the United States National Oceanic and
Atmospheric Administration but lacks support GSOD data.
@@ -68,7 +68,7 @@ install.packages("GSODR")

A development version is available from from GitHub. If you wish to install the
development version that may have new features (but also may not work properly),
install the [devtools package](https://cran.r-project.org/web/packages/devtools/index.html),
install the [devtools package](https://CRAN.R-project.org/package=devtools),
available from CRAN. I strive to keep the master branch on GitHub functional and
working properly this may not always happen.

15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -28,11 +28,10 @@ humidity variables calculated from existing data in GSOD.

There are several other sources of weather data and ways of retrieving
them through R. In particular, the excellent
[rnoaa](https://cran.r-project.org/web/packages/rnoaa/index.html)
package from [ROpenSci](https://ropensci.org) offers tools for
interacting with and downloading weather data from the United States
National Oceanic and Atmospheric Administration but lacks support GSOD
data.
[rnoaa](https://CRAN.R-project.org/package=rnoaa) package from
[ROpenSci](https://ropensci.org) offers tools for interacting with and
downloading weather data from the United States National Oceanic and
Atmospheric Administration but lacks support GSOD data.

This package was largely based on Tomislav Hengl's work
"[getGSOD.R](http://spatial-analyst.net/book/getGSOD.R)", which can be
@@ -67,9 +66,9 @@ install.packages("GSODR")
A development version is available from from GitHub. If you wish to
install the development version that may have new features (but also may
not work properly), install the [devtools
package](https://cran.r-project.org/web/packages/devtools/index.html),
available from CRAN. I strive to keep the master branch on GitHub
functional and working properly this may not always happen.
package](https://CRAN.R-project.org/package=devtools), available from
CRAN. I strive to keep the master branch on GitHub functional and
working properly this may not always happen.

If you find bugs, please file a report as an issue.

15 changes: 9 additions & 6 deletions vignettes/Using_GSODR.Rmd
Original file line number Diff line number Diff line change
@@ -62,9 +62,10 @@ provide valid geo-locations after cleaning.
GSOD_stations$STNID <- as.character(paste(GSOD_stations$USAF, GSOD_stations$WBAN, sep = "-"))
```

Using [ggplot2](https://cran.r-project.org/web/packages/ggplot2/index.html) and the [ggalt](https://cran.r-project.org/web/packages/ggalt/index.html) package it is
possible to plot the station locations using alpha transparency to see the
densest part of the network and use the Robinson projection for the map.
Using [ggplot2](https://CRAN.R-project.org/package=ggplot2) and the
[ggalt](https://CRAN.R-project.org/package=ggalt) package it is possible to plot
the station locations using alpha transparency to see the densest part of the
network and use the Robinson projection for the map.

```{r plot_stations, fig.width=7, fig.height=7, fig.cap="GSOD Station Locations"}
library(ggplot2)
@@ -80,7 +81,8 @@ ggplot(GSOD_stations, aes(x = LON, y = LAT)) +
## Find Stations in Australia

GSODR provides lists of weather station locations and elevation values. Using
[dplyr](https://cran.r-project.org/web/packages/dplyr/index.html), we can find all the stations in Australia.
[dplyr](https://CRAN.R-project.org/package=dplyr), we can find all the stations
in Australia.
```{r australia_stations, message=FALSE, warning=FALSE}
library(dplyr)
# left_join the the station data with the country list
@@ -139,7 +141,7 @@ get_GSOD(years = 2010, station = tbar_stations, dsn = "~/",

Using the first data downloaded for a single station, plot the temperature for
2010, setting the "-9999" value to NA on import using `read_csv()` from Hadley's
[readr](https://cran.r-project.org/web/packages/readr/index.html) package.
[readr](https://CRAN.R-project.org/package=readr) package.

```{r plot_temps, fig.width=7, fig.height=7, message=FALSE, fig.cap="Toowoomba 2010 Temperatures"}
library(lubridate)
@@ -218,7 +220,8 @@ print(AUS_sqlite, n = 5)
```
# Generating hourly temperature data from daily using the `chillR` package

The [chillR](https://cran.rstudio.com/web/packages/chillR/index.html) package from [Eike Luedeling](http://eikeluedeling.com/index.html)
The [chillR](https://CRAN.R-project.org/package=chillR) package from
[Eike Luedeling](http://eikeluedeling.com/index.html)
has a function, `make_hourly_temps()` that can be used to temporally downscale
daily weather data to hourly using the station's latitude. Here's how that's
possible using the Toowoomba-Airport data.

0 comments on commit 0cd111f

Please sign in to comment.