DDB Tools
DDB2RAW
Program Description:
Allows the user to convert a Jumpstart Collection Dynamic DataBase (DDB) complex stripmap image to RAW binary format + ASCII Phoenix Header. The output data type can be either the original complex form, 32-bit float magnitude, or 8-bit magnitude. The user can output the whole image or a specific portion (tile) of the image.
Program Usage:
js_ddb2raw -i <infile> -o <outfile> -d [0-2] -t [0-7]
Switches:
- -d[0-2] = Output datatype, 0=complex, 1=mag32, 2=mag8 (Def:1)
- -t[0-7] = Convert specific tile of data
(ONLY for images whose height >= 1024)
Description of Arguments:
- <infile> : Input (complex) Jumpstart DDB stripmap image filename
- <outfile> : Output Sunraster image filename
- -d[0-2] : Output datatype switch
- -t[0-7] :
Optional single tile conversion switch
Files Necessary to Compile:
- Include : none
- Library : none
- Source : js_ddb2raw.c read_switch.c
- Make : js_ddb2raw.mk (optional)
Compiling and Linking Code:
- You can compile js_ddb2raw either from the command line or by using the included makefile (note: .mk file).
- a) Command line Method:
- % gcc -c read_switch.c
- % gcc -o js_ddb2raw js_ddb2raw.c read_switch.o -lm
NOTE: You can use other C compilers. Edit .mk file as necessary.
- b) Using the Makefile [js_ddb2raw.mk]:
Perform the following steps:
- % make -f js_ddb2raw.mk
(Creates executable: js_ddb2ras)
- % make -f js_ddb2raw.mk clean
(Deletes object code )