Magellan Image Macro Tricks

By Duncan Young

as of 17-10-99

 

All the below functions are found under the Special Menu in Image in this order:

Generics

macro 'Open Macros [O]';

Opens up the macro file for editing.

macro 'Rename Image'

Renames image.

macro 'Draw Vertical Calibration Bar';

Draws an annotated scale bar based on the color scheme and calibration of your chosen image - File > New

Click on GxDR image

Special > Stretch Topo

Edit > Propagate > Look Up Table

. . . > Density Calibration

Make a rectangular selection in the new window

Special > Draw Vetical Calibration Bar

macro 'Normalize to 0 to 255';

Performs a permanent 'best' stretch on whole image.

macro 'PosterizeÉ';

'Contours' by specified number of greyscale steps.

macro 'Make Mosaic';

'Pixelizes' image.

macro 'Draw Grid...';

Draws user specified grid on image using line and color specifications found in the tool box.

GxDR Stuff

macro 'Get Topo Framlet';

Imports uncalibrated GTDR sinusodal framlets. Figure out what framlet you want, and enter at the prompt the number 01,02,03...etc. To calibrate see below.

macro 'Get Slope Framlet';

Imports calibrated GSDR sinusodal framlets. See above.

macro 'Get Fresnel Reflectivity Framlet';

Imports calibrated GREDR sinusodal framlets. See above.

macro 'Get Emissivity Framlet';

Imports calibrated GEDR sinusodal framlets. See above.

macro 'Calibrate Magellan Topo > Radius';

Calibrates an unstretched GTDR image with respect to the center of Venus (in km).

macro 'Calibrate Magellan Topo > MPR';

Calibrates an unstretched GTDR image with repect to mean planetary radius (in km).

macro 'Stretch Magellan Topo';

Stretches Magellan nonSAR image while retaining correct calibration - seems to fail with MPR calibration.

macro 'Smooth NonSAR Data'

Smooths to 10 km2 effective resolution with bilinear interpolation, applies a median filter to remove outlying pixels, and scales the image to 4.641 km/pixel.

macro 'Forge Me in Degrees';

'Forges' non-SAR data from sinusoidal framlets - input is framelet number, centerpoint long - lat (NB you do not have to indicate whether the area is north or south of the equator; Image works this out from the framlet you have), and dimensions in degrees of long - lat. Use for matching VMAP and FMAP data.

Special > Get ??? Framlet

Special > Calibrate Magellan Topo > ???

Special > Smooth NonSAR Data

Special > Forge Me in Degrees

If a piece of the resulting image is missing, get another framlet and repeat the process. Once you have all the fragments, activate the Paste Control window ('open apple' + Y), Select All in one image, Copy, and Paste into another image. Go to the Paste Control window and select 'Replace'. Repeat until complete.

The resulting data can be exported as a text file and read in the Kansas Geological SurveyÕs contouring program Surface III as a Z-value matrix. Find out how big the image is in pixels using Image's Get Info command, prior to using Surface, and tell Surface the dimentions when loading the data.

macro 'Forge Me in km';

'Forges' non-SAR data from sinusoidal framlets - input is framelet number, centerpoint long - lat, and dimensions in km. For procedure see above.

MIDR Things

macro 'Get MIDR Browse [D]';

Imports MIDR browse images.

macro 'Grid MIDR Browse [X]';

Equivalent to putting a plastic framlet grid on the MIDR browse.

macro 'Launch MIDR framlet from browse [M]';

Press 'M' and click on the area you are interested in - the relevent framlet will appear.

 

 

FMAPping

macro 'Get FMAP browse [B]';

Imports FMAP browse images.

macro 'Grid FMAP Browse [G]';

Plots the location and name of each availible framlet for this region on the browse.

macro 'Launch FMAP framlet from browse [J]';

Press 'J' and click on the area of interest - the relevent framlet will appear.

Macro 'Custom FMAP Framlet [C]';

Press 'C' and click on the browse and a 2x2 degree framlet will be generated centered at the indicated position. For use when features lie on FMAP framlet edges.

macro 'Get FMAP framlet';

Imports FMAP framlets.

3D Work and Play

macro 'Synthetic Stereo';

Given a calibrated GTDR image (see above) and a geographicaly matching SAR, creates a RGB Synthetic Stereo image stack and an 8-bit preview anaglyph. Just have both open, with the SAR window active, when you activate the macro. Distortion values of 1 or 2 are usally fine. Kill the anaglyph (the image with the colors) and save the stack (the greyscale image). The stack will open in Photoshop as a 24-bit anaglyph. NB It takes a couple of minutes to see the 3D in its full glory - patience will be rewarded.