Home| superdarn |src.bin|tk|tool| merge_rt Index

merge_rt

Syntax
merge_rt --help
merge_rt [-vb] [-r] [-L logname] [-if pidname] gridnames...
merge_rt -old [-vb] [-r] [-L logname] [-if pidname] gridnames...
Synopsis

Combines together multiple grid files to produce a single output file at specific intervals.

Options
--helpprint the help message and exit.
--versionprint the RST version number and exit.
-i intervaldivide the day into interval second intervals.
-o offsetread the input files at offset seconds into each interval.
-rget the record time from the most recent record in the files, not from the record with the most data.
-L lognamelog connections and information in the file logname. By default, connections are recorded in log.rt.
-if pidnamerecord the process Identifier (PID) of the server in the file pidname. By default, the PID is recorded in pid.id.
gridnamesfilenames of the grdmap format files to combine.
-oldthe input files are in the grd format file.
Description

Combines together multiple grid files to produce a single output file at specific intervals.

The program is used for combining grid files generated from real-time data feeds. The combination of the two options "-i" and "-o", controls when the files are combined.

By default the median time of all the input records is calculated and used to "window" the output data. The output record contains the data obtained during this median time period. If the "-r" option is specified then the output record will contain data obtained during the most recent time period contained in the input files.

Examples
merge_rt -old -i 120 -o 30 rt.???.grd rt.grd

Combines together all files called "rt.???.grd" to produce a file called "rt.grd". The files are combined starting at 30 seconds after midnight and at every two minutes after that. The data recorded in the output file is from the median time of all the input records.

merge_rt -old -r rt.???.grd rt.grd

Combines together all files called "rt.???.grd" to produce a file called "rt.grd". The data recorded in the output file is the most recent contained in the input files.