Set up test Replan Central - sot/arc GitHub Wiki

 Set up new conda

# Not sure what directory makes sense for you for a test environment Malgosia?
# Export directory on a linux box?
# In my example I'll use export on my machine, this is a bash example

export ska_dir=/fido.real/kadi/arc3_test

wget https://repo.anaconda.com/miniconda/Miniconda3-py310_22.11.1-1-Linux-x86_64.sh

(I also confirmed sha256sum as 00938c3534750a0e4069499baf8f4e6dc1c2e471c86a59caa0dd03f4a9269db6 )

bash Miniconda3-py310_22.11.1-1-Linux-x86_64.sh -b -p $ska_dir

export PATH=${ska_dir}/bin:$PATH

# Install ska3 environment in test area.
# Note that since arc is not a ska3-flight package just now, one could use ska3-flight instead of ska3-flight-latest,
# but it might be better test practice to use latest.
#conda install --override-channels -c https://icxc.cfa.harvard.edu/aspect/ska3-conda/flight \
#  ska3-flight-latest ska3-core-latest ska3-perl-latest

# Latest packages are not working, use the non-latest versions
conda install --override-channels -c https://icxc.cfa.harvard.edu/aspect/ska3-conda/flight \
   ska3-flight ska3-core ska3-perl


cd $ska_dir
mkdir -p data/arc3
mkdir -p www/ASPECT/arc3
# Copy the data over from the flight replan central to seed the testing
for file in ACE.h5 GOES_X.h5 hrc_shield.h5 ACE_hourly_avg.npy;
do rsync -a /proj/sot/ska/data/arc3/$file data/arc3/;
done;

# Link kadi data
ln -s /proj/sot/ska/data/kadi data/kadi
# Link eng archive data
ln -s /proj/sot/ska/data/eng_archive data/eng_archive


# Source into the new SKA
source ${ska_dir}/bin/ska_envs.sh

# Install arc
cd ~/git/arc
# Checkout a version for testing such as perl_netrc or master
git checkout perl_netrc
# review paths with make -n
make -n install
# Install to $SKA which should be ${ska_dir} in this example
make install

mkdir -p $SKA_DATA/arc3/iFOT_time_machine

# The running user will also need a .netrc file with credentials for occweb

# From that point, the scripts referenced in task_schedule.cfg should be runnable
# from $SKA/share/arc3 and the output for www should be visible in $SKA/www/ASPECT/arc3.
# If testing will require "live" testing to a webserver, that can be accomplished with
# symbolic links.