#! /bin/csh -f
#
if ( $#argv == 3) then
  set outnam = $argv[1]
  set sl = $argv[2]
  set su = $argv[3]
else
  echo -n "Enter base name for existing DSS FITS images:"
  set outnam = $<
  echo -n "Lower sigma limit for RGB stretch (recommended -1): "
  set sl = $<
  echo -n "Upper sigma limit for RGB stretch (recommended 5): "
  set su = $<
endif
#
# Create RGB jpg
mJPEG -red $outnam\-DSS2IR/mosaic.fits $sl\s $su\s -green $outnam\-DSS2R/mosaic.fits $sl\s $su\s -blue $outnam\-DSS2B/mosaic.fits $sl\s $su\s -out DSS2-BRIR.jpg
#
\ls -ltr DSS2-BRIR.jpg
echo "Done!"

