Description Usage Arguments Details See Also Examples
This function generates the initial conditions file for Atlantis
1 2 3 |
b |
Number of boxes. |
z |
Number of vertical boxes (i.e. layers). |
output_file |
Name of the output_file. Defaults to init. |
timesteps |
Number of timesteps. Defaults to UNLIMITED. |
fun_groups |
Functional group in data.frame format. |
model_name |
Name of the model. Defaults to model_name. |
bgm_file |
Name of the bgm file. Include the file extension! |
start |
Specify the start date. Defaults to date(). |
timezone |
Set the timezone. Defaults to UTC. |
data |
Initial conditions data as a csv. Defaults to generate blank data. See Details. |
fill_value |
txt or CSV file (see below). Defaults to 0 or Beth's defaults. |
gen_nc |
Generate the nc binary? Defaults to FALSE and required netcdf-bin to be installed. |
keep_cdf |
Keep the readable cdf file? Defaults to TRUE. |
This function generates the initial conditions file in the Atlantis ncdf4 file format. This function can compress the resultant cdf file if gen_nc = TRUE
is set and can clean up after itself if keep_cdf = FALSE is set
. By default, gen_init
will generate empty data matrices that will be filled by the specified fill_value
if it is provided. If it is not provided, the function specifies 0 for all the user defined functional groups and uses the fill values for the required variables from the SETas_model_New example (namely, init_vmpa_setas_25032013.nc
). The function combines the essential variables in the required
data set with those specified in the functional group csv. The data CSV should have one column of data per variable. The length of each column should be either b
*1 for 2D variables or b
*z
for 3D variables. The init_data
function can be used to help create this CSV. fill_value
can at present it takes a txt file created by the ECCALbioparams Excel spreadsheet. Future implementations will allow a CSV that has two columns. First column, variable name and the second column the fillValue.
required_init
,dummy_hydro
,init_data
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.