Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for 18.11 #68

Merged
merged 24 commits into from
Dec 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f9b4aa3
fix missing error option
weaverba137 Oct 4, 2018
5e1b62c
update fibermap file from the mockobserving branch
weaverba137 Nov 13, 2018
0188864
add new tile data model from mockobserving branch
weaverba137 Nov 13, 2018
028e0bb
fix missing link
weaverba137 Nov 13, 2018
ef30132
grant certain exceptions to unit parsing
weaverba137 Nov 14, 2018
984a81d
move configuration of units to class level
weaverba137 Nov 14, 2018
3635058
share code to validate units
weaverba137 Nov 28, 2018
06e9749
fix tests
weaverba137 Nov 29, 2018
576e81a
update simspec model
weaverba137 Nov 29, 2018
091035e
updating table definitions
weaverba137 Nov 29, 2018
218c902
update cframe, zcatalog
weaverba137 Nov 29, 2018
c9a2c14
update frame file
weaverba137 Nov 29, 2018
7843a0d
fix column width
weaverba137 Nov 29, 2018
26da013
try not to crash on certain compressed HDUs
weaverba137 Nov 29, 2018
1f7ce59
fix column width
weaverba137 Nov 29, 2018
0c3522e
fix column width
weaverba137 Nov 29, 2018
e136d3c
update zbest and spectra
weaverba137 Nov 29, 2018
472c581
WIP SJB updates
sbailey Nov 29, 2018
3c69882
Merge branch 'updates-18.9' of https://github.com/desihub/desidatamod…
sbailey Nov 29, 2018
a85814f
update zbest and spectra
weaverba137 Nov 29, 2018
89c52cb
Merge branch 'updates-18.9' of https://github.com/desihub/desidatamod…
sbailey Nov 29, 2018
980af91
update targets truth table
sbailey Nov 30, 2018
014b34b
update fiberassign output format
sbailey Dec 12, 2018
9fd3bc6
fix malformed table
sbailey Dec 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
238 changes: 187 additions & 51 deletions doc/DESI_SPECTRO_DATA/NIGHT/EXPID/fibermap-EXPID.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fibermap-EXPID.fits
each exposure: what fiber is placed where, what target that is, etc.
:Naming Convention: ``fibermap-{EXPID}.fits``, where {EXPID} is the 8-digit exposure ID.
:Regex: ``fibermap-[0-9]{8}\.fits``
:File Type: FITS, 1 MB
:File Type: FITS, 2 MB

This table is also propagated forward to the
:doc:`frame <../../../DESI_SPECTRO_REDUX/SPECPROD/exposures/NIGHT/EXPID/frame-CAMERA-EXPID>`,
Expand All @@ -21,7 +21,8 @@ Contents
Number EXTNAME Type Contents
====== ======== ======== ===================
HDU0_ PRIMARY IMAGE Blank
HDU1_ FIBERMAP BINTABLE Fiber map table
HDU1_ FIBERMAP BINTABLE Fiber map table of what targets are on what fibers
HDU2_ TARGETS BINTABLE Row matched target catalog for those assignments
====== ======== ======== ===================


Expand All @@ -37,13 +38,37 @@ Empty HDU.

This HDU has no non-standard required keywords.

Required Header Keywords
~~~~~~~~~~~~~~~~~~~~~~~~

======== ================= ===== ========================================
KEY Example Value Type Comment
======== ================= ===== ========================================
NAXIS1 0 int
TILEID 1165 int
REQRA 150.69 float
REQDEC 33.86 float
TILERA 150.69 float
TILEDEC 33.86 float
REFEPOCH 2015.5 str
NIGHT 20201010 int
EXPID 123456 int
FLAVOR science str
FIELDNUM 0 int Field configuration number for this tile
TELRA 150.6899871709776 float
TELDEC 150.6899913445232 float
======== ================= ===== ========================================

Data: FITS image [float64, 0]

HDU1
----

EXTNAME = FIBERMAP

The fiber map table of which targets where placed on which fibers
at which locations.
at which locations. This is a superset of the requested fiberassignments,
augmented with columns describing where the fibers actually ended up.

