vfld.jl
This is a small utility program for working with vfld files written in Julia. It is work in progress and more commands and options may come along the way. The list below is updated whenever new commands are available.
How?
You can set this package up from the Julia REPL with the add
command and the url of this repository:
] add https://github.com/khintz/vfld.jl
Or you can clone the project and instantiate
dependencies with the Julia REPL:
pkg> instantiate
The main script to run is vfld_util.jl
within the scr/
directory.
The Julia source code is found within src/
From within the scr/
directory you can do:
julia --project=$PWD/.. vfld_util.jl --help
to get a help message
What can vfld.jl do?
- Convert vfld files into a single SQLite file, eg:
julia --project=$PWD/.. vfld_util.jl vfld_to_sqlite --starttime=2013-10-01-00 --endtime=2013-10-02-00 --file-prefix=vfld --indir=/data/vfld/ --sqlite-file=vfld_20131001.db
This will search for all files within /data/vfld/
which starts with vfld
and is valid between starttime
and endtime
.
NOTE: It is assumed the vfld files end with a date string with 12 characters as usual, eg: vfldyyyymmddHHMM, otherwise the date can not be obtained and it will fail.
NOTE: When running vfld.jl the first time every module gets compiled, which takes a few seconds extra. This is only the first time it runs.