The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

weatherjoin

weatherjoin is an R package for attaching gridded weather data to event-based datasets using efficient spatio-temporal planning and local caching.

The package is designed for workflows where weather variables need to be matched to many observations across space and time, while minimising repeated data downloads.

Currently, weather data are retrieved from the NASA POWER project via the nasapower R package.

This package is not affiliated with or endorsed by NASA.

Features

Installation

The package can be installed from GitHub:

remotes::install_github("hauae/weatherjoin")

Example

library(weatherjoin)

out <- join_weather(
  x = events,
  params = c("T2M", "PRECTOTCORR"),
  time = "event_time",
  lat_col = "lat",
  lon_col = "lon"
)

Caching

Downloaded weather data are cached locally and reused across calls. By default, the cache is stored in a user-specific directory obtained via tools::R_user_dir(). The cache can be inspected and managed using:

wj_cache_list()
wj_cache_clear()

Author and affiliation

Developed by Przemek Dolowy, Harper Adams University.

License

MIT License.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.