create_mesh_files_from_nc: Create Mesh Files from NetCDF File

View source: R/create_mesh.R

create_mesh_files_from_ncR Documentation

Create Mesh Files from NetCDF File

Description

This function creates mesh files from a NetCDF file. Note that there is a two stage process where only a *_TEMP.gpkg file is output first, allowing the manual identification of open boundary elements which are then saved to a .csv and provided to the 'open_elems_csv' argument

Usage

create_mesh_files_from_nc(nc_file, open_elems_csv, out_dir, domain)

Arguments

nc_file

Character. The path to the NetCDF file.

open_elems_csv

Character. The path to the CSV file containing open boundary elements. Default is NULL.

out_dir

Character. The output directory where the mesh files will be saved.

domain

Character. The domain name for the mesh.

Value

Character. A message indicating the status of the mesh creation.

Examples

create_mesh_from_nc(nc_file="path/to/nc_file.nc", open_elems_csv="path/to/open_elems.csv", out_dir="~/output", domain="WeStCOMS2")

Sz-Tim/WeStCOMS documentation built on April 17, 2025, 3:10 p.m.