Installing MultiDrizzle
|
Installation of MultiDrizzle starts by copying the package to a
directory which Python can load, either by default or as specified in your
PYTHONPATH environment variable. Once PyRAF has been started, the packages
should be available for use. This can either be done by updating existing
STSDAS 3.0 Python directories, or by installing in a user's personal
directory.
Download a Printable version of these instructions.
RECOMMENDED--
For those who can update their IRAF/STSDAS V3.0/3.1 directories:
-
Unpack the distribution into
stsdas$pkg/analysis/dither
directory. This should create the new directory 'multidrizzle' in the
STSDAS v3.0 tree as:
stsdas$pkg/analysis/dither/multidrizzle.
-
Setup a soft link
stsdas$python/multidrizzle to point to
the directory 'dither$multidrizzle' which was just created. Under Unix/Linux,
this can be done using:
> cd $stsdas/python
> ln -s $stsdas/pkg/analysis/dither/multidrizzle multidrizzle
where $stsdas refers to the root location of the installed STSDAS tree.
The stsdas$python
directory will only exist in STSDAS v3.0 distributions, as it was added to
support the new Python based STSDAS tasks such as PyDrizzle.
-
Verify that numarray has been upgraded to Version 0.6. This version
comes as part of STSDAS 3.0 release, and can be downloaded from:
http://sourceforge.net/projects/numpy
- Edit the existing stsdas$pkg/analysis/dither/dither.cl script
to contain the line:
pyexecute("mdrizzle$multidrizzle/multidrizzle_iraf.py",tasknames="multidrizzle")
This will setup the IRAF interface for MultiDrizzle.
-
Start PyRAF. Load STSDAS, and the Dither package. You should now see
an IRAF task 'multidrizzle'.
For those who can NOT update their IRAF/STSDAS V3.0 directories:
-
Unpack the distribution into a root directory of your choosing. The
tar file will then put the code in a sub-directory named 'multidrizzle'.
For example: /data/your_machine/python
This distribution can then be unpacked simply using:
tar xf multidrizzle_release123.tar
-
Make sure numarray Version 0.6 is installed, if the system version
has not been updated to this version.
-
Start up PyRAF. Load STSDAS, but do NOT start the 'dither' package yet!.
--> stsdas
-
Update the Python system path to point to your personal version of
the PyDrizzle code using:
--> import sys
--> sys.path.insert(1,'/data/your_machine/python')
-
Load the dither package now.
--> dither
-
Define the IRAF variable 'mydrizzle' to point to the newly installed
multidrizzle IRAF interface code and parameter file.
--> set mydrizzle = '/data/your_machine/python/'
-
The environment variable mdrizzle also needs to be defined, as it is
used by the 'multidrizzle_iraf.py' file in this distribution:
--> set mdrizzle = '/data/your_machine/python/'
-
Now, define the Multidrizzle task to point to your version:
--> pyexecute('mydrizzle$multidrizzle/multidrizzle_iraf.py',tasknames='multidrizzle')
You can now see the newly defined task as an IRAF task and use it like
every other IRAF task!
|