mbm_multicopy
Section: MB-System 5.0 (1)
Updated: 3 June 2013
Index
NAME
mbm_multicopy - Apply mbcopy to all files referenced through a datalist using parallel processes. As with mbm_copy, the MB-System file suffix convention is used to name the output files.VERSION
Version 5.0SYNOPSIS
mbm_multicopy -Foutputformat -Idatalist [-H -C -T -V -Xnprocesses]DESCRIPTION
mbm_multicopy is a macro used to copy large numbers of swath data files from one data format to another using the program mbcopy. This macro is the same as mbm_copy except that it can execute more than one instance of mbcopy simultaneously.
The input is a datalist file referencing all of the target swath files. The output swath file format is specified with the -F option. If the output swath file format is not specified, the output format will be the same as the input format.
The macro identifies a filename root for each input swath file. For files with recognized filename suffixes (e.g. ".mb61" for a format 61 file), the filename root is the part of the filename that comes before the suffix. For files without a recognized suffix, the filename root is the entire filename. So, for a format 57 data file called "0007_20020425_060531.mb57", the filename root is "0007_20020425_060531". For a format 121 file named "009_1659", the filename root "009_1659".
The output filenames are automatically constructed by adding the standard MB-System file suffix to the filename root. This suffix is ".mbXXX" where XXX is the two or three digit format id number. In the event that the output filename is the same as the input filename (likely only if the -F option is not used to set the output format), a "c" will be placed at the beginning of the output file suffix, making it "c.mbXXX".
The -Xnprocesses option sets the number of parallel processes that can be started by mbm_multicopy. In general, the most efficient (fastest) execution of the overall command will be achieved when nprocesses equals the number of available CPUs or cores.
The -T option causes this macro to print out the mbcopy commands it will execute without actually executing them. This test option allows users to check the consequences of their command before actually running it.
AUTHORSHIP
Christian Ferreira
MARUM, University of Bremen
David W. Caress (caress@mbari.org)
Monterey Bay Aquarium Research Institute
Dale N. Chayes (dale@ldeo.columbia.edu)
Lamont-Doherty Earth ObservatorySIMPLE DESCRIPTION OF BASIC OPTIONS
Running: mbcopy -F56/57
-I0001_20020424_212920_raw.all
-O0001_20020424_212920.mb57
Running: mbcopy -F56/57
-I0002_20020425_011607_raw.all
-O0002_20020425_011607.mb57
Running: mbcopy -F56/57
-I0003_20020425_022926_raw.all
-O0003_20020425_022926.mb57
Last Updated: 3 June 2013