#!/bin/csh
# Standard SED (from asu)

# Define the variables for sed4.csh
#set verbose
set o     = `dirname  "$theTab"`
set Oname = `basename "$theTab" | acut -d= -f1 | tr _ ' '`
set Sname = `basename "$theTab" | acut -d= -f2 | tr _ ' '`

if ($o =~ PN:*) then
    set color = DarkOrange
else
    set color = red4
endif

# Note that SimbadName does not always exist...
if ("$Sname" == "") then
    set title     = "SED of {\fg{blue3}$Oname} ($o)"
else
    set title     = "SED of \objS{$Sname}{$Oname} ($o)"
endif
set asu_query = ( -source=$theCat  Name="$Oname" )
set colors    = 1=$color
set errflux   = 0.1	# default flux error

# Use standard SED plot
source $Vroot/lib/graph/sed4.csh
exit $status

