NWPconf  Version1.0
Functions
arkilocal.sh File Reference

module with functions for working with a local file-based arkimet archive. More...

Functions

 arkilocal_setup ()
 Initialise the environment for using a local file-based arkimet dataset. More...
 
 arkilocal_create ($1)
 Creates a local file-based arkimet dataset. More...
 

Detailed Description

module with functions for working with a local file-based arkimet archive.

This module provides functions for managing a local, file-based and serverless arkimet archive. The archive will have lower performances and flexibility than a real arkimet archive based on an arkimet server, but all the archiving and retrieving procedures can work almost transparently. It is useful mainly for using the functions designed for continuous assimilation defined in the arkiana.sh module. The environment variable $ARKI_DIR must be exported before sourcing the module, it indicates the root directory of the archive, moreover at least one of the $MODEL_ASSIM_GP, $MODEL_FCAST_GP, $MODEL_INTER_GP, $MODEL_RADAR_GP variables indicating the generating processes of assimilation, forecast and interpolated from parent model grib files should be set.

Function Documentation

arkilocal_setup ( )

Initialise the environment for using a local file-based arkimet dataset.

Creates a local file-based arkimet dataset.

This function is implicitly called when the module is sourced, it sets the variables $ARKI_SCAN_METHOD, $ARKI_CONF and $ARKI_DS_* internally used by the dataset creation function and by the archiving and retrieving functions.

This function creates the directory tree and the basic

arkilocal_create (   $1)

Creates a local file-based arkimet dataset.

This function creates the directory tree and the basic configuration files required for working with a local file-based and serverless arkimet archive rooted in the directory specified by $ARKI_DIR (which must contain only a local path specification). It creates the datasets <TYPE> based on the settings of the variables $MODEL_<TYPE>_GP inserting a filter with the proper generating process in each configuration. It creates also the error dataset, required by arkimet, and merges all the config files into a single configuration file. It also sets the variable $ARKI_SCAN_METHOD to arki-scan and $ARKI_CONF to the required value (see putarki.sh::putarki_archive() ) and exports the $ARKI_DS_<TYPE> variables pointing to the proper dataset.

Parameters
$1-c for cleaning the contents of a previous dataset (erases $ARKI_DIR directory!)