Installation
Prerequisites
Conda/Miniconda installed on your system: https://docs.conda.io/en/latest/miniconda.html
Git installed on your system
Git LFS installed on your system: https://git-lfs.github.com/
Internet connection (for downloading packages and git repos)
Installation Steps
1. Download Required Files
Download these files manually by clicking on the following links and save them to any directory of your choice, e.g.: /path/to/your/downloads/:
File |
Download Link |
|---|---|
|
|
|
|
|
2. Clone required repositories
Navigate to a directory where you want to clone the following three repositories, then clone them:
CGI-EETC repo
the repo containing the CPP-specific CGISim Roman preflight model to use with Corgisim (overrides the official model from Sourceforge)
this repo, CorgiSim-howfsc
git clone https://github.com/nasa-jpl/cgi-eetc.git
git clone https://github.com/roman-corgi/cgisim_cpp.git
git clone https://github.com/roman-corgi/corgihowfsc.git
3. Run Installation of corgihowfsc
Execute these commands in order:
# Navigate to your corgihowfsc repository clone
cd /path/to/corgihowfsc
# Step 1: Create conda environment and install git-based packages
conda env create -f environment.yml
# Step 2: Activate the environment
conda activate corgiloop
# Step 3: Install manual packages by providing the path to your downloads
python setup_cgi_packages.py /path/to/your/downloads/
# Examples:
python setup_cgi_packages.py ~/Downloads/
python setup_cgi_packages.py C:\Users\username\Downloads\
python setup_cgi_packages.py /home/user/cgi-files/
4. Install the Roman model done with CGISim (Corgisim-specific) from the local clone
Note
This installation only finishes correctly if PROPER has been installed before, which is done in step 3 above by calling setup_cgi_packages.py.
cd ../cgisim_cpp
pip install -e .
5. Get large files and install cgi-eetc
cd ../cgi-eetc
git lfs pull
pip install -e .
6. Optional: Install cgi-howfsc in editable mode for development
pip uninstall howfsc
git clone https://github.com/roman-corgi/cgi-howfsc.git
cd cgi-howfsc
pip install -e .
7. Verify Installation
Test that everything is installed correctly:
# In Python, try importing the packages
import proper
import roman_preflight_proper
import cgisim
import howfsc
import eetc
print("✅ All CGI packages imported successfully!")
Help
python setup_cgi_packages.py --help
Troubleshooting
Missing Downloads
Verify all 3 zip files are in your specified directory
Check file names match exactly (case-sensitive)
Use absolute paths to avoid confusion
Environment Issues
Ensure you activated the environment:
conda activate corgiloopCheck conda environment exists:
conda env list
Path Issues
Use absolute paths:
/full/path/to/downloads/instead of~/Downloads/On Windows, use forward slashes or escape backslashes:
C:/Users/name/Downloads/Check directory exists and contains the zip files
Installation Failures
Check internet connection for git repositories
Verify zip files are not corrupted
Try running
setup_cgi_packages.pyagain
Valid FITS file error
If you encounter an error like this:
OSError: No SIMPLE card found, this file does not appear to be a valid FITS file. If this is really a FITS file, try with ignore_missing_simple=True
you are probably missing the LFS files from cgi-eetc.
To fix this…
Make sure you have Git LFS installed: https://git-lfs.github.com/
Run
git lfs fetch --allthengit lfs pullin yourcorgihowfscrepo, and alsocgi-howfscrepo if you installed it in dev mode from a local clone.