BINBYTE byte_num
Specify the number of bytes per dataword for files to be read with GETBINARY. If byte_num is -sizeof(float), the binary data are treated as float (i.e., byte_num = -4). Other reasonable values would be 1, 2, or 4.
BINSIZE #columns #rows #header_bytes swap_bytes_flag
Specify parameters for files to be read with GETBINARY.
CLOSE
Closes the file opened with the CREATE command.
COMPOSITE <filename>
Create a composite image by appending the data in the specified file to that which exists in the current image buffer. The width of the specified file must be the same as that of the current image. The OPENFLAG command works in conjunction with the COMPOSITE command in the same way that it does with the GET command.
COMTMP n
Create a composite image by appending the data in the temporary image to that which exists in the current image buffer. The width of the specified file must be the same as that of the current image.
CONCATENATE
Saves the current data buffer to the file opened with the CREATE command.
CREATE <filename>
Opens a file with the specified name, saves the current data and format information, and leaves the file open. Subsequently, the CONCATINATE command can be used to add more data to the open file.
FRDATA <filename>
Read formatted data (in the format written with FWDATA).
FRDATMAT <filename>
Reads the data in a delimited text file. Use this to import 2D arrays from Excel or Matlab (for example). Can also read files written with the FWDATM command. Format is a matrix of values as follows:
first row of data values
second row of data values
.
.
.
FWDATA <filename>
Writes the data in the current buffer as a tab-delimited text file. Format is as follows:
image_width image_height
1 first data value
2 second data value
.
.
.
FWDATMAT <filename>
Writes the data in the current buffer as a tab-delimited text file. Format is a matrix of integer values as follows:
first row of data values
second row of data values
.
.
.
GET <filename>
Loads the data from the specified file into the current image data buffer. The “Get Data Files” prefix and suffix are used.
GETBINARY <filename>
Read in a binary file. Use BINSIZE to specify the format of the binary file.
GETBLUE <filename>
Open the blue part of a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). This uses Dave Coffin's very slick dcraw.c code. This command can also open the blue plane of “.jpg” files.
GETFIT <filename>
Loads an image file in FITS format into the current image data buffer. Assumes the extension is .fts (ignores the suffix in get file prefs)
GETGRN <filename>
Open the green part of a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). This uses Dave Coffin's very slick dcraw.c code. This command can also open the green plane of “.jpg” files.
GETPIC <filename>
Opens an image file in PICT format. It is not automatically moved to the image buffer. Use GWINDO if you want this. NOT IMPLEMENTED IN VERSIONS BEYOND 2.0.6
GETRED <filename>
Open the red part of a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). This uses Dave Coffin's very slick dcraw.c code. This command can also open the red plane of “.jpg” files.
GETRGB <filename>
Open a digital camera RAW image specified by the filename. The extension should be given in the filename (it does not use the suffix). The red, green, and blue images are staked one on top of the other in a single image. This uses Dave Coffin's very slick dcraw.c code. This command can also open “.jpg” files.
GETSETTINGS [filename]
Gets settings from the specified file (uses the appropriate prefix and suffix specified in the preferences). If no filename is given, OMA Settings from within the oma application are loaded.
GTIFF <filename> [n]
Loads the file specified in 'filename' into the OMA image buffer. Three-plane, 8-bit per pixel images can be loaded (use DRGB for color display). Files up to 1-bit grey scale can be read. The optional argument [n] (default=0) specifies the page number (IFD) of the image to be read from TIFF files that have more than one image within a file. The first IFD is number 0.
The number of samples per pixel is returned as variable command_return_1.
KRECSV <filename>
Saves a subset of the current data buffer in a specified file. The subset is specified by the current selection rectangle.
KRRGB <filename>
Saves a subset of the current rgb data buffer in a specified file. The subset is specified by the current selection rectangle.
OPENFLAG flag
flag=1 specifies that files opened with the GET and COMPOSITE commands should not be closed after the first data set is read in, but left open. Subsequently, GET or COMPOSITE commands can be executed with no argument, causing the next in a series of images stored in the single file to be read into the data buffer. flag=0 disables this option and is the default mode.
PREFIX [fileprefix]
Specifies a “prefix” to be added to all filenames accessed through keyboard commands. This can be used to specify a default “/disk/ folder/subfolder/”. If no prefix is specified, the folder containing the oma program is the used as the default directory.
SATIFF <filename>
Converts the contents of the OMA Image buffer to 8 bit unsigned data and then uses the LibTIFF TIFFWriteEncodedStrip function to save the data to a TIFF image specified on the command line. The 'save' file prefixes are used. A “.tif” extension is automatically appended to the filename.
SATIFFSCALED min max <filename>
Convert image to 8 bit and save as a Greyscale TIFF file. Uses the specified min and max for scaling rather than the min and max of the image in the buffer. Results will be between 0 - 255. Depending on min and max, the image may be clipped or the full 8-bit dynamic range may not be used.
SAVE <filename>
Saves the current data buffer to the specified file.
SAVPDF <filename>
Saves the contents of the active window to a pdf file. This works for false color as well as linegraphics windows.
SAVSETTINGS [filename]
Saves the current settings to the specified file (uses the appropriate prefix and suffix specified in the preferences). If no filename is given, OMA Settings are saved within the oma application.
SUFFIX [filesuffix]
Specifies a “suffix” or extension to be added to all filenames accessed through keyboard commands. If no suffix is specified, a null suffix is used.
SWAPBYTES flag
The SWAPBYTES command sets or clears a flag that determines if the GET and SAVE commands swap byte order on data read in or saved. This is included for cross-platform compatibility between Mac and Intel worlds. The flag should normally be set to 0 unless you are migrating data from one platform to another. This only affects GET and SAVE -- all other commands that use files leave the byte order alone.
UPREFX type
Force use of prefix/suffix specified by 'type.' Possible cases for 'type' include the following:
s Use Save File prefix and suffix
g Use Get File prefix and suffix
d Use Default prefix and suffix