nasapower

NASA POWER API Client

Client for 'NASA' 'POWER' global meteorology, surface solar
energy and climatology data 'API'. 'POWER' (Prediction Of Worldwide Energy
Resource) data are freely available global meteorology and surface solar
energy climatology data for download with a resolution of 1/2 by 1/2 arc
degree longitude and latitude and are funded through the 'NASA' Earth
Science Directorate Applied Science Program. For more on the data
themselves, a web-based data viewer and web access, please see
< https://power.larc.nasa.gov/>.

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.

Meta

Get citation information for nasapower in R by typing
citation(package = "nasapower").

Please note that the nasapower project is released with a
Contributor Code of Conduct. By participating in the
nasapower project you agree to abide by its terms.

The U.S. Earth System Research Laboratory, Physical Science Division
of the National Atmospheric & Oceanic Administration (NOAA)
maintains a list of gridded climate data sets that provide different
data and different resolutions
https://www.esrl.noaa.gov/psd/data/gridded/.

News

nasapower 1.1.1

Bug fixes

Fixes bug where missing values in POWER data were not properly replaced with
NA in tibble and metFile outputs

Fixes bug in documentation for create_icasa() where the parameter for
file_out was misidentified as just file

Minor changes

Users are now notified if creating a .met file that has any missing values
through a console message and .csv file being written to disk to accompany the
resulting .met file describing which values are missing

nasapower 1.1.0

Bug fixes

Fixes bug where .met files were not created properly including where "radn"
and "rain" col headers were reversed

Fix Warning: Must pass a scalar integer as 'nrow' argument to 'new_tibble()'.

Fixes bug where "CLIMATE" could not be requested for a single point

Major changes

Change how GLOBAL values are requested. This is now specified in lonlat
in conjunction with temporal_average = CLIMATOLOGY.

Adsd function create_icasa() to create a text file of weather data for use
in 'DSSAT' crop modelling

Internally, replaces httr package with crul

Deprecated functions

The get_cell and get_region functions are deprecated in favour of
get_power(). The new POWER interface allows for the specification of single
points or regional areas. Global coverage may be queried for Climatology. See
the help for ?get_power() for more details.

nasapower 0.1.4

Bug Fixes

Fixes bug related to date columns where MONTH, DAY and YYYY-MM-DD were
incorrectly reported in final data frame. This did not affect the weather data,
YEAR or DOY columns.

nasapower 0.1.3

Bug fixes

Fix bug where lon/lat values were improperly assigned internally due to row
names not being ordered correctly in get_region()

Fix bug reports link in DESCRIPTION file

Correct vignette where it had said, "both of which will which will download"

Correct documentation for get_region(), which incorrectly stated that it
downloaded data for a 1 x 1 degree cell

Minor improvements

Optimise arguments used in utils::read.table() to ingest weather data in the
get_cell() and get_region() functions more quickly

NEWS now formatted more nicely for easier reading

Add statement about possible performance and memory usage when using
get_region() in the vignette

Add an example of converting the data frame to a spatial object using
raster to create a raster::brick()

Specify in documentation that a range of days to years can be specified for
download

Minor changes

get_region() and get_cell() now default to download all weather vars

Add a check to see if POWER website is responding before making request for
data. If not, stop and return error message to user.