cronus creates a database, which takes the form of a 5-level directory. These levels are Region > Sector > Provider > Product > Variable.
Details
For a specific region, data can belong to one of three sectors: agricultural, environmental or satellite. Data are made available by a provider, usually an organization or a lab, which organizes the data in one or more products. Each product contains several variables of interest.
The class tree structure is the following:
AgriculturalSectorNassProviderQuickstatsProductProgressVariable
CropmapsProduct
BibliographyProviderParametersProduct
EnvironmentalSectorOrnlProviderDaymetProduct
SatelliteSectorModisProviderMod09gaProductMyd09gaProduct
LandsatProviderLandsat_tm_c1ProductLandsat_etm_c1ProductLandsat_8_c1Product
SentinelProviderS2msi2aProductSy_2_syn___Product
Classes Database, Sector, Provider, and Product
are also defined, but are abstract classes that exist solely for hierarchical
purposes.
All classes are defined with the S4 OOP system, except from the Variables that are defined using the S3 OOP system. Each variable has its own documentation page.
Slots
regionRegion. A region of interest.
dateDate. Dates of interest (vector).
dircharacter. The database parent directory. If the path_demeter environment variable has been set, it can be omitted.
Examples
if (FALSE) {
region <- Region(name = "nebraska", type = "us state",
div = c(country = "United States", state = "Nebraska"))
date <- as.Date("2020-07-15")
dir <- getwd()
w <- new("Quickstats", region = region, date = date, dir = dir)
x <- new("Cropmaps", region = region, date = date, dir = dir)
y <- new("Daymet", region = region, date = date, dir = dir)
z <- new("Mod09ga", region = region, date = date, dir = dir)
}
