
Add Geolocator DP resources from a GeoPressureTemplate
Source:R/read_geopressuretemplate.R
read_geopressuretemplate.RdRead a GeoPressureTemplate project and populate a GeoLocator Data Package with the resources that can be derived from it.
The import can combine two sources:
"interim": read.RDataoutputs fromdata/interim/, convert them to package resources, and store raw parameter objects inpkg$params."raw-tag": create tag objects fromdata/raw-tag/andconfig.yml, then derivemeasurements,tags,observations, andparams.
Manual data files take precedence over generated metadata:
data/tags.csvordata/tags.xlsxreplaces generatedtags;data/observations.csvordata/observations.xlsxreplaces generatedobservations.
Files or directories whose names start with "_" are ignored.
See the GeoPressureManual for a full workflow example.
Usage
read_geopressuretemplate(
directory = ".",
from = c("raw-tag", "interim"),
pkg = create_gldp()
)Arguments
- directory
Path to the GeoPressureTemplate directory.
- from
Character vector specifying which sources to import. Supported values are
"raw-tag"and/or"interim".- pkg
Optional GeoLocator Data Package object to update. Defaults to a new package created with
create_gldp().
See also
create_geopressuretemplate() to create a project from a package,
params_to_tags(), params_to_observations(), and
tags_to_measurements() for the underlying conversions.