forces a manually exported version of a model into the RRASSLED structure
Usage
insert_manual_record(
in_file = NULL,
path_to_ras_dbase = NULL,
xs_shapefile,
river_shapefile,
geometric_realization_override = "g01",
code_to_place_in_source = NULL,
proj_override = NULL,
is_quiet = FALSE,
is_verbose = FALSE,
overwrite = FALSE
)
Arguments
- in_file
the path to the file on disk that we want to ingest, Default: NULL
- path_to_ras_dbase
A path to a directory to write your RRASSLED catalog to, Default: NULL
- xs_shapefile
the path to the exported cross section shapefile
- river_shapefile
the path to the exported river shapefile
- geometric_realization_override
the geometric realization you are parsing out as a sting with leading g character ie g01, g02..., Default: 'g01'
- code_to_place_in_source
a code to place in the metadata as the owner of the model, Default: NULL
- proj_override
a string to override projection information should none be found, Default: NULL
- is_quiet
flag to determine whether print statements are suppressed, TRUE to suppress messages and FALSE to show them, Default: FALSE
- is_verbose
flag to determine whether internal print statements (i.e. cross section parsing, vdat trans, file info) are suppressed, TRUE to show these messages and FALSE to suppress them, Default: FALSE
- overwrite
overwrite overwrite files if we find identical models, Default: FALSE
Details
To export open the 'RAS Mapper' (GIS Tools > RAS Mapper) and right click on the 'Rivers' and 'Cross sections' layers and 'Export Layer > Save Layer to Shapefile' to a shapefile (I append mine with the model name). See https://github.com/NOAA-OWP/RRASSLER/blob/dev/man/figures/_export_for_insert_manual.png for a verbose example.
See also
glob2rx
, read.table
glue
st_read
, st_crs
, st_transform
, st_cast
, st_coordinates
, geos_measures
, st_geometry
, st_write
mutate
, row_number
, c("rowwise", "rowwise")
, group_by
st_startpoint
sf_polygon
, sf_linestring
units
str_detect
data.table-package
, fwrite
write_parquet
Other ingest:
cloud_ingest_record()
,
disk_ingest_record()
,
ingest_FEMA6_BLE()
,
ingest_into_database()
Examples
if (FALSE) { # \dontrun{
if(interactive()){
#EXAMPLE1
ras_dbase <- "./inst/extdata/sample_output/ras_catalog/"
host_path = file.path(".../ras_catalog/_temp/supercustommodel/", fsep = .Platform$file.sep)
insert_manual_record(in_file = file.path(host_path, "Ohio2018a.prj",fsep = .Platform$file.sep),path_to_ras_dbase = ras_dbase,xs_shapefile = file.path(host_path, "Ohio2018a.RASexport_xs_z.shp", fsep = .Platform$file.sep),river_shapefile = file.path(host_path, "Ohio2018a.RASexport_stream.shp", fsep = .Platform$file.sep),geometric_realization_override = "g02",code_to_place_in_source = "RFC",proj_override = file.path(host_path, "Ohio2018a.RASexport_stream.shp", fsep = .Platform$file.sep),is_quiet = FALSE,is_verbose = TRUE,overwrite = FALSE)
}
} # }