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:
Agricultural
SectorNass
ProviderQuickstats
ProductProgress
Variable
Cropmaps
Product
Bibliography
ProviderParameters
Product
Environmental
SectorOrnl
ProviderDaymet
Product
Satellite
SectorModis
ProviderMod09ga
ProductMyd09ga
Product
Landsat
ProviderLandsat_tm_c1
ProductLandsat_etm_c1
ProductLandsat_8_c1
Product
Sentinel
ProviderS2msi2a
ProductSy_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
region
Region. A region of interest.
date
Date. Dates of interest (vector).
dir
character. 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)
}