Ejemplo n.º 1
0
def main():
    # BASS/MzLS vs. DECaLS
    decam_cats= os.path.join(get_indir('bmd'),'decam.txt')
    bm_cats= os.path.join(get_indir('bmd'),'bassmos.txt')
    bash('python legacyanalysis/validation/decals_bass_mzls.py --decals_list %s --bassmos_list %s' % (decam_cats,bm_cats))
    # COSMOS
    #bash('python legacyanalysis/cosmos.py')
    print "done"
Ejemplo n.º 2
0
def main():
    # BASS/MzLS vs. DECaLS
    decam_cats = os.path.join(get_indir('bmd'), 'decam.txt')
    bm_cats = os.path.join(get_indir('bmd'), 'bassmos.txt')
    bash(
        'python legacyanalysis/validation/decals_bass_mzls.py --decals_list %s --bassmos_list %s'
        % (decam_cats, bm_cats))
    # COSMOS
    #bash('python legacyanalysis/cosmos.py')
    print "done"
Ejemplo n.º 3
0
from __future__ import division, print_function

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import os
import sys
import glob
import numpy as np

from legacyanalysis.validation.pathnames import get_outdir, get_indir
from legacyanalysis.validation.combine_cats import Matched_DataSet
import legacyanalysis.validation.cosmos_plots as plots

# Find tractor catalogues
indir = get_indir('cosmos')
cosmos10BrickList = glob.glob(
    os.path.join(indir, "cosmos-10/tractor/1*/tractor*.fits"))
cosmos11BrickList = glob.glob(
    os.path.join(indir, "cosmos-11/tractor/1*/tractor*.fits"))
cosmos12BrickList = glob.glob(
    os.path.join(indir, "cosmos-12/tractor/1*/tractor*.fits"))
cosmos20BrickList = glob.glob(
    os.path.join(indir, "cosmos-20/tractor/1*/tractor*.fits"))
cosmos21BrickList = glob.glob(
    os.path.join(indir, "cosmos-21/tractor/1*/tractor*.fits"))
cosmos22BrickList = glob.glob(
    os.path.join(indir, "cosmos-22/tractor/1*/tractor*.fits"))
cosmos30BrickList = glob.glob(
    os.path.join(indir, "cosmos-30/tractor/1*/tractor*.fits"))
cosmos31BrickList = glob.glob(
Ejemplo n.º 4
0
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import os
import sys
import glob
import numpy as np

from legacyanalysis.validation.pathnames import get_outdir,get_indir
from legacyanalysis.validation.combine_cats import Matched_DataSet
import legacyanalysis.validation.cosmos_plots as plots


# Find tractor catalogues
indir= get_indir('cosmos')
cosmos10BrickList = glob.glob(os.path.join(indir,"cosmos-10/tractor/1*/tractor*.fits"))
cosmos11BrickList = glob.glob(os.path.join(indir,"cosmos-11/tractor/1*/tractor*.fits"))
cosmos12BrickList = glob.glob(os.path.join(indir,"cosmos-12/tractor/1*/tractor*.fits"))
cosmos20BrickList = glob.glob(os.path.join(indir,"cosmos-20/tractor/1*/tractor*.fits"))
cosmos21BrickList = glob.glob(os.path.join(indir,"cosmos-21/tractor/1*/tractor*.fits"))
cosmos22BrickList = glob.glob(os.path.join(indir,"cosmos-22/tractor/1*/tractor*.fits"))
cosmos30BrickList = glob.glob(os.path.join(indir,"cosmos-30/tractor/1*/tractor*.fits"))
cosmos31BrickList = glob.glob(os.path.join(indir,"cosmos-31/tractor/1*/tractor*.fits"))
cosmos32BrickList = glob.glob(os.path.join(indir,"cosmos-32/tractor/1*/tractor*.fits"))
cosmos40BrickList = glob.glob(os.path.join(indir,"cosmos-40/tractor/1*/tractor*.fits"))
cosmos41BrickList = glob.glob(os.path.join(indir,"cosmos-41/tractor/1*/tractor*.fits"))
cosmos42BrickList = glob.glob(os.path.join(indir,"cosmos-42/tractor/1*/tractor*.fits"))

# Write cat names to text files
list_10= os.path.join(indir,'10.txt')