User:Nathanlkoch/Astro

From Gentoo Wiki
Jump to:navigation Jump to:search

Astronomy / Astrophysics

Astronomy

Aladin Software Suite

Aladin Software Suite is a robust software package used by Astronomers world wide. GPL Software provided by the University of Strasbourg and the Open Source Community.

It can be used to load open public access datasets provided by the Astronomy community and International Space Agencies. It covers almost the entire Spectrum, Catalog, and Scientific data regarding celestial Objects.

Installing Aladin

Download and install Java Runtime.

root #emerge --ask --verbose dev-java/openjdk

Download Aladin

This will Download the Stable and Beta Branches of Aladin along with the Shell Script for Launching. It is highly recommended to change the available RAM allotment for the package.

user $nano Aladin
CODE Aladin
#!/bin/sh

# Aladin Bourne shell launcher 
# P.Fernique [CDS] - F.Ochsenbein [CDS]
# V1.1 - oct 2010
# V1.0 - april 2009

# JAVA memory max allocation (in Mb)
mem=5024

# Via a symbolic link ?
prog=$0
while test -h $prog; do
    prog1=`ls -l $prog | awk '{print $NF}'`
    if test `expr $prog1 : /` -gt 0; then       # Absolute symlink
        prog="$prog1"
    else
        prog=`dirname $prog`/$prog1             # Relative symlink
    fi
done

# Aladin launch
java -Xmx${mem}m -jar `dirname $prog`/AladinBeta.jar -script="setconf Dir=`pwd`;" $*
res=$?

# Pb1: Aladin.jar not found
if [ $res = 1 ]; then
   echo "Aladin and Aladin.jar must be in the same directory"
   
#Pb 2: JAVA not jound
else 
   if [ $res = 127 ]; then
      jvminstall="http://www.java/download"
      browser="google-chrome-beta"
      echo "Java Runtime environment not found"
      echo "=> Fix your path or install it ($jvminstall)"
      for w in $browser; do
         $w -remote openURL\($jvminstall\) 2> /dev/null
         if [ $? = 0 ]; then
            exit 0
         fi	 
      done
      for w in $browser; do
         $w $jvminstall 2> /dev/null
         if [ $? = 0 ]; then
            exit 0
         fi	 
      done
   fi
fi

Here you will see I changed the #Aladin launch function to load AladinBeta.jar instead of Aladin.jar. I changed my RAM allotment to 5GB and changed my default browser to google-chrome-beta. Now simply launch the application and you are good to go.

user $sh Aladin

Astrophysics