A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

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 modeling or other purposes.
https://github.com/ropensci/nasapower

Category: Renewable Energy
Sub Category: Photovoltaics and Solar Energy

Keywords

agroclimatology agroclimatology-data data-access earth-science nasa nasa-power r r-package rstats weather weather-data weather-variables

Keywords from Contributors

geocoding agriculture agriculture-research plant-disease

Last synced: about 19 hours ago
JSON representation

Repository metadata

API Client for NASA POWER Global Meteorology, Surface Solar Energy and Climatology in R

README.Rmd

          ---
output: github_document
---

# {nasapower}: NASA POWER API Client logo


[![R-CMD-check](https://github.com/ropensci/nasapower/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/ropensci/nasapower/actions/workflows/check-standard.yaml)
[![DOI](https://zenodo.org/badge/109224461.svg)](https://zenodo.org/badge/latestdoi/109224461) 
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) 
[![peer-review](https://badges.ropensci.org/155_status.svg)](https://github.com/ropensci/software-review/issues/155) 
[![JOSS](https://joss.theoj.org/papers/10.21105/joss.01035/status.svg)](https://doi.org/10.21105/joss.01035)
[![CRAN status](https://www.r-pkg.org/badges/version/nasapower)](https://CRAN.R-project.org/package=nasapower)
[![codecov](https://app.codecov.io/gh/ropensci/nasapower/graph/badge.svg?token=Kq9aea0TQN)](https://app.codecov.io/gh/ropensci/nasapower)


## POWER data vs {nasapower}

Please note that {nasapower} is **NOT** the source of NASA POWER data.
It is only an API client that allows easy access to the data.
{nasapower} does not redistribute the data or provide it in any way, *we encourage users to follow the requests of the POWER Project Team and properly acknowledge them for the data rather than citing this package* (unless you have actually used it in your work).

  >*When POWER data products are used in a publication, we request the following acknowledgement be included:
   "The data was obtained from the National Aeronautics and Space Administration (NASA) Langley Research Center (LaRC) Prediction of Worldwide Energy Resource (POWER) Project funded through the NASA Earth Science/Applied Science Program."*

The previous statement that properly cites the POWER data is different than the citation for {nasapower}.
To cite this R package, {nasapower}, please use the output from `citation(package = "nasapower")` and cite both the package manual, which includes the version you used and the paper which refers to the peer-review of the software package as the functionality of the package has changed and will likely change to match the API in the future as necessary.

## About {nasapower}

{nasapower} aims to make it quick and easy to automate *downloading* of the [NASA-POWER](https://power.larc.nasa.gov) 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 with varying spatial resolutions dependent on the original data and with several temporal resolutions depending on the POWER parameter and community.

**Note that the data are not static and may be replaced with improved data.**
Please see  for detailed information in this regard.

### Quick start

{nasapower} can easily be installed using the following code.

#### From CRAN

The stable version is available through CRAN.

```{r install-cran, eval=FALSE}
install.packages("nasapower")
```

#### From GitHub for the version in-development

A development version is available through GitHub.

```{r install-dev, eval=FALSE}
install.packages("nasapower", repos = "https://ropensci.r-universe.dev")
```

### Example

Fetch daily “ag” community temperature, relative humidity and precipitation for January 1, 1985 for Kingsthorpe, Queensland, Australia.

```{r kingsthorpe}
library("nasapower")
daily_ag <- get_power(
  community = "ag",
  lonlat = c(151.81, -27.48),
  pars = c("RH2M", "T2M", "PRECTOTCORR"),
  dates = "1985-01-01",
  temporal_api = "daily"
)
daily_ag
```

## Documentation

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

## Meta

- Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). 
By contributing to this project, you agree to abide by its terms.

- Please [report any issues or bugs](https://github.com/ropensci/nasapower/issues).

- License: MIT

### Citing {nasapower}

When citing the use of this package, please use,

```{r}
library("nasapower")
citation("nasapower")
```

## References





## Contributors






All contributions to this project are gratefully acknowledged using the [`allcontributors` package](https://github.com/ropensci/allcontributors) following the [all-contributors](https://allcontributors.org) specification. Contributions of any kind are welcome!

### Code


adamhsparks

femiguez

maelle

kguidonimartins

palderman
### Issue Authors

emdelponte

evanmusick

danielreispereira

olugovoy

mladencucak

ymutua

marcoslana1

AboodaA

victofs

andvar95

Bradley-Macpherson-NASA

a4sberg

leichx

Yonaba

kauedesousa

camwur

agronomofiorentini

Varsha-Ujjinni-VijayKumar

agryji08

mps9506

daniel-althoff

egbendito

makorb

saulo1305

emmalink1

Gonzalo1985
### Issue Contributors

andresouzaesilva

xianranli

jizarten

fe-neculqueo

LucasJorgeAbdala

olicoste

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 2,074
Total Committers: 6
Avg Commits per committer: 345.667
Development Distribution Score (DDS): 0.004

Commits in past year: 79
Committers in past year: 2
Avg Commits per committer in past year: 39.5
Development Distribution Score (DDS) in past year: 0.013

Name Email Commits
Adam H. Sparks a****s@g****m 2066
Maëlle Salmon m****n@y****e 2
Fernando Miguez f****z@g****m 2
Adam Sparks a****s@s****l 2
Phillip D. Alderman p****n@o****u 1
Karlo Guidoni k****s@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 76
Total pull requests: 15
Average time to close issues: 18 days
Average time to close pull requests: 3 days
Total issue authors: 31
Total pull request authors: 5
Average comments per issue: 2.34
Average comments per pull request: 0.93
Merged pull request: 15
Bot issues: 0
Bot pull requests: 0

Past year issues: 3
Past year pull requests: 4
Past year average time to close issues: 2 months
Past year average time to close pull requests: about 2 hours
Past year issue authors: 3
Past year pull request authors: 2
Past year average comments per issue: 3.0
Past year average comments per pull request: 0.0
Past year merged pull request: 4
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ropensci/nasapower

Top Issue Authors

  • adamhsparks (41)
  • daniel-althoff (2)
  • kauedesousa (2)
  • danielreispereira (2)
  • ymutua (2)
  • AboodaA (2)
  • palderman (1)
  • egbendito (1)
  • emdelponte (1)
  • Yonaba (1)
  • BradleyPOWER (1)
  • agronomofiorentini (1)
  • camwur (1)
  • saulo1305 (1)
  • n8layman (1)

Top Pull Request Authors

  • adamhsparks (10)
  • maelle (2)
  • kguidonimartins (1)
  • palderman (1)
  • femiguez (1)

Top Issue Labels

  • enhancement (12)
  • bug (5)
  • Version 4.0 (1)

Top Pull Request Labels


Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • crul * imports
  • jsonlite * imports
  • lubridate * imports
  • readr * imports
  • tibble >= 3.0.2 imports
  • knitr * suggests
  • purrr * suggests
  • ratelimitr * suggests
  • rmarkdown * suggests
  • spelling * suggests
  • testthat * suggests
  • vcr * suggests
.github/workflows/tic.yml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v2 composite
  • pat-s/always-upload-cache v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-tinytex v2 composite

Score: 6.406879986069315