Facilities for working with Atlantis box-geometry model (BGM) files. Atlantis is a deterministic, biogeochemical, whole-of-ecosystem model. Functions are provided to read from BGM files directly, preserving their internal topology, as well as helper functions to generate 'Spatial' objects. This functionality aims to simplify the creation and modification of box and geometry as well as the ability to integrate with other data sources.
rbgm allows reading of geometry from BGM files, either in raw coordinate form or as Spatial objects. The aim is to make all of the following straightforward:
Install from CRAN:
Install the development version from Github using
Install, use, test the package, and let me know!
Please use the Issues tab on GitHub to add feature requests and bug reports: https://github.com/AustralianAntarcticDivision/rbgm/issues/
use Pull Requests if you have changes you'd like to contribute.
See the package vignettes for examples.
spdplyr in Suggests, thanks to CRAN.
added new function 'read_bgm' as a more obvious version of the original read function 'bgmfile'
removed names from component sp lists to avoid troubles in sf causing troubles in mapview
added vignettes, examples, more doc
removed some old functions
cleaned up for CRAN
fixed a gnarly bug due to lexicographic sorting on a list! Lines from faceSpatial were coming out in the sorted order of "face0", "face1", "face10", "face30" etc.
renamed "leftbox" and "rightbox" to "left" and "right"
readme includes all example files in bgmfiles
new example files added
added functions pointSpatial and nodeSpatial
new function bgmfile to replace deprecated read_bgm
new tests and changes to capture Guam_utm1 variant