In [1]:
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import Table
import fitsio
%matplotlib inline

In [5]:
tilefile = '/global/cscratch1/sd/forero/small_dr7.1/output_fiberassign/tile_17855.fits'
targets_data = fitsio.read(tilefile, ext=1)
potential_data = fitsio.read(tilefile, ext=2)
sky_data = fitsio.read(tilefile, ext=3)
gfa_data = fitsio.read(tilefile, ext=4)

plt.scatter(targets_data['RA'], targets_data['DEC'], color='BLUE', s=1.0)
plt.scatter(gfa_data['RA'], gfa_data['DEC'], color='RED', s=2.0)
plt.scatter(sky_data['RA'], sky_data['DEC'], color='black', s=20.0)


Out[5]:
<matplotlib.collections.PathCollection at 0x2b17c189d048>

In [7]:
Table(targets_data[:1])


Out[7]:
<Table length=1>
FIBERLOCATIONNUMTARGETPRIORITYTARGETIDDESI_TARGETBGS_TARGETMWS_TARGETRADECXFOCAL_DESIGNYFOCAL_DESIGNBRICKNAMEFIBERMASKPETAL_LOCDEVICE_LOCSUBPRIORITYBRICKIDBRICK_OBJIDREF_IDPMRAPMDECPMRA_IVARPMDEC_IVARFLUX_GFLUX_RFLUX_ZFLUX_W1FLUX_W2FLUX_IVAR_GFLUX_IVAR_RFLUX_IVAR_ZFLUX_IVAR_W1FLUX_IVAR_W2RA_IVARDEC_IVAR
int32int32int16int32int64int64int64int64float64float64float32float32bytes8int32int16int32float32int32int32int64float32float32float32float32float32float32float32float32float32float32float32float32float32float32float32float32
97526123000307876090767024941315860028.2892041368-4.1644422740281.0117-385.9590281m042005260.0950709306010745400.00.00.00.00.7127981.088671.990294.507980.362491704.71248.25193.9583.194610.5409488.30824e+108.81975e+10

In [8]:



/global/u2/f/forero/fiberassign/bin

In [ ]: