collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"

Build Status Build Status codecov DOI Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI CRAN

nasapower: NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client

nasapower aims to make it quick and easy to automate downloading NASA-POWER global meteorology, surface solar energy and climatology data in your R session as a tidy data frame tibble object for analysis and use in modelling or other purposes. POWER (Prediction Of Worldwide Energy Resource) data are freely available for download at a resolution of 1/2 arc degree longitude by 1/2 arc degree latitude.

nasapower offers further functionality to quickly and easily generate an APSIM package metFile format text file from POWER data for use in the Agricultural Production Systems sIMulator (APSIM) or an ICASA format text files for use in Decision Support System for Agrotechnology Transfer (DSSAT).

Please see for more on the data and other ways to access it and other forms of data available, e.g., your web browser or an ESRI REST API.

Quick start

nasapower can easily be installed using the following code.


The stable version is available through CRAN.


From GitHub for the version in-development

A development version that may have new features or bug fixes is available through GitHub.

if (!require(devtools)) {

                         build_vignettes = TRUE


Fetch daily "AG" community temperature, relative humidity and precipitation for January 1 1985 for Kingsthorpe, Queensland, Australia.

daily_ag <- get_power(community = "AG",
                      lonlat = c(151.81, -27.48),
                      pars = c("RH2M", "T2M", "PRECTOT"),
                      dates = "1985-01-01",
                      temporal_average = "DAILY"



More documentation is available in the vignette in your R session, vignette("nasapower") or available online,

Use of POWER Data

While nasapower does not redistribute the data or provide it in any way, we encourage users to follow the requests of the POWER Project Team.

When POWER data products are used in a publication, we request the following acknowledgement be included: "These data were obtained from the NASA Langley Research Center POWER Project funded through the NASA Earth Science Directorate Applied Science Program."




adamhsparks/nasapower documentation built on Dec. 29, 2019, 4:40 a.m.