Required Header Keywords
~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -56,10 +81,14 @@ NAXIS2 5000 int length of dimension 2
NIGHT 20170327 str YEARMMDD of sunset for this night
EXPID 2 int unique DESI exposure ID
TILEID 4 int DESI tile ID
PROGRAM DARK str program [dark, bright, ...]
FLAVOR dark str Flavor [arc, flat, science, zero, ...]
TELRA 335.03 float Telescope pointing RA in J2000 degrees
TELDEC 19.88 float Telescope pointing dec in J2000 degrees
PROGRAM DARK str program [dark, bright, gray, calib, ...]
FLAVOR science str Flavor [arc, flat, science, zero, ...]
REQRA 335.03 float Requested telescope RA [degrees]
REQDEC 19.88 float Requested telescope dec [degrees]
REQRA 335.03 float Requested telescope RA [degrees]
REQDEC 19.88 float Requested telescope dec [degrees]
TELRA 335.03 float Actual telescope pointing RA [degrees]
TELDEC 19.88 float Actual telescope pointing dec [degrees]
AIRMASS 1.17754 float Airmass at middle of exposure
EXPTIME 629.827 float Exposure time [sec]
SEEING 0.7769 float Seeing FWHM [arcsec]
Expand All @@ -74,47 +103,154 @@ TODO: standardize keywords with ICS, *e.g.* ``FLAVOR -> PROGRAM``.
Required Data Table Columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~

=========== ========== ===== ===============================================
Name Type Units Description
=========== ========== ===== ===============================================
OBJTYPE char[10] Target type [ELG, LRG, QSO, STD, STAR, SKY]
TARGETCAT char[20] Name/version of the target catalog
BRICKNAME char[8] Brickname from target imaging
TARGETID int64 Unique target ID
DESI_TARGET int64 DESI dark+calib targeting bit mask
BGS_TARGET int64 DESI Bright Galaxy Survey targeting bit mask
MWS_TARGET int64 DESI Milky Way Survey targeting bit mask
MAG float32[5] magnitudes in each of the filters
FILTER char[200] SDSS_R, DECAM_Z, WISE1, etc.
SPECTROID int64 Spectrograph ID [0-9]
POSITIONER int32 Positioner Location ID [0-9542]
LOCATION int32
DEVICE_LOC int32
PETAL_LOC int32
FIBER int32 Fiber ID [0-4999]
LAMBDAREF float32 Reference wavelength at which to align fiber
RA_TARGET float64 Target right ascension [degrees]
DEC_TARGET float64 Target declination [degrees]
RA_OBS float64 RA of obs from (X,Y)_FVCOBS and optics [deg]
DEC_OBS float64 dec of obs from (X,Y)_FVCOBS and optics [deg]
X_TARGET float32 X on focal plane derived from (RA,DEC)_TARGET
Y_TARGET float32 Y on focal plane derived from (RA,DEC)_TARGET
X_FVCOBS float32 X location observed by Fiber View Cam [mm]
Y_FVCOBS float32 Y location observed by Fiber View Cam [mm]
Y_FVCERR float32 Y location uncertainty from Fiber View Cam [mm]
X_FVCERR float32 X location uncertainty from Fiber View Cam [mm]
=========== ========== ===== ===============================================

Expected Changes
================

This format is out of sync with the
`Imaging Legacy Surveys datamodel <http://legacysurvey.org/dr4/files/>`_,
and will be updated to have consistent names and formats for values that are
propagated from the tractor / sweep files.
*e.g.* ``MAG[5] -> FLUX_G, FLUX_R, FLUX_Z, FLUX_W1, FLUX_W2``.

