Scroll to navigation

DBADB(1) General Commands Manual DBADB(1)

NAME

dbadb - Manage the DB-ALLe database

SYNOPSIS

dbadb [command] [options] [args...]

DESCRIPTION

It allows to initialise the database, dump its contents and import and export data using BUFR, or CREX encoding.

dbadb always requires a non-switch argument, that indicates what is the operation that should be performed:


Print a help summary.

Print this manpage.
dump [options] [queryparm1=val1 [queryparm2=val2 [...]]]

Dump data from the database. Query parameters are the same of the Fortran API. Please see the section "Input and output parameters -- For data related action routines" of the Fortran API documentation for a complete list..

List the stations present in the database. Query parameters are the same of the Fortran API. Please see the section "Input and output parameters -- For data related action routines" of the Fortran API documentation for a complete list..

Reinitialise the database, removing all data. Reinitialisation is done using the given report code description file. If no file is provided, a default version is used.

Perform database cleanup operations. The only operation currently performed by this command is deleting stations that have no values. If more will be added in the future, they will be documented here..

Update the report information table. Update the report information table with the data from the given report code description file. If no file is provided, a default version is used.

Import data into the database.

Export data from the database. Query parameters are the same of the Fortran API. Please see the section "Input and output parameters -- For data related action routines" of the Fortran API documentation for a complete list.

The database is specified with --url or with the DBA_DB environment variable.


Delete all the data matching the given query parameters. Query parameters are the same of the Fortran API. Please see the section "Input and output parameters -- For data related action routines" of the Fortran API documentation for a complete list..

Print information about the database.

OPTIONS

dbadb follows the usual GNU command line syntax, with long options starting with two dashes (`-').

Options used to connect to the database

alias of --url, used for historical compatibility
DSN, or URL-like database definition, to use for connecting to the DB-All.e database (can also be specified in the environment as DBA_DB)
wipe database before any other action

Options used to filter messages

match messages with the given data category
match BUFR messages with the given data subcategory
match CREX messages with check digit (if 1) or without check digit (if 0)
match only messages that can be parsed
match messages with the index in the given range (ex.: 1-5,9,22-30)

Option for command dump

-?, --help
print an help message
verbose output

Option for command stations

-?, --help
print an help message
verbose output

Option for command wipe

-?, --help
print an help message
verbose output
just remove the DB-All.e data and tables

Option for command cleanup

-?, --help
print an help message
verbose output

Option for command repinfo

-?, --help
print an help message
verbose output

Option for command import

-?, --help
print an help message
verbose output
format of the input data ('bufr', 'crex', 'csv', 'json')
write unprocessed data to this file
overwrite existing data
force data to be of this type of report
Prefer speed to transactional integrity: if the import is interrupted, the database needs to be wiped and recreated.
do not import data attributes
merge pseudoana extra values with the ones already existing in the database
import messages using precise contexts instead of standard ones
only import variables with the given varcode(s)

Option for command export

-?, --help
print an help message
verbose output
force exported data to be of this type of report
format of the data in output ('bufr', 'crex')
template of the data in output (autoselect if not specified, 'list' gives a list)
dump data to be encoded instead of encoding it

Option for command delete

-?, --help
print an help message
verbose output

Option for command info

-?, --help
print an help message
verbose output

TEMPLATE NAMES

This is a list of possible template names for the --template switch:


ACARS (autodetect)

ACARS ECMWF (4.145)

ACARS WMO

AIREP (autodetect)

AIREP ECMWF (4.142)

AMDAR (autodetect)

AMDAR ECMWF (4.144)

AMDAR WMO

Buoy (1.21)

Generic (255.0)

Metar (0.140)

pilot (autodetect)

Pilot (2.91)

Pilot (2.1, 2.2, 2.3)

Pollution (8.171)

Synop ship (autodetect)

Synop ship (abbreviated) (1.9)

Synop ship (auto) (1.13)

Synop ship (normal) (1.11)

Synop ship (reduced) (1.19)

Synop ship (second record) (1.12)

Ship WMO

Synop (autodetect)

Synop ECMWF (autodetect) (0.1)

Synop ECMWF land auto (0.3)

Synop ECMWF land (0.1)

Synop ECMWF land high level station (0.1)

Synop WMO (0.1)

Temp (autodetect)

Temp ECMWF (autodetect)

Temp ECMWF land (2.101)

Temp ECMWF ship (2.102)

Temp radar doppler wind profile (6.1)

Temp ship (autodetect)

Temp WMO (2.101)

WMO style templates (autodetect)

--template=list will also print the list.

AUTHOR

dbadb has been written by Enrico Zini <enrico@enricozini.com> for ARPA Emilia Romagna, Servizio Idrometeorologico.

April 10, 2020