In [1]:
# This changes the current directory to the base saga directory - make sure to run this first!
# This is necessary to be able to import the py files and use the right directories,
# while keeping all the notebooks in their own directory.
import os
import sys
if 'saga_base_dir' not in locals():
saga_base_dir = os.path.abspath('..')
if saga_base_dir not in sys.path:
os.chdir(saga_base_dir)
In [10]:
for module in ['hosts', 'targeting', 'magellan']:
if module in globals():
reload(globals()[module])
else:
globals()[module] = __import__(module)
#g = targeting.get_gama() #re-caches the gama catalog
In [35]:
hosts.aiw.sdss_environs_query(True)
hosts.aiw.usnob_environs_query(True)
In [37]:
magellan.build_imacs_targeting_files(hosts.aiw, 'Marchi/Munoz', selectkws=dict(removegama=None))
magellan.add_use('imacs_targets/AIW.cat', 'imacs_targets/AIW.cat', ['imacs_targets/DLG6_3.obw'])
Out[37]:
In [38]:
hosts.aiw.physical_to_projected(300)
Out[38]:
In [108]:
magellan.plot_imacs_masks(hosts.aiw, eastleft=True)
In [63]:
from matplotlib import pyplot as plt
In [3]:
hosts.aiw.sdss_environs_query(True)
hosts.aiw.usnob_environs_query(True)
In [6]:
magellan.plot_imacs_masks(hosts.aiw, eastleft=True)
In [12]:
magellan.plot_imacs_masks(hosts.aiw, eastleft=True, altname='DLG6', skipnums=[12,13,14,15])
In [27]:
targs = targeting.select_targets(hosts.aiw, removegama=None,outercutrad=30*u.arcmin)
len(targs)
Out[27]:
In [ ]: