Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The DCM can be executed as a script from the command line or as a scheduled task (see Figure 2 for the location of these files).

  • On a Windows machine the DCM is run using the BATCH file: DataConversion.bat
  • On a Linux machine the DCM is run using the bash script file: 

...

  • DataConversion.sh

Both scripts require the same arguments:

  • 1st argument:   Name of region directory containing all configuration files (DataConversion_SA). If the region directory is not located in the same directory as the script then a path is required.
  • 2nd argument:  Name of the DCM configuration file (here we use the dataconversion.xml). If the DCM configuration file is not located in the root of the region directory then a path is required.
  • 3rd argument:   Path to the directory containing the Delft-FEWS binaries (bin). Can be omitted if the script is executed from within the ‘bin’ directory.

Running DCM as a script from command line (example).

Figure 4: Screenshot of the command prompt when running the DCM on a Windows machine.

...