Skip to content

Month: June 2008

PALFA pulsar candidate viewer software install on rigel

PALFA viewer is in /data/psrdata/PALFA/viewers

as is our config file PALFA_config.py (subdir common_DB)

i installed several needed software pieces into /usr/share/astro and elsewhere

i installed freetds from /usr/share/astro

i downloaded to Desktop and installed tcl8.4.19 tcl8.5.3 according to its unix README

i downloaded to Desktop and installed tk8.5.3 a month later. is it incompat with above tcl? yes its readme says it is so I went back and installed new tcl8.5.3 as shown above.

i installed python 2.5.2 from desktop dnld, following directions. first i had to setenv LD_RUN_PATH /usr/local/lib in order that it could find _tkinter. the executable was placed into /usr/local/bin, whereas older ones are in /usr/bin. then i linked it to /usr/bin/python

i installed pymssql from /usr/share/astro to /usr/local/lib/python2.5/site-packages/

i installed pmw from /usr/share/astro onto rigels /usr/lib/python2.5/site-packages (see documentation via firefox at file:///usr/share/astro/Pmw.1.3.2/src/Pmw/Pmw_1_3/doc/starting.html )

i installed numpy-1.1.0 from desktop dnld.

i installed matplotlib-0.98.1 from desktop dnld. (directions are in file called “install” in distribution.) A routine’s name had been changed (I found this out in the file API_CHANGES in the distribution:

blend_xy_sep_transform(xtrans, ytrans)

was renamed

blended_transform_factory(xtrans, ytrans)

so I had to go to mywidgets.py in PALFA/viewers/common_DB/ and make this change.

I installed PIL (python imaging library) 1.1.6 from desktop dnld, creating Imaging-1.1.6

————————————————————

so note it is not accessible from other hosts but this is the only one we can access cornell database from anyway.

Joel

idl70 and goddard library upgrade

I basically followed the idl64 install instructions already posted in this blog.

Joel had received the idl70 update email from itt, and that contains the instructions on where to download the license file and the tar.gz file containing the install image.

[bduffy 2009-02-04: I’ve put a copy of the relevant license.dat and tar.gz files into /etc/secret/exchange/idl70/]

As root:

cd /usr/local

Because /usr/local/itt already existed and contained idl64, I moved the original /usr/local/itt to itt64 to move it out of the way. I will delete it later after I’m comfortable that the install went smoothly.

mv ./itt ./itt64
mkdir itt
cd itt
mv /root/idl70linux.x86.tar.gz
tar -xvzf idl70linux.x86.tar.gz
cd ./license
cp /etc/secret/idl7-license.txt ./license.dat

I then edited /usr/local/itt/license/license.dat to contain only the license entry for this box.

chmod 644 ./license.dat

cd /usr/local/itt

Then ran the ‘install’ script:

./install

Said ‘y’ to all prompts

Chose option 1) for creating symbolic links and defining the IDL environment. It created several symbolic links.

Finally the install script asked if we wanted to start “DICOM Network Services at boot time”. I answered ‘n’.

Restarted the license mgr by issuing these commands:

/usr/local/itt/idl70/bin/lmdown
/usr/local/itt/idl70/bin/lmgrd -c /usr/local/itt/license/license.dat

NOTE: On Mirzam (but not Sirius) I ran into trouble issuing the lmdown command. Turns out the problem was that the ‘IDL_DIR’ env var was set in root’s .tcshrc file and that changed the scripts behaviour. I removed the setting of the ‘IDL_DIR’ from root’s .tcshrc file and that fixed the problem.

I also removed all the old idl6.3 related /etc/*/*_idl_* files on both Mirzam and Sirius.

Tested that idl70 was installed by issuing the ‘idl’ command at the command prompt. Seemed to work.

To get the idl lm to start at boot time, I edited /etc/rc.d/rc.local and removed this line:

/usr/local/itt/idl64/bin/lmgrd -c /usr/local/itt/license/license.dat

… and added this line:

/usr/local/itt/idl70/bin/lmgrd -c /usr/local/itt/license/license.dat

Made sure all current users ~/.cshrc file contained the correct idl_setup call. They did. Here’s the proper command:

source /usr/local/itt/idl/bin/idl_setup

Then installed the goddard lib:

mkdir /usr/local/itt/idl70/lib/goddard

Downloaded http://idlastro.gsfc.nasa.gov/ftp/astron.tar.gz
to /usr/local/itt/idl70/lib/goddard

cd /usr/local/itt/idl70/lib/goddard
tar -xvzf ./astron.tar.gz

how to run idl procedures (.pro) from val

to compile procedures:
.run filename.pro
for ex, to compile the average.pro procedure i say:

.run average

to execute a given procedure, for example to execute average after compiling the average procedure, i simply type:

average

(See next idlhints post for info on how to run a .batch file)