Skip to content

Releases: ropensci/nasapower

v4.0.0

23 Aug 11:58
Compare
Choose a tag to compare

nasapower 4.0.0

Major changes

  • Adds support for new NASA POWER API v2.0, which includes new hourly data and other major changes to the API and available data.
    See https://power.larc.nasa.gov/ for fully detailed changes to the data.

  • Drops support for the deprecated NASA POWER API V1.0.
    Previous versions of nasapower are no longer functional.

  • Adds new function, query_parameters() to fetch information from the API on individual and all available community/temporal API combination parameters.

  • Removes SSE community, replaced with RE.

  • Removes global option for geographic coverage as passed along through the latlon argument of get_power().

  • Directly parse data from API response rather than downloading data to disk and importing.

  • The get_power() arguments are changed:

    • two new arguments are added,
      • wind_elevation, and
      • wind_surface,
    • the temporal_average argument has been superseded by temporal_api to align with the terminology used in the POWER API.
      The temporal_average argument will still work, however, a message will be given if a user still uses temporal_average to alert the user of the change and ask them to update their scripts.

v3.0.1

24 Oct 06:25
df31496
Compare
Choose a tag to compare

Bug fixes

  • Fix bug where Solar Radiation, "ALLSKY_SFC_SW_DWN", and perhaps others that were missed, return a numeric -99.00 value rather than the proper NA for missing data.
    Thanks to Fernando Miguez, https://github.com/femiguez, for the assistance in isolating the issue.

v3.0.0: Merge pull request #51 from ropensci/devel

10 Oct 05:23
e0b3a89
Compare
Choose a tag to compare

nasapower 3.0.0

Major Changes to Functionality

  • Due to the removal of the CRAN package APSIM from CRAN, the removal of the create_met() function has been implemented sooner than expected to keep nasapower on CRAN

  • Deprecates create_met()

Bug fixes

  • Properly deprecates create_icasa()

v2.0.0

23 Sep 13:22
30b29ee
Compare
Choose a tag to compare

nasapower 2.0.0

Bug Fixes

  • Correct any missing or redirecting URLs

  • Replace deprecated subclass with class in new_tibble()

  • Correct any missing or redirecting URLs

  • Replace deprecated subclass with class in new_tibble()

Major Changes to Functionality

  • Following a UNIX-like philosophy, this release removes functionality to write APSIM .met and DSSAT ICASA files to disk.
    nasapower now will only fetch the appropriate data and return a tibble() object in-session, please use apsimx or the POWER web API data access viewer, https://power.larc.nasa.gov/data-access-viewer/, for fetching and/or writing .met or .icasa files, respectively.
    Note that create_icasa() ideally should have been deprecated, but the server was not responding properly when queried for some time before the current release of nasapower so the function has been removed.

  • Add ability to get_power() to accept a user-provided site_elevation parameter that is passed to the API.
    When this is used it will return a corrected atmospheric pressure value adjusted to the elevation provided.

Minor and Internal Changes

  • Use newest values from POWER team to validate user inputs for API requests, see #48 for more.

  • Replace raster with terra for examples of converting to spatial data in vignettes

  • Use vcr for enhanced testing

  • Refactor the internal handling of temporary files to allow for more efficient use of the future package

1.1.1

18 Apr 05:50
Compare
Choose a tag to compare

Bug fixes

  • Fix issues reported at https://cloud.r-project.org//web/checks/check_results_nasapower.html with
    failing tests. These tests should be skipped on CRAN but were not.

  • 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

1.1.0

10 Apr 20:41
Compare
Choose a tag to compare

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()'.

Major changes

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

Minor changes

  • Adds example of fetching climate for a single point

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

  • Refactor code to split internal functions by functionality and add more
    complete test coverage

1.0.7

17 Feb 09:08
Compare
Choose a tag to compare

Minor changes

  • Removes internal check for data - community agreement, as all data is
    available for all communities, only the units change

  • Update links to latest documentation provided by the POWER team

1.0.5

02 Feb 05:56
Compare
Choose a tag to compare
  • "Fixes" Issue 32 where WS2M is not available through nasapower until the POWER team can properly address how pre-query validation should be performed

Downtown Shutdown

08 Jan 20:21
Compare
Choose a tag to compare

nasapower 1.0.4

This release includes changes for v1.03 (unreleased) and v1.0.4

Minor changes

  • Corrects an instance where vignette example executed on CRAN but should not

  • Adds link to POWER website in error message when query fails

  • Documentation .Rd files are now more readable with better formatting

nasapower 1.0.3 (unreleased)

Minor changes

Documentation changes

  • Flesh out examples using naspower data with raster to create spatial objects for systems with low-RAM where the functionality may not work as expected

  • Standardise formatting of vignette subheadings

  • Spell check vignette

Bug fixes

  • Fixes tests to not run on CRAN so that errors aren't reported when API is unavailable

Kingsthorpe

18 Oct 20:12
Compare
Choose a tag to compare

Minor changes

  • Updates documentation examples

  • Provides nicer method of printing data in R console

  • Updates tests for better coverage and removes non-functional tests

  • Removes dplyr as an Import

Bug fixes

  • Corrects issue where if() was called with a vector of length 2 or more

  • Corrects logical operators && and || where they should be & or |

  • Removes extra code in create_icasa() and create_met() that peformed
    a duplicated check of latlon values

  • Removes unnecessary checks for latlon in get_power()