#Set up enviornment variables putenv("DV_HOME","/usr/share/davinci") putenv("DV_LIB",$DV_HOME+"/library") putenv("DV_EX",$DV_HOME+"/examples") uname=syscall("uname")[,1] if(uname[:6]=="Darwin") { os="mac" } else if(uname[:3]=="Win") { os="win" } else if(uname[:5]=="Linux") { os="linux" } else { os="other" } putenv("DV_OS",os) #load the library functions source($DV_LIB+"/utils.dvrc") source($DV_LIB+"/image_stretch.dvrc") source($DV_LIB+"/plot_tools.dvrc") source($DV_LIB+"/data_manipulation.dvrc") #Functionality of the themis_science dvrc will be reduced if not #used within the Mars Space Flight Facility source($DV_LIB+"/themis_science.dvrc") source($DV_LIB+"/misc.dvrc") source($DV_LIB+"/general_science.dvrc") source($DV_LIB+"/mosaic_tools.dvrc") source($DV_LIB+"/spectral_tools.dvrc") source($DV_LIB+"/v_mosaic.dvrc") #load the thm module load_module("thm") #set up default variables pi = 3.141592653589 ignore = -32768; library_version()