Versions Compared

Key

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

...

Usage: SwanPreAdapter <netcdf run file pathname relative to current working directory>

Class name: nl.deltares.swan.SwanPreAdapter

Properties

template_swan_input_file

(required)

Pathname of template swan input file to use to create swan input file. This should be either an absolute path or a path relative to the workDir specified in the netcdf run file.

swan_input_file

(required)

Pathname of swan input file to create. This should be either an absolute path or a path relative to the workDir specified in the netcdf run file.

input_spectra_file_to_convert

(optional)

Pathname of netcdf file with input spectra data that should be converted. This should be either an absolute path or a path relative to the workDir specified in the netcdf run file.

stationary_times_file

(optional)

Pathname of a netcdf file that contains a parameter with times to use for the $STATIONARY_TIMES$ tag. This should be either an absolute path or a path relative to the workDir specified in the netcdf run file. This property must be present if the $STATIONARY_TIMES$ tag is used in the template swan input file.

stationary_times_parameter

(optional)

Variable name of a parameter in stationary_times_file with data, e.g. wind_speed. The times that correspond to the data for this parameter are used for the $STATIONARY_TIMES$ tag. This property must be present if the $STATIONARY_TIMES$ tag is used in the template swan input file.

...

Usage: SwanPostAdapter <netcdf run file pathname relative to current working directory>

Class name: nl.deltares.swan.SwanPostAdapter

Notes for users
  • For all files that are written by this adapter, if the file to be written already exists, then it will be overwritten.
  • This program assumes that the model always runs in time zone GMT.
  • This program writes log messages to a file called swan_post_adapter.log in the workDir specified in the netcdf run file.
  • This program uses the information in the specified netcdf run file as input and uses this information to do the following actions:
    1. Convert output scalar time series:
      All .TAB files in the workDir specified in the netcdf run file will be converted to files in netcdf format with the same path and name but different extension (.nc). For this conversion the mapping between coordinates and locationIds from the corresponding .PNT files is used. This program assumes that for a given .TAB file the corresponding .PNT file has the same path and name as the .TAB file, only a different extension. This program assumes that the locations in the .TAB file and in the corresponding .PNT file are in the same order. This program assumes that the last part between double quotes on a given line in a .PNT file is the locationId. This program assumes that the coordinates in a given .TAB file are in degrees in the WGS 1984 coordinate system. If no .TAB files are present in the specified workDir, then this step does nothing.

...