Creating a code file
Creating a code file
A code file is a file which contains information pertaining to the possible data assignment values for a given image. It is an
ASCII text file containing general categories and individual codes and species identifiers. The file shallow_coral_codes.txt
is supplied with CPCe; however, users can easily create customized code files for their own use, as described below.
There are two ways you can create a customized code file:
One is by using the GUI-based utility.
The other is to manually create the ASCII file. With this method, you simply create an ASCII file which follows the format
described below. The format of the coral code file is very specific. Errors in the formatting will result in the program either
not running, or delivering incorrect results. Care should be taken to follow the format specifications exactly.
The format of the coral code file is as follows:
Number of general categories
General (major) categories:
Category symbol, Category Name
Individual codes and/or identifiers:
Coral code, coral description, category name
NOTES,NOTES,NOTES (this line separates the coral names from the disease descriptors).
For each Notes descriptor:
Notes code, description, NA (indicating not applicable)
Example
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4
"C","Coral"
"G","Gorgonians"
"S","Sponges"
"TWS","Tape, wand, shadow"
"AA", "Agaricia agaricites","C"
"AC", "Acropora cervicornis","C"
"AF", "Agaricia fragilis","C"
"SPO", "Sponge","S"
"SR", "Siderastrea radians","C"
"PRELA", "Plexaurella","G"
"PSDP", "Pseudoplexaura","G"
"PSPT", "Pseudopterogorgia","G"
"TAPE", "Tape","TWS"
"WAND", "Wand","TWS"
"SHAD", "Shadow","TWS"
NOTES,NOTES,NOTES
"ASP", "Aspergillus","NA"
"BL", "Bleached coral point","NA"
"BBD", "Black Band Disease","NA"
"OD", "Other disease","NA"
"PLA", "Plague, Type II (White Plague, Type II)","NA"
"WBD", "White Band Disease","NA"
"YBD", "Yellow Blotch Disease","NA"
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
To visually separate codes with a black box, you can insert blanks by entering "Blank","Blank","Blank" where desired.
Due to the requirements of the associated Excel spreadsheets: