项目作者: ropensci

项目描述 :
NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client for R
高级语言: R
项目地址: git://github.com/ropensci/nasapower.git
创建时间: 2017-11-02T06:08:53Z
项目社区:https://github.com/ropensci/nasapower

开源协议:Other

下载



output: github_document

" class="reference-link">{nasapower}: NASA POWER API Client logo

R-CMD-check
DOI
Project Status: Active – The project has reached a stable, usable state and is being actively developed.
peer-review
JOSS
CRAN status
codecov

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 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 https://power.larc.nasa.gov/docs/services 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.

  1. install.packages("nasapower")

From GitHub for the version in-development

A development version is available through GitHub.

  1. 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.

  1. library("nasapower")
  2. daily_ag <- get_power(
  3. community = "ag",
  4. lonlat = c(151.81, -27.48),
  5. pars = c("RH2M", "T2M", "PRECTOTCORR"),
  6. dates = "1985-01-01",
  7. temporal_api = "daily"
  8. )
  9. daily_ag
  1. ## ────────────────────────────────────────────────────────────────────────────────
  1. ##
  1. ## ── NASA/POWER Source Native Resolution Daily Data ─────────────────────────────
  1. ## Dates (month/day/year): 01/01/1985 through 01/01/1985 in LST
  1. ## Location: latitude -27.48 longitude 151.81
  1. ## elevation from MERRA-2: Average for 0.5 x 0.625 degree lat/lon region = 442.77
  2. ## meters
  1. ## The value for missing source data that cannot be computed or is outside of the
  2. ## sources availability range: NA
  1. ## parameter(s):
  1. ## ────────────────────────────────────────────────────────────────────────────────
  1. ## Parameters:
  1. ## RH2M MERRA-2 Relative Humidity at 2 Meters (%) ; T2M MERRA-2 Temperature at 2
  2. ## Meters (C) ; PRECTOTCORR MERRA-2 Precipitation Corrected (mm/day)
  1. ## ────────────────────────────────────────────────────────────────────────────────
  2. ## # A tibble: 1 × 10
  3. ## LON LAT YEAR MM DD DOY YYYYMMDD RH2M T2M PRECTOTCORR
  4. ## <dbl> <dbl> <dbl> <int> <int> <int> <date> <dbl> <dbl> <dbl>
  5. ## 1 152. -27.5 1985 1 1 1 1985-01-01 54.7 24.9 0.9

Documentation

More documentation is available in the vignette in your R session, vignette("nasapower") or available online, https://docs.ropensci.org/nasapower/articles/nasapower.html.

Meta

Citing {nasapower}

When citing the use of this package, please use the output from,

  1. library("nasapower")
  2. citation("nasapower")
  1. ## To cite package 'nasapower' in publications use:
  2. ##
  3. ## Sparks A (2018). "nasapower: A NASA POWER Global Meteorology, Surface
  4. ## Solar Energy and Climatology Data Client for R." _The Journal of Open
  5. ## Source Software_, *3*(30), 1035. doi:10.21105/joss.01035
  6. ## <https://doi.org/10.21105/joss.01035>.
  7. ##
  8. ## A BibTeX entry for LaTeX users is
  9. ##
  10. ## @Article{,
  11. ## author = {Adam H. Sparks},
  12. ## title = {nasapower: A NASA POWER Global Meteorology, Surface Solar Energy and Climatology Data Client for R},
  13. ## doi = {10.21105/joss.01035},
  14. ## year = {2018},
  15. ## month = {oct},
  16. ## publisher = {The Open Journal},
  17. ## volume = {3},
  18. ## number = {30},
  19. ## pages = {1035},
  20. ## journal = {The Journal of Open Source Software},
  21. ## }

References

https://power.larc.nasa.gov

https://power.larc.nasa.gov/docs/methodology

Contributors

All contributions to this project are gratefully acknowledged using the allcontributors package following the all-contributors 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