wrtevt=.true.and in C with a line like:
adcs_.wrtevt = 1;
Usually you will put this line at the end of a suitable if statement. Something like:
if (e1.gt.10.and.e2.gt.10) wrtevt=.true.
There's no harm in leaving this statement in when you're not filtering data. If no write file has been opened in Sunsort then setting wrtevt has no effect.
If you are writing to tape, you should either mount an existing tape or initialise a new tape. Select Write Media: Tape, then select the correct drive, enter the volume label in the field marked Write vol and press either Mount to mount an existing tape, or NewVol to initialise a new tape. Note that initialising a tape will erase any information already on it.
If you are writing to disk, then just select Write media: Disk.
You then need to open the write file. Enter the file name in the field marked Write file and press Open. From now until when you close the output file, any events that get marked whilst sorting will be written to the output file. Just read input files in the usual way.
tapemount volume_name_or_NONANSI drive_number wThe command to initialise a new tape is:
newtape volume_name drive_numberTo open a file (on disk or tape) for output do:
wopen medium filenamewhere medium is one of tape or disk.
To close the output file use the wclose command. This takes an optional argument which is the medium you wish to close but this is ignored at the moment so may be safely omitted.
A typical sequence of commands is:
wopen disk carbon+carbon open tape run03 sort 0 -1 close open tape run04 sort 0 -1 close wclose