The Convert to ASCII menu option uses the con2asc program to convert the binary concentration file to a simple ASCII file composed of one record per grid point for all grid points where concentrations at any level are non-zero. Concentrations for multiple levels and pollutant species are all listed on the same record for each grid point. The primary purpose of the conversion is to create a file that can be imported into other applications. An illustration of the GUI menu is shown below for the sample concentration simulation.
The Concentration Setup menu determines the file name selection option on the GUI. There are some additional checkboxes that correspond to various command line conversion options.
con2asc -[options (default)]
-c[Convert entire file flag]
This option converts the entire binary input file, including all index records, to an ascii output file with the name {input file}.txt. This option corresponds to the Single File checkbox of the GUI menu. The output file format follows the binary file format record-by-record using the following format conventions.
Meteorological model and starting time - A4, 6I4
Starting time and locations - 4I4, 2F8.3, F10.1
Concentration grid and spacing - 2I4, 2F8.4, 2F8.2
Vertical grid index record - I4, 20I8
Pollutant identification record - I4, 20A4
Sample start time - 6I4
Sample end time - 6I4
Concentration record - A4, I6, 255(255E10.2)
-i[Input file name (cdump)]
-m[Minimum output format flag]
Setting this flag turns off the writing of the first output record, which is the column label field: DAY HOUR LAT LON SPECIES-LEVEL.
-o[Output file name base (Input File Name)]
The default base name for the output file is the input file name. A new output file is created for each sampling period, where the name of the file is composed of the {base name}_{Julian day}_{hour} of the sample ending time.
-z[Zero points output flag]
Setting the zero flag causes the program to output the concentration values all all grid points, including the ones that are zero.
The format of each record in the output file is given by:
Each output record is identified by the day (Julian: 1 to 365) and hour (UTC) of the ending time of each sample. The ASCII conversion of the first file generated by the sample calculation is shown below in the illustration.