# First create your own copy of magphys so that all files belong to you. cp -r /usr/local/magphys /new/place/ # Define the magphys variable (see below) and put it in .cshrc/.bash_profile # csh/tcsh setenv magphys /new/place/magphys # sh/bash export magphys=/new/place/magphys # go to your version the directory containing magphys cd $magphys # setup the environment variables, this does require csh/tcsh. source .magphys_tcshrc # Build the software if using it for the first time make allNote: you can tell which shell you are using via the following command:
# First create and build your own copy of magphys so that all files # belong to you as described above. # Run the following commands to test the package. cd $magphys ./make_zgrid source get_libs source fit_sample ./fit_sed
echo $magphysif it is undefined, and you have edited your .cshrc/.bash_profile as above, try opening a new terminal.
Magphys requires the user to provide two input files called observations.dat and filters.dat referenced via the variables USER_FILTERS and USER_OBS. There are example files in the directory /usr/local/magphys/eg_user_files or use your own files in $magphys/eg_user_files/
Feel free to edit and change these files. There are backup copies of the original files in filters.dat.orig and observations.dat.orig.
Before the magphys programs will run, you need to set the correct environment variables. You can do this as below:
cd $magphys source .magphys_tcshrcYou can check where the USER_FILTERS and USER_OBS are pointing using the commands below:
echo $USER_FILTERS echo $USER_OBSAfter putting your filters.dat and observations.dat in the location above, run the magphys software using one or more of the following commands which assume you are in the $magphys directory.