COSMOS is located in /usr/local/magellan/Cosmos2.
Before running any programs, you must execute the following commands:
The COSMOS software is installed on chiaki, and should be usable from any machine running Linux.
Before running any programs, you must do the following:
setenv COSMOS_HOME /data1/chiaki/edwardv/Cosmos/Cosmos2-15 source $COSMOS_HOME/cosmos2-setup setenv COSMOS_PAR_DIR /home/joe-user/whatever/CosparIf you are running a 64-bit machine you will want to use the following COSMOS_HOME directory instead:
setenv COSMOS_HOME /data1/chiaki/edwardv/Cosmos/Cosmos2-15_64
cp -r $COSMOS_HOME/Cospar /home/joe-user/whatever
setenv PERLLIB /data1/chiaki/gwalth/Cosmos/perl/lib/perl5/site_perl/5.8.8/i386-linux-thread-multiIf you are running a 64-bit machine you will want to use the following PERLLIB setup instead:
setenv PERLLIB /data1/chiaki/gwalth/Cosmos/perl_64/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
task display8 = "/data1/chiaki/edwardv/Cosmos/Cosmos2-15/bin/display8.cl"
The documentation is available locally at www.obs.carnegiescience.edu/Code/cosmos
Here you can find the latest release at www.obs.carnegiescience.edu/Code/cosmos/source.
COSMOS is known to work with the following:
Architecture | Operating System |
---|---|
x86 | Redhat 8, 9; Fedora Core 1, 4, 5; Mac OS X 10.4, 10.5 |
x86_64 | Fedora Core 8; Mac OS X 10.6 |
PowerPC (G4, G5) | Mac OS X 10.3, 10.4 |
COSMOS should work on most other Linux systems, and may work on any UNIX variant.
COSMOS at this time does support FFTW3. There is a significant slow down in the way the code is runs with FFTW3. It is recommended to use the most recent version of FFTW2.
Besides the usual stuff, you will need:
If you wish to use the GUI programs setcosdir, defineobs, and viewspectra, you will also need the following Perl modules: If you wish to use ldss3-pattern you will need the following library:
setenv COSMOS_HOME "/home/joe_user/my-cosmos2-directory"
tar -xzvf cosmosYYYY.tar.gz
$COSMOS_HOME/lib
$COSMOS_HOME/lib
, (and $COSMOS_HOME/include
)
make -f Makefile.system [PGLIB=pgplot-dir XLIB=Xll-dir FITSLIB=fits-dir PGINC=pgplot.h-dir XINC=X11.h-dir FITSINC=fits.h-dir]where system is either "Mac" or "linux", and the options in brackets are only needed if the above mentioned library and header files are not in their expected locations. With a little luck, you will get no error messages, and at the end you will have a completely installed system. If you encounter any errors, they are most likely due to a failure to find all the library and header files, in which case you should check their locations. If you're still having trouble, please refer to the FAQ page.
To compile ldss3-pattern:
$COSMOS_HOME/lib
$COSMOS_HOME/lib
, (and $COSMOS_HOME/include
)
make -f Makefile-ldss3.system [FITSLIB=fits-dir FFTWLIB=fftw-dir FITSINC=fits.h-dir FFTWINC=fftw.h-dir]Some final tidying:
setenv COSMOS_HOME "/home/joe-user/my-cosmos2-directory" source $COSMOS_HOME/cosmos2-setup setenv COSMOS_PAR_DIR "/home/joe-user/my-Cospar-directory"
where my-cosmos2-directory and my-cospar-directory are the locations you have chosen for the cosmos2 software and the Cospar files.
setenv PERLLIB "/home/joe_user/my-perl-modules-directory"If you are using Cosmos on a Mac, you may have Fink installed. If so, you may find a PERL5LIB environmental variable set, in which case you want to append PERLLIB to it by executing the following*:
setenv PERL5LIB "${PERLLIB}:${PERL5LIB}"
setenv VERSIONER_PERL_PREFER_32_BIT no
task display8 = "/home/joe_user/my-cosmos-directory/bin/display8.cl"
*You can copy each of these commands into your shell startup file (e.g. cshdef, .cshrc) so that they will be defined in each window you open. You can also place each of these in your shell startup file first and then source that file on the command line. For example:
source ~/.cshrc
The HTML documentation will be available on your own computer at $COSMOS_HOME/docs/COSMOS.html
.