USGS

Isis 2 Documentation


shadco Documentation

shadco -  Add shaded relief to color cube
SHADCO will combine a shaded relief file with a color cube algebraically
so that there will be no shift in hue (color) when the intensity or
brightness is altered by the shaded relief.

Programmer:  Kay Edwards, Q & D for Mark S. Robinson at
Northwestern University

ParmDescriptionDefault
FROM
Input color cube file name
  (default extension is .cub)
"color.cub"
FROM2
Shaded relief cube file name
  (default extension is .cub)
"shade.cub"
TO
Output color cube file name
  (default extension is .cub)
"newcolor.cub"
CRANGE
DN range of color cube
0.,100.
SRANGE
DN range of shaded relief
-.5,1.166

ADDITIONAL NOTES:

ParmDescription
FROM
Input color cube file name.  If the file extension is
omitted, then ".cub" will be assumed.  This cube must
contain three bands in the following order: red, green, blue
FROM2
Shaded relief input cube file name.  If the file extension
is omitted, then ".cub" will be assumed.
TO
Output color file with the added shaded relief.  If the file
extension is omitted, then ".cub" will be assumed.
CRANGE
DN range of input color cube.  If CRANGE does not include
all the range of the color cube, a warning will be issued at
the end of the program and there WILL be a shift in color
(hue) in the output cube.
SRANGE
DN range of shaded relief cube.  The center of SRANGE must
be at the mean of the shaded relief to maintain the same
intensity (brightness) of the color cube in the flat areas
of the cube.  SRANGE may contain less range than the
shaded relief cube.  This will increase the contrast of the
shaded relief when added to the color, but will still not
shift the color (hue) of the output cube.  If the shaded
relief cube is an output of the "shade" program the
following table shows the DN of flat areas for different
sun angles:

sun angle      mean DN (flat)
    0.              0.
   15.            .206
   30.            .333
   45.            .414
   60.            .464
   75.            .491

As of July 1999 the algorithm in "shade" will find the
brightness (DN) for the flat areas using the following
equation:  DN= sin(sun angle)/(sin(sun angle) + 1.)

Last updated: Jan 31 2005
File: pdfs2.html

Contact us online at the Isis Support Center: http://isisdist.wr.usgs.gov

ISIS Documentation Home Page