This format is out of sync with the
:doc:`tile <../../../DESI_TARGET/fiberassign/tile>` datamodel, and will be updated to
be consistent for values that are propagated forward from fiber assignment.
*e.g.* ``POSITIONER -> LOCATION``.
================ ======= ============ ===========
Name Type Units Description
================ ======= ============ ===========
TARGETID int64 Unique target ID
FIBER int32 Fiber ID on the CCDs [0-4999]
PETAL_LOC int16 Petal location [0-9]
DEVICE_LOC int32 Device location on focal plane [0-523]
LOCATION int32 Location on the focal plane PETAL_LOC*1000 + DEVICE_LOC
FIBERSTATUS int32 Fiber status mask; 0=good
OBJTYPE char[3] SKY, OBJ, NON
DESI_TARGET int64 Dark survey + calibration targeting bits
BGS_TARGET int64 Bright Galaxy Survey targeting bits
MWS_TARGET int64 Milky Way Survey targeting bits
SECONDARY_TARGET int64 Secondary targets targeting bits
COMM_TARGET int64 Commissioning targeting bits
SV1_DESI_TARGET int64 Survey Validation targeting bits
SV1_BGS_TARGET int64 Survey Validation targeting bits
SV1_MWS_TARGET int64 Survey Validation targeting bits
TARGET_RA float64 deg Target Right Ascension [degrees]
TARGET_DEC float64 deg Target declination [degrees]
TARGET_RA_IVAR float32 deg^-2 Inverse variance of TARGET_RA
TARGET_DEC_IVAR float32 deg^-2 Inverse variance of TARGET_DEC
LAMBDA_REF float32 Angstrom Wavelength at which targets should be centered on fibers
DESIGN_X float32 mm Expected CS5 X location on focal plane
DESIGN_Y float32 mm Expected CS5 Y location on focal plane
DESIGN_Q float32 deg CS5 Q azimuthal coordinate
DESIGN_S float32 mm CS5 S radial distance along curved focal surface
BRICKID int64 Imaging Surveys brick ID
BRICK_OBJID int64 Imaging surveys OBJID on that brick
TYPE char[4] Imaging surveys morphological type
PRIORITY int32 Assignment priority; larger = higher priority
SUBPRIORITY float64 Assignment subpriority [0-1]
NUMTARGET int16 Total number of targets that this positioner covered
REF_ID int64 Astrometric catalog reference ID (SOURCE_ID from GAIA)
PMRA float32 mas/yr Proper motion in the RA direction (already including cosDec term)
PMDEC float32 mas/yr Proper motion in the dec direction
PMRA_IVAR float32 Inverse variance of PMRA
PMDEC_IVAR float32 Inverse variance of PMDEC
FLUX_G float32 nanomaggies Flux in g-band
FLUX_R float32 nanomaggies Flux in r-band
FLUX_Z float32 nanomaggies Flux in z-band
FLUX_W1 float32 nanomaggies Flux in WISE W1-band
FLUX_W2 float32 nanomaggies Flux in WISE W2-band
FLUX_IVAR_G float32 Inverse variance of FLUX_G
FLUX_IVAR_R float32 Inverse variance of FLUX_R
FLUX_IVAR_Z float32 Inverse variance of FLUX_Z
FLUX_IVAR_W1 float32 Inverse variance of FLUX_W1
FLUX_IVAR_W2 float32 Inverse variance of FLUX_W2
FIBERFLUX_G float32 nanomaggies g-band object model flux for 1 arcsec seeing and 1.5 arcsec diameter fiber
FIBERFLUX_R float32 nanomaggies r-band object model flux for 1 arcsec seeing and 1.5 arcsec diameter fiber
FIBERFLUX_Z float32 nanomaggies z-band object model flux for 1 arcsec seeing and 1.5 arcsec diameter fiber
FIBERTOTFLUX_G float32 nanomaggies like FIBERFLUX_G but including all objects overlapping this location
FIBERTOTFLUX_R float32 nanomaggies like FIBERFLUX_R but including all objects overlapping this location
FIBERTOTFLUX_Z float32 nanomaggies like FIBERFLUX_Z but including all objects overlapping this location
FIBER_RA float64 deg RA of actual fiber position
FIBER_DEC float64 deg DEC of actual fiber position
FIBER_RA_IVAR float32 deg^-2 Inverse variance of FIBER_RA [not meaningful yet]
FIBER_DEC_IVAR float32 deg^-2 Inverse variance of FIBER_DEC [not meaningful yet]
DELTA_X float32 mm CS5 x difference between requested and actual position
DELTA_Y float32 mm CS5 y difference between requested and actual position
DELTA_X_IVAR float32 mm^-2 Inverse variance of DELTA_X [not meaningful yet]
DELTA_Y_IVAR float32 mm^-2 Inverse variance of DELTA_Y [not meaningful yet]
NUM_ITER int16 Number of positioner iterations
SPECTROID int16 Hardware ID of spectrograph
================ ======= ============ ===========

HDU2
----

EXTNAME = TARGETS

Target catalog row-matched to the FIBERASSIGN table entries. Unassigned
fibers will have TARGETID=-1 here.

Note: Software release 18.11 (desispec/0.26.0 desisim/0.31.0) does not include
this HDU. In the future it will either be included or deprecated and removed.

Required Header Keywords
~~~~~~~~~~~~~~~~~~~~~~~~

======== ============= ==== =====================
KEY Example Value Type Comment
======== ============= ==== =====================
NAXIS1 184 int length of dimension 1
NAXIS2 5000 int length of dimension 2
TNULL1 999999 int
TNULL3 999999 int
TNULL31 999999 int
TNULL32 999999 int
TNULL33 999999 int
TNULL34 999999 int
TNULL35 999999 int
TNULL36 999999 int
ENCODING ascii str
SEED 1028862084 int
HPXNSIDE 64 int
HPXNEST T bool
======== ============= ==== =====================

Required Data Table Columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~

