expim [ parameter=value ] [ inputfile outputfile ] expim [ parameter=value ] [ inputfile ... directory ]
Parameters are: image_format, jpeg_quality, image_var, image_colors, color_palette, draw_indexes, draw_names, display, rgb.txt_path .
expim converts a Terascan Dataset (TDF) image into Sunraster, Encapsulated Postscript, PNG, JPEG, PPM, or TIFF, MIFF (Metoc TIFF), GEOTIFF, Marta PCX, and GIF formats. This command is useful for automatic generation of images in different formats. There exists public domain software for converting output formats to most common image formats, including GIF and XWD.
expim takes one image variable from the input dataset and produces a color-scaled output image in one of the formats mentioned above. The input variable must be byte data; to convert another word-size, use the imscale function.
expim lets you apply any of the Terascan 8-bit color palettes to the output image. It also allows overlays to be drawn in any of the colors supported by X windows. The overlays should be created and injected into the input dataset, using the xinject function.
MIFF and Marta PCX are navy formats. MIFF is essentially TIFF with a few additional tags to encode earth location and data scaling information. MIFF should be used to export data that has been remapped to Mercator, polar stereographic or Lambert conic rectangular projections.
Marta PCX is essentially a PCX without palette information and with a modified header for encoding earth location. It appears limited to exporting data from geostationary satellites that has NOT been remapped.
Because they contain earth location information, neither MIFF nor Marta PCX formats are intended for use with image data containing injected geopolitical or latitude and longitude grid overlays.
red-value green-value blue-value color-name
Color gun values must be in the range [0, 255].
In this example an AVHRR dataset is converted to a byte dataset, coast and grid metafiles are created and injected, then the dataset is exported to Sunraster format.
% imscale in/out files : char(255) ? n12.94139.2235.avhrr n12.byte include_vars : char(255) ? [] avhrr_ch3 image_colors : int ? [216] 240 max_width : int ? [1280] max_height : int ? [1024] fixed_size : char( 3) ? [no] zoom_factor : int ? [1] real_resample : char( 3) ? [yes] est_range : char( 3) ? [yes] no min_value : real ? -50 max_value : real ? 30 invert_scale : char( 3) ? [no] yes north_up : char( 3) ? [no] yes % coast output file : char(255) ? [Coast] n12.cst master_file : char(255) ? [Master] n12.94139.2235.avhrr reduce_factor : int ? [1] coast_file : char(255) ? [wdb2.cil] % llgrid output file : char(255) ? [Grid] n12.grid master_file : char(255) ? [Master] n12.94139.2235.avhrr grid_type : char( 7) ? [lines] delta_lat : real ? [1] 5 delta_lon : real ? [1] 5 % xinject in/out files : char(255) ? n12.byte n12.cst n12.grid n12.inj bg_var_name : char( 31) ? avhrr_ch3 colors_per : int ? [1] meta_colors : real( 2) ? 240 241 line_widths : int ( 2) ? [1 1] line_types : char( 15) ? [solid solid] marker_types : char( 3) ? [+ +] marker_sizes : int ( 2) ? [15 15] image_colors : int ? [216] 240 % expim in/out files : char(255) ? n12.inj n12.ras image_format : char( 10) ? [postscript] sunraster image_var : char(255) ? avhrr_ch3 image_colors : int ? [216] 240 color_palette : char(255) ? hsl256 draw_indexes : int (255) ? [] 240 241 draw_names : char( 63) ? black white
$REFDATA/palettes
There may be a name conflict with an X11 function imscale.
Last Update: $Date: 1999/02/17 11:39:18 $