nasapower

nasapower: A NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client for R - Published in JOSS (2018)

https://github.com/ropensci/nasapower

Science Score: 95.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org, zenodo.org
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

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

Scientific Fields

Engineering Computer Science - 40% confidence
Last synced: 4 months ago · JSON representation

Repository

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

Basic Info
Statistics
  • Stars: 105
  • Watchers: 7
  • Forks: 24
  • Open Issues: 0
  • Releases: 33
Topics
agroclimatology agroclimatology-data data-access earth-science nasa nasa-power r r-package rstats weather weather-data weather-variables
Created about 8 years ago · Last pushed 4 months ago
Metadata Files
Readme Changelog Contributing License Codemeta

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://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")`.

## 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 the output from,

```{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

n8layman

kevinwolz
### Issue Contributors

andresouzaesilva

xianranli

jizarten

fe-neculqueo

LucasJorgeAbdala

olicoste

Owner

  • Name: rOpenSci
  • Login: ropensci
  • Kind: organization
  • Email: info@ropensci.org
  • Location: Berkeley, CA

JOSS Publication

nasapower: A NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client for R
Published
October 19, 2018
Volume 3, Issue 30, Page 1035
Authors
Adam H. Sparks ORCID
University of Southern Queensland, Centre for Crop Health, Toowoomba Queensland 4350, Australia
Editor
Karthik Ram ORCID
Tags
NASA weather data solar data climate data meteorology agroclimatology climatology alternative energy sustainable buildings earth science reproducibility

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "nasapower",
  "description": "An API client for NASA POWER global meteorology, surface solar energy and climatology data API. POWER (Prediction Of Worldwide Energy Resources) 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. This work is funded through the NASA Earth Science Directorate Applied Science Program. For more on the data themselves, the methodologies used in creating, a web-based data viewer and web access, please see <https://power.larc.nasa.gov/>.",
  "name": "nasapower: NASA POWER API Client",
  "codeRepository": "https://github.com/ropensci/nasapower",
  "issueTracker": "https://github.com/ropensci/nasapower/issues",
  "license": "https://spdx.org/licenses/MIT",
  "version": "4.2.5.9000",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.5.1 (2025-06-13)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Adam H.",
      "familyName": "Sparks",
      "email": "adamhsparks@gmail.com",
      "@id": "https://orcid.org/0000-0002-0061-8359"
    }
  ],
  "contributor": [
    {
      "@type": "Person",
      "givenName": "Fernando",
      "familyName": "Miguez",
      "email": "femiguez@iastate.edu",
      "@id": "https://orcid.org/0000-0002-4627-8329"
    },
    {
      "@type": "Person",
      "givenName": "Maëlle",
      "familyName": "Salmon",
      "@id": "https://orcid.org/0000-0002-2815-0399"
    },
    {
      "@type": "Person",
      "givenName": "Phillip D.",
      "familyName": "Alderman",
      "email": "phillip.alderman@okstate.edu",
      "@id": "https://orcid.org/0000-0003-1467-2337"
    },
    {
      "@type": "Person",
      "givenName": "Aleksandar",
      "familyName": "Blagotić",
      "email": "alex@rapporter.net"
    },
    {
      "@type": "Person",
      "givenName": "Gergely",
      "familyName": "Daróczi",
      "email": "daroczig@rapporter.net"
    },
    {
      "@type": "Person",
      "givenName": "James J.",
      "familyName": "Balamuta"
    }
  ],
  "copyrightHolder": [
    {
      "@type": "Person",
      "givenName": "Aleksandar",
      "familyName": "Blagotić",
      "email": "alex@rapporter.net"
    },
    {
      "@type": "Person",
      "givenName": "Gergely",
      "familyName": "Daróczi",
      "email": "daroczig@rapporter.net"
    },
    {
      "@type": "Organization",
      "name": "Curtin University"
    },
    {
      "@type": "Person",
      "givenName": "James J.",
      "familyName": "Balamuta"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Adam H.",
      "familyName": "Sparks",
      "email": "adamhsparks@gmail.com",
      "@id": "https://orcid.org/0000-0002-0061-8359"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "knitr",
      "name": "knitr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=knitr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "purrr",
      "name": "purrr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=purrr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmarkdown",
      "name": "rmarkdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmarkdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "spelling",
      "name": "spelling",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=spelling"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "version": ">= 3.0.0",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "vcr",
      "name": "vcr",
      "version": ">= 0.6.0",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=vcr"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 3.5.0"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "cli",
      "name": "cli",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=cli"
    },
    "3": {
      "@type": "SoftwareApplication",
      "identifier": "crul",
      "name": "crul",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=crul"
    },
    "4": {
      "@type": "SoftwareApplication",
      "identifier": "lubridate",
      "name": "lubridate",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=lubridate"
    },
    "5": {
      "@type": "SoftwareApplication",
      "identifier": "readr",
      "name": "readr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=readr"
    },
    "6": {
      "@type": "SoftwareApplication",
      "identifier": "rlang",
      "name": "rlang",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rlang"
    },
    "7": {
      "@type": "SoftwareApplication",
      "identifier": "tibble",
      "name": "tibble",
      "version": ">= 3.0.2",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=tibble"
    },
    "8": {
      "@type": "SoftwareApplication",
      "identifier": "yyjsonr",
      "name": "yyjsonr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=yyjsonr"
    },
    "SystemRequirements": null
  },
  "applicationCategory": "Tools",
  "isPartOf": "https://ropensci.org",
  "keywords": [
    "NASA",
    "meteorological-data",
    "weather",
    "global",
    "weather-data",
    "meteorology",
    "NASA-POWER",
    "agroclimatology",
    "earth-science",
    "data-access",
    "climate-data",
    "r",
    "nasa-power",
    "nasa",
    "agroclimatology-data",
    "weather-variables",
    "rstats",
    "r-package"
  ],
  "fileSize": "505.264KB",
  "citation": [
    {
      "@type": "ScholarlyArticle",
      "datePublished": "2018",
      "author": [
        {
          "@type": "Person",
          "givenName": "Adam H.",
          "familyName": "Sparks"
        }
      ],
      "name": "nasapower: A NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client for R",
      "identifier": "10.21105/joss.01035",
      "pagination": "1035",
      "@id": "https://doi.org/10.21105/joss.01035",
      "sameAs": "https://doi.org/10.21105/joss.01035",
      "isPartOf": {
        "@type": "PublicationIssue",
        "issueNumber": "30",
        "datePublished": "2018",
        "isPartOf": {
          "@type": [
            "PublicationVolume",
            "Periodical"
          ],
          "volumeNumber": "3",
          "name": "The Journal of Open Source Software"
        }
      }
    }
  ],
  "relatedLink": [
    "https://docs.ropensci.org/nasapower/",
    "https://CRAN.R-project.org/package=nasapower"
  ],
  "releaseNotes": "https://github.com/ropensci/nasapower/blob/master/NEWS.md",
  "readme": "https://github.com/ropensci/nasapower/blob/main/README.md",
  "contIntegration": [
    "https://github.com/ropensci/nasapower/actions/workflows/check-standard.yaml",
    "https://app.codecov.io/gh/ropensci/nasapower"
  ],
  "developmentStatus": "https://www.repostatus.org/#active",
  "review": {
    "@type": "Review",
    "url": "https://github.com/ropensci/software-review/issues/155",
    "provider": "https://ropensci.org"
  }
}

GitHub Events

Total
  • Create event: 3
  • Release event: 1
  • Issues event: 4
  • Watch event: 8
  • Delete event: 2
  • Issue comment event: 9
  • Push event: 55
  • Pull request event: 3
  • Fork event: 2
Last Year
  • Create event: 3
  • Release event: 1
  • Issues event: 4
  • Watch event: 8
  • Delete event: 2
  • Issue comment event: 9
  • Push event: 55
  • Pull request event: 3
  • Fork event: 2

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 2,114
  • Total Committers: 6
  • Avg Commits per committer: 352.333
  • Development Distribution Score (DDS): 0.004
Past Year
  • Commits: 106
  • Committers: 2
  • Avg Commits per committer: 53.0
  • Development Distribution Score (DDS): 0.009
Top Committers
Name Email Commits
Adam H. Sparks a****s@g****m 2,106
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 (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 77
  • Total pull requests: 17
  • Average time to close issues: 18 days
  • Average time to close pull requests: 2 days
  • Total issue authors: 32
  • Total pull request authors: 5
  • Average comments per issue: 2.31
  • Average comments per pull request: 0.82
  • Merged pull requests: 17
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 5
  • Average time to close issues: 5 days
  • Average time to close pull requests: about 2 hours
  • Issue authors: 2
  • Pull request authors: 2
  • Average comments per issue: 3.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • adamhsparks (41)
  • daniel-althoff (2)
  • kauedesousa (2)
  • ymutua (2)
  • danielreispereira (2)
  • AboodaA (2)
  • palderman (1)
  • egbendito (1)
  • emdelponte (1)
  • Yonaba (1)
  • BradleyPOWER (1)
  • agronomofiorentini (1)
  • camwur (1)
  • kevinwolz (1)
  • saulo1305 (1)
Pull Request Authors
  • adamhsparks (15)
  • kguidonimartins (2)
  • maelle (2)
  • palderman (1)
  • femiguez (1)
Top Labels
Issue Labels
enhancement (12) bug (5) Version 4.0 (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 16
proxy.golang.org: github.com/ropensci/nasapower
  • Versions: 16
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 4 months ago

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