================== ======= ===== ===========
Name Type Units Description
================== ======= ===== ===========
BRICKID int32
BRICKNAME char[8]
BRICK_OBJID int32
RA float64
DEC float64
FLUX_G float32
FLUX_R float32
FLUX_Z float32
FLUX_W1 float32
FLUX_W2 float32
MW_TRANSMISSION_G float32
MW_TRANSMISSION_R float32
MW_TRANSMISSION_Z float32
MW_TRANSMISSION_W1 float32
MW_TRANSMISSION_W2 float32
PSFDEPTH_G float32
PSFDEPTH_R float32
PSFDEPTH_Z float32
GALDEPTH_G float32
GALDEPTH_R float32
GALDEPTH_Z float32
PSFDEPTH_W1 float32
PSFDEPTH_W2 float32
SHAPEDEV_R float32
SHAPEDEV_E1 float32
SHAPEDEV_E2 float32
SHAPEEXP_R float32
SHAPEEXP_E1 float32
SHAPEEXP_E2 float32
SUBPRIORITY float64
TARGETID int64
DESI_TARGET int64
BGS_TARGET int64
MWS_TARGET int64
HPXPIXEL int64
OBSCONDITIONS int64
================== ======= ===== ===========

Notes:

* Future versions will include IVAR columns

Notes and Examples
==================

To do...
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ EXTNAME = FIBERMAP

Fibermap of what targets were assigned to what fibers.

NOTE: This format will be updated soon, e.g. to track FLUX instead of MAG.

Required Header Keywords
~~~~~~~~~~~~~~~~~~~~~~~~

Expand All @@ -195,36 +193,78 @@ DATASUM 4154192770 str data unit checksum updated 2018-03-01T15:08:15
Required Data Table Columns
~~~~~~~~~~~~~~~~~~~~~~~~~~~

=========== ========== ===== ===========
Name Type Units Description
=========== ========== ===== ===========
OBJTYPE char[10]
TARGETCAT char[20]
BRICKNAME char[8]
TARGETID int64
DESI_TARGET int64
BGS_TARGET int64
MWS_TARGET int64
MAG float32[5]
FILTER char[200]
SPECTROID int64
POSITIONER int32
LOCATION int32
DEVICE_LOC int32
PETAL_LOC int32
FIBER int32
LAMBDAREF float32
RA_TARGET float64
DEC_TARGET float64
RA_OBS float64
DEC_OBS float64
X_TARGET float32
Y_TARGET float32
X_FVCOBS float32
Y_FVCOBS float32
Y_FVCERR float32
X_FVCERR float32
=========== ========== ===== ===========
================= ======= ===== ===========
Name Type Units Description
================= ======= ===== ===========
TARGETID int64
DESI_TARGET int64
BGS_TARGET int64
MWS_TARGET int64
SECONDARY_TARGET int64
TARGET_RA float64
TARGET_DEC float64
TARGET_RA_IVAR float64
TARGET_DEC_IVAR float64
BRICKID int64
BRICK_OBJID int64
MORPHTYPE char[4]
PRIORITY int32
SUBPRIORITY float64
REF_ID int64
PMRA float32
PMDEC float32
PMRA_IVAR float32
PMDEC_IVAR float32
FLUX_G float32
FLUX_R float32
FLUX_Z float32
FLUX_W1 float32
FLUX_W2 float32
FLUX_IVAR_G float32
FLUX_IVAR_R float32
FLUX_IVAR_Z float32
FLUX_IVAR_W1 float32
FLUX_IVAR_W2 float32
FIBERFLUX_G float32
FIBERFLUX_R float32
FIBERFLUX_Z float32
FIBERFLUX_W1 float32
FIBERFLUX_W2 float32
FIBERTOTFLUX_G float32
FIBERTOTFLUX_R float32
FIBERTOTFLUX_Z float32
FIBERTOTFLUX_W1 float32
FIBERTOTFLUX_W2 float32
MW_TRANSMISSION_G float32
MW_TRANSMISSION_R float32
MW_TRANSMISSION_Z float32
EBV float32
PHOTSYS char[1]
FIBER int32
PETAL_LOC int32
DEVICE_LOC int32
LOCATION int32
FIBERSTATUS int32
OBJTYPE char[3]
LAMBDA_REF float32
DESIGN_X float32
DESIGN_Y float32
DESIGN_Q float32
DESIGN_S float32
NUMTARGET int16
FIBER_RA float64
FIBER_DEC float64
FIBER_RA_IVAR float32
FIBER_DEC_IVAR float32
DELTA_X float32
DELTA_Y float32
DELTA_X_IVAR float32
DELTA_Y_IVAR float32
NUM_ITER int32
SPECTROID int32
BRICKNAME char[8]
LAMBDAREF float64
================= ======= ===== ===========

HDU6
----
Expand Down