Name: gcr-catalogs
Owner: desihub
Description: This repository hosts DESI GCR catalogs
Created: 2018-01-17 22:34:54.0
Updated: 2018-04-24 14:44:50.0
Pushed: 2018-04-24 14:44:49.0
Size: 460
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repo hosts the mock galaxy catalogs used by DESIQA.
On a NERSC machine, all these catalogs can be directly accessed through the “Generic Catalog Reader” (GCR) inferface. More information about GCR can be found here.
Currently these sets of catalogs are available (Note that these catalogs are not perfect and will continue to be updated):
buzzard
(full catalog, DES Y3 area)buzzard_test
(same as buzzard
but a small subset for testing purpose)buzzard_high-res
(higher resolution, smaller sky area)buzzard_v1.6
Each of the catalogs is specified by a YAML config file, which can be found here. The galaxy quantities in these catalogs conform to this schema.
Note: These instructions about Python environment may change in the future. If you encounter issues, please check if there's any updates on these instructions.
First, start a NERSC notebook server and open a notebook with a DESI kernel. Make sure you add the DESIQA Python enviornment to sys.path
:
rt sys
path.insert(0, '/project/projectdirs/desi/mocks/desiqa/cori/lib/python3.6/site-packages/')
Activate DESIQA Python environment by running the following on NERSC (needs to be in bash
or zsh
):
source /project/projectdirs/desi/software/desi_environment.sh export PYTHONPATH=/project/projectdirs/desi/mocks/desiqa/cori/lib/python3.6/site-packages/:$PYTHONPATH
To be able to import GCRCatalogs
, make sure you first source the desi environment (source /project/projectdirs/desi/software/desi_environment.sh) and the first line of the script should be:
rt sys
path.insert(0, '/project/projectdirs/desi/mocks/desiqa/cori/lib/python3.6/site-packages/')
You can install the latest version by running (but note that you need to change the python paths accordingly)
pip install https://github.com/desihub/gcr-catalogs/archive/master.zip
But note that the actual catalogs can only be accessed on a NERSC machine.
See this notebook for a tutorial on how to use GCR Catalogs.
See this notebook for an actual application (the Conditional Luminosity Function test) using GCR Catalogs. (Thanks to Joe DeRose for providing the CLF test example!)
See GCR documentation for the complete GCR API.
On GitHub fork the GCRCatalogs GitHub repo.
On NERSC, clone your fork (you can skip this if you've done it)
cd /your/own/directory git clone git@github.com:YourGitHubUsername/gcr-catalogs.git git remote add upstream https://github.com/desihub/gcr-catalogs.git
Sync with the upstream master branch
cd /your/own/directory/gcr-catalogs git checkout master git pull upstream master git push origin master
Create a new branch for this edit:
git checkout -b newBranchName
Make changes
Test by adding your clone to the path when running Python:
rt sys
path.insert(0, '/your/own/directory/gcr-catalogs')
Commit and push to your forked repo
git add
Go to your forked repo's GitHub page and “create a pull request”.