Skip to content

nert 2.0.0

Choose a tag to compare

@max578 max578 released this 16 Oct 03:59
· 17 commits to main since this release
9d97f27
  • Breaking change: nert no longer re-exports autoplot(). The examples,
    README and vignettes now plot with plot() from terra. Code that called
    autoplot() can use tidyterra::autoplot() instead.

  • nert now requires R 4.1.0 or later, the oldest version on which testthat
    installs.

  • collect_tern_data() is faster. GDAL no longer checks TERN for file types
    nert does not read: nert sets CPL_VSIL_CURL_ALLOWED_EXTENSIONS to
    .tif,.vrt,.aux.xml while it reads and then restores your own value.

  • Retries are handled by GDAL through GDAL_HTTP_MAX_RETRY and
    GDAL_HTTP_RETRY_DELAY, set from max_tries and initial_delay. GDAL
    retries busy and server-error responses, both when a file is opened and when
    its values are read later. The previous retry loop could not recover,
    because GDAL remembered the first failure.

  • plot() on a read_smips() raster now shows the correct values. It used
    to draw from the file's overviews, which hold wrong values at the coast.

  • The TERN API key is passed to GDAL as the GDAL_HTTP_USERPWD setting
    instead of in the file URL, so terra::sources() no longer shows it. The
    setting lasts for the R session and GDAL sends it to every server read with
    /vsicurl, so the first read warns about this.

  • The screenshots in the Getting started vignette and the plots in the README
    and the Bandwidth-safe spatial subsetting vignette now have alt-text.

  • New show_datasets() returns the datasets nert can read, with their
    aliases, TERN IDs, time steps, resolutions and descriptions. The table that
    collect_tern_data() prints comes from the same source.

  • Michael Sumner and Shandiya Balasubramaniam added as package reviewers
    (rOpenSci review, ropensci/software-review#785).

  • Breaking change: collect_tern_data() takes each row's PHENOLOGY value from
    the year of that row's date, and leaves rows dated outside 2003--2018 as
    NA with a warning. PHENOLOGY columns no longer carry the year
    (PHENOLOGY_SGS_y2018_s1 becomes PHENOLOGY_SGS_s1) (#95).

  • get_key() checks the "nert" keyring first, then the default keyring (#92).

  • The SMIPS date validator now uses a per-collection earliest date. Requests
    for the totalbucket and SMindex collections are accepted back to
    2005-01-01 (these are archived earlier than the four bucket-level
    collections bucket1, bucket2, deepD, and runoff, which start
    2015-01-01). Previously every SMIPS request before 2015-01-01 was rejected,
    so valid 2005--2014 totalbucket / SMindex requests were turned away. The
    out-of-range error message now also names the requested collection.

  • The offline test suite now covers every dataset handler and validator
    directly, in addition to the existing end-to-end mocked tests, and also
    exercises the download retry/backoff logic and the verbose reporting path.
    Key-less test coverage (the figure reported by continuous integration,
    which runs without a TERN API key) is now approximately 99.8%.

  • New vignette, Bandwidth-safe spatial subsetting, showing how to crop to an
    area of interest, extract at point locations, and save a local copy so that
    only the data you need crosses the network, and covering the coordinate
    reference system handling for the canopy height dataset.