gfdlvitals.cli_db2nc module

Command line utility to convert SQLite to NetCDF

gfdlvitals.cli_db2nc.arguments()

Function captures the command-line arguments passed to this script

gfdlvitals.cli_db2nc.check_file(filepath, clobber=False)

Checks if output file exists. If clobber set to True, the existing file is removed

gfdlvitals.cli_db2nc.main()

Entry point for the db2nc command

gfdlvitals.cli_db2nc.tables_and_years(dbfile)

Function to get list of variables and years in a .db file

gfdlvitals.cli_db2nc.write_nc(dbfile, outfile, tables, years, clobber=False, ncformat='NETCDF3_CLASSIC', verbose=False)

Writes output to a netCDF file