Versions Compared

Key

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

...

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_wind_file_to_convert(optional)Convert wind (with u, v component) in regular grid from NetCDF to SWAN ascii format. The path to the wind NetCDF file should be specified in the value section. The conversion is done without grid rotation, thus the orientation of the grid in ascii is identical to that in NetCDF. In SWAN .swn file, one should specify how this wind grid should be read by adjusting 'idla' (e.g. idla=3, read the grid starting from the low-left corner). 'windy.ser' is required in SWAN .swn file. Conversion examples are attached.
View file
nameoverallwindy.swnser
height150
View file
namewindywindyfield_18071203.serwnd
height150
View file
namewindyfieldSWAN_18071203wind.wndnc
height150
View file
nameSWAN_windtemplate.ncswn
height150

input_spectra_file_to_convert

(optional)

Adapter can only import data on WGS84 coordinates. Pathname of netcdf file with input spectra data that should be converted from Cartesian to WGS84. 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.

input_state_file_format

(optional)

Deprecated, do not use. Format of the input state file (hotfile). Can be e.g. "NETCDF" (NetCDF format), "FREE" (Ascii format) or "UNFORMATTED" (binary format). If not specified, then NETCDF is used by default.

netcdf_files_convert_coordinates_attribute

(optional)Property to be used when the input data for SWAN is defined on a Cartesian grid. Property replaces coordinate attributes in netcdf file from "lat lon" to "x y". Configure as "value" a list of filenames to be converted, separated a ; symbol. List of filenames should be in the input dir (next to the work dir). For these set of files, new files will be created "<name>_adapted.nc" where the coordinate attributes "lat lon" are replaced by "x y".
   

...