-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
87 lines (55 loc) · 2.71 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
output:
md_document:
variant: markdown_github
---
[![Linux Build Status](https://travis-ci.org/AustralianAntarcticDivision/bgmfiles.svg?branch=master)](https://travis-ci.org/AustralianAntarcticDivision/bgmfiles)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/github/AustralianAntarcticDivision/bgmfiles?branch=master&svg=true)](https://ci.appveyor.com/project/mdsumner/bgmfiles)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/bgmfiles)](https://cran.r-project.org/package=bgmfiles)
[![Coverage Status](https://img.shields.io/codecov/c/github/AustralianAntarcticDivision/bgmfiles/master.svg)](https://codecov.io/github/AustralianAntarcticDivision/bgmfiles?branch=master)
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# BGM files for Atlantis
A raw-data package with example .bgm files (box geometry model) for Atlantis ecosystem model.
Atlantis is a deterministic, biogeochemical, whole-of-ecosystem model: http://atlantis.cmar.csiro.au/.
**PLEASE NOTE:** this is not an official source of BGM for use in Atlantis.
See https://github.com/mdsumner/rbgm for an R package to read these files and work with the box geometry.
See https://github.com/AustralianAntarcticDivision/box-geometry-models for the project that collects the files used in this package.
## Installation
Install from CRAN:
```{r,eval=FALSE}
install.packages("bgmfiles")
```
Install the develop version from Github using `devtools`.
```{r,eval=FALSE}
# install.packages("devtools")
devtools::install_github("AustralianAntarcticDivision/bgmfiles")
```
## Usage
List the available raw files available in this package.
```{r}
library(bgmfiles)
files <- bgmfiles()
print(basename(files))
```
If needed filter based on a specific string with the `pattern` argument:
```{r}
afiles <- bgmfiles(pattern = "^antarc")
print(basename(afiles))
```
This package exists as a data package to install example files, there is just one function `bgmfiles` that runs file finding functions:
```{r, eval=FALSE}
list.files(system.file("extdata", package = "bgmfiles"), pattern = NULL, full.names = TRUE, recursive = TRUE)
```
We don't need to load or attach the package to find these files, but using the installation mechanism is very convenient for R use.
# Contribute!
If you would like to contribute example BGM files or to the package:
* contribute to the repository of example files https://github.com/AustralianAntarcticDivision/box-geometry-models
* submit a suggestion or issue for this package https://github.com/AustralianAntarcticDivision/bgmfiles/issues
or just get in touch directly via email.