Changelog
Source:NEWS.md
ntlpanel (development version)
ntl_fetch()andntl_available()now retry dropped connections and timeouts (httr2_failure), not only HTTP error responses. A long download no longer stops on a single “Connection was reset”; if all attempts fail, the error says that running the call again resumes.Once a download has worked in a session, an HTTP 401 from LAADS is treated as a temporary refusal: it is retried for up to about 15 minutes and the error no longer blames the token.
?ntl_tokendescribes the one-time Earthdata account setup LAADS needs (complete profile, accepted EULAs, LAADS authorized), and the token error points to it.inst/scripts/validate_splice_kz.R: a reliable orientation check (city light vs. mirrored boxes), parallel downloads (WORKERS), tile and year subsets (TILES,MONTHLY_TILES,ANNUAL_YEARS), and resumable runs that skip files LAADS keeps refusing instead of stopping. It no longer prints the token when run withRscript.ntl_read_bm()now reads Black Marble tiles with hdf5r instead of GDAL. Recent GDAL versions return these grids upside down, which flipped tiles on R 4.5 and 4.6. hdf5r moves from Suggests to Imports. Fill values,scale_factorandadd_offsetare taken from the dataset attributes.Downloads now go to a temporary folder by default; set
NTLPANEL_CACHEor thentlpanel.cache_diroption to keep them between sessions.New
ntl_cache_info();ntl_cache_clear(all = TRUE)empties the cache.A small example Black Marble tile ships in
inst/extdata, sontl_read_bm()has a runnable example.Examples that need the internet or a token use
@examplesIfinstead of\dontrun{}.Internal refactoring of
ntl_fetch(),ntl_splice(),ntl_gapfill(),ntl_mask()andntl_crosswalk()into smaller helpers; code follows an 80-character line limit.Added
CITATION, contributing guidelines, a pkgdown configuration and GitHub Actions workflows (R CMD check, pkgcheck, pkgdown, coverage).
ntlpanel 0.1.0
First version.
- Data access:
ntl_sources(),ntl_tiles(),ntl_available(),ntl_fetch()(NASA Black MarbleVNP46A3/A4and NOAA-20VJ146A3/A4from LAADS, with caching, integrity checks and manifests),ntl_files()(EOG VNL monthly and annual composites, harmonized DMSP-VIIRS series, local Black Marble files). - Reading and masking:
ntl_read_bm()(with tile orientation checks),ntl_read(),ntl_mask()(quality flags, minimum observations, gas flares, top-coding). - Extraction:
ntl_aggregate()andntl_extract()with coverage diagnostics (share_valid,share_masked,mean_obs). - Panels:
ntl_panel(),ntl_gapfill()(interpolation, seasonal fill, drop; stray-light risk flags),ntl_splice()andntl_splice_report(). - Design variables:
ntl_exposure(),ntl_crosswalk(),ntl_apply_crosswalk(). -
ntl_example()writes synthetic data for examples, tests and the vignette. -
inst/scripts/validate_splice_kz.Rchecks the Suomi NPP to NOAA-20 splice for Kazakhstan.