desihub / desimeter

DESI coordinates and transformations
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

Bright image analysis #105

Closed julienguy closed 4 years ago

julienguy commented 4 years ago

Import bright image analysis code from Sergey.

usage: analyze_bright_image [-h] --front-illuminated FRONT_ILLUMINATED
                            --back-illuminated BACK_ILLUMINATED -o OUTFILE
                            [--minccf MINCCF] [--pad PAD]
                            [--ang-step ANG_STEP] [--nproc NPROC]
                            [--phi-arm-angle-table PHI_ARM_ANGLE_TABLE]
                            [--plot]

Front illuminated FVC image processing

optional arguments:
  -h, --help            show this help message and exit
  --front-illuminated FRONT_ILLUMINATED
                        path to a front illuminated FVC image fits file
                        (default: None)
  --back-illuminated BACK_ILLUMINATED
                        path to a back-illuminated FVC image fits file
                        (fiducials+fibers ON) or a CSV file with spots
                        positions (default: None)
  -o OUTFILE, --outfile OUTFILE
                        path to output table (default: None)
  --minccf MINCCF       minimum cross-correlation between the template and
                        data to remove non-fibers/fiducials (default: 0.2)
  --pad PAD             padding around the fiber to analyze (default: 40)
  --ang-step ANG_STEP   step in degrees?? in phi angle scan (default: 1.0)
  --nproc NPROC         number of processes for multiprocessing (default: 1)
  --phi-arm-angle-table PHI_ARM_ANGLE_TABLE
                        for debugging: skip the phi arm detection and use
                        directly this table (default: None)
  --plot                plot (default: False)

Example

analyze_bright_image --front fvc.20200625122001.fits --back fvc.20200625120845.fits -o result.csv --plot --nproc 2

Figure_2

joesilber commented 4 years ago

beautiful