[DAMD-26] Define numbering scheme for fibres Created: 14/Nov/17  Updated: 19/Sep/19  Resolved: 09/Jun/18

Status: Done
Project: Data Model
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Normal
Reporter: jeg Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to SIM2D-61 Model mapping from cobra to position ... Done
relates to INFRA-250 Specify key conventions Open

 Description   

I had a discussion with Robert earlier today and he indicated that as far as data handling and reduction is concerned, the numbering of the science fibers is not an issue, however we want to handle it. I therefore propose for simplicity (well, not quite simplicity, which would say we do a zero-based scheme) that we number them from 1 to 2394, so the science fiber sf ranges are

  • 1-600 would be in order from the top to the bottom of the slit in spectrograph 1
  • 601-1200 would be in order from the top to the bottom of the slit in spectrograph 2
  • 1201-1797 would be in order from the top to the bottom of the slit in spectrograph 3
  • 1798-2394 would be in order from the top to the bottom of the slit in spectrograph 4

Note that each spectrograph has also a fiber HOLE number, which runs from 1-651 from the top to the bottom of the slit. Most of these are occupied by the 600 or 597 science fibers, but some are occupied by engineering fibers and some are blank; there is a large block of blanks in the center to address the gaps beween the optical CCDs.

Yuki and I are preparing a document and tables with more than you wanted
to know about the fiber mapping, and we would like to include this ID, so
I will proceed with this unless I hear desperate screams. The 597 fibers
in sp 3 and 4 is a pain, but one can just make a table.

Just to confuse things, remember that there is a running COBRA number from 1 to 2394 which bears only a very complicated relationship with the science fiber number, which for data reduction and handling reasons clearly needs to be tied to the spectrographs.



 Comments   
Comment by cloomis [ 07/Jun/18 ]

I have added pfsUtils.fiberids, which lightly wraps access to JEG and Moritani-san's complete mapping tables.

import pfs.utils.fiberids as pfsFids

fidMap = pfsFids.FiberIds()
sp2Cobras = fidMap.cobrasForSpectrograph(2)
mod13Cobras = fidMap.cobrasForModule(13)

# x,y mm at the PFI
sp2Centers = fidMap.xyForCobras(sp2Cobras)

# And direct access to all the columns of JEG's mapping:
fidMap.USCONECId[mod13Cobras]
fidMap.scienceFiberId[mod13Cobras]

I have only added the accessors I need right now; easy enough to add more, I think.

Comment by cloomis [ 09/Jun/18 ]

In pfs_utils

Generated at Sat Feb 10 15:33:27 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.