data-cleaning.settings
read-region
(read-region settings-path)
Reads paths to the region maps from the settings file.
settings-path: Path to the settings file.
returns: Paths to the region maps.
## Usage
(require '[data-cleaning.settings :refer :all])
;; "settings.xml"
;; <?xml version="1.0"?>
;; <files>
;; <raster path = "land-use-file"
;; group = "land-use" />
;; <raster path = "economic-indicator-file" />
;; <raster path = "economy1-file" />
;; <raster path = "economy2-file"
;; transform = "log" />
;; <raster path = "zoning-file"
;; group = "mask" />
;; </files>
(read-region "settings.xml")
=> "region-file"
read-settings
(read-settings settings-path)
Reads dataset settings file.
settings-path: Path to the settings file.
returns: File paths and relevant information
for the dataset.
## Usage
(require '[data-cleaning.settings :refer :all])
;; "settings.xml"
;; <?xml version="1.0"?>
;; <files>
;; <raster path = "land-use-file"
;; group = "land-use" />
;; <raster path = "economic-indicator-file" />
;; <raster path = "economy1-file" />
;; <raster path = "economy2-file"
;; transform = "log" />
;; <raster path = "zoning-file"
;; group = "mask" />
;; </files>
(read-settings "settings.xml")
=> {:land-use "land-use-file"
:other {"economic-indicator-file" :identity
"economy1-file" :identity
"economy2-file" :log}
:mask "zoning-file"}