Rename download functions from download_*_data to download_*
a. https://github.com/NIEHS/amadeus/issues/66
b. Removing redundant "data" provides uniform function names across download, process, and covariate functions.
c. Applied to all unit tests and vignettes.
Deprecate the directory_to_download_ parameter
a. https://github.com/NIEHS/amadeus/issues/67
b. the directory_to_save parameter is used to create sub-directories for zip files and unzipped data files.
c. download_merra2, download_geos, and download_narr_* create sub-directories for each collection of data downloaded.
Download multiple collections with download_geos and download_merra2
a. https://github.com/NIEHS/amadeus/issues/64
b. Function accepts a vector of "collections" and downloads data files for temporal range for each collection
c. Eliminates re-calls or for loop.
d. Data saved in collection-specfiic sub-directory within directory_to_save
Calculate covariates for polygons
a. https://github.com/NIEHS/amadeus/issues/65
b. the process_locs_vector function, which prepares extraction locations before being passed to calc_worker, now accepts polygon boundaries from terra and sf packages.
c. calc_worker has been updated to perform extractions with terra::extract if provided points and exactextractr::exact_extract if given polygons (includes polygon locs and buffered points)
Temporal data of process_* and calc_* have been reviewed for accuracy
a. https://github.com/NIEHS/amadeus/issues/68
b. calc_time sets date or hourly $time columns as POSIXt class, and year and year-month as integer class
c. calc_check_time ensures proper time class before return to user
d. time-less or time-range data (ie Ecoregions, gRoads, Koppen Geiger) are given temporal information with terra::metags, and returned in the calculated covariates data.frame in the $description column
Retain point or polygon geometry in calculated covariates data.frame
a. https://github.com/NIEHS/amadeus/issues/69
b. Geometry information is returned in "WKT" format as points and polygons
c. Warning given in description for long character string if geom = TRUE and geometry is polygons
process_hms accepts snake and camel case variables
a. https://github.com/NIEHS/amadeus/issues/70
b. failed previously if variable = "light" instead of variable = "Light"
Replaced redundant "level=" in pressure level covariates data.frame
a. https://github.com/NIEHS/amadeus/issues/71
b. Retains long data format with pressure level variable in separate column from data.
c. Perhaps discussion with group is necessary to determine whether we want long format (as is now) or wide (include pressure level value in column name)
branch mm-manuscript-0425 includes:
Rename download functions from
download_*_data
todownload_*
a. https://github.com/NIEHS/amadeus/issues/66 b. Removing redundant "data" provides uniform function names across download, process, and covariate functions. c. Applied to all unit tests and vignettes.Deprecate the
directory_to_download_ parameter
a. https://github.com/NIEHS/amadeus/issues/67 b. thedirectory_to_save
parameter is used to create sub-directories for zip files and unzipped data files. c.download_merra2
,download_geos
, anddownload_narr_*
create sub-directories for each collection of data downloaded.Download multiple collections with
download_geos
anddownload_merra2
a. https://github.com/NIEHS/amadeus/issues/64 b. Function accepts a vector of "collections" and downloads data files for temporal range for each collection c. Eliminates re-calls or for loop. d. Data saved in collection-specfiic sub-directory withindirectory_to_save
Calculate covariates for polygons a. https://github.com/NIEHS/amadeus/issues/65 b. the
process_locs_vector
function, which prepares extraction locations before being passed tocalc_worker
, now accepts polygon boundaries fromterra
andsf
packages. c.calc_worker
has been updated to perform extractions withterra::extract
if provided points andexactextractr::exact_extract
if given polygons (includes polygonlocs
and buffered points)Temporal data of
process_*
andcalc_*
have been reviewed for accuracy a. https://github.com/NIEHS/amadeus/issues/68 b.calc_time
sets date or hourly$time
columns as POSIXt class, and year and year-month as integer class c.calc_check_time
ensures proper time class before return to user d. time-less or time-range data (ie Ecoregions, gRoads, Koppen Geiger) are given temporal information withterra::metags
, and returned in the calculated covariatesdata.frame
in the$description
columnRetain point or polygon geometry in calculated covariates
data.frame
a. https://github.com/NIEHS/amadeus/issues/69 b. Geometry information is returned in "WKT" format as points and polygons c. Warning given in description for long character string ifgeom = TRUE
and geometry is polygonsprocess_hms
accepts snake and camel case variables a. https://github.com/NIEHS/amadeus/issues/70 b. failed previously ifvariable = "light"
instead ofvariable = "Light"
Replaced redundant "level=" in pressure level covariates data.frame a. https://github.com/NIEHS/amadeus/issues/71 b. Retains long data format with pressure level variable in separate column from data. c. Perhaps discussion with group is necessary to determine whether we want long format (as is now) or wide (include pressure level value in column name)
Updated README.md and download data vignette a. https://github.com/NIEHS/amadeus/issues/72 b. download_data and NASA EarthData Account vignette updated.