CARTAvis / carta-backend

Source code repository for the backend component of CARTA, a new visualization tool designed for the ALMA, the VLA and the SKA pathfinders.
https://cartavis.github.io/
GNU General Public License v3.0
22 stars 11 forks source link

backend crashes when loading a JCMT-SCUBA2 FITS image #1301

Closed kswang1029 closed 1 year ago

kswang1029 commented 1 year ago

Describe the bug

A test JCMT-SCUBA2 image (from CADC) can be found here: https://drive.google.com/file/d/1ea8X58jHcgdNBBnNQm8OVk9E4rKqFXiP/view?usp=share_link

The macOS crash log:

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000cf0 Exception Codes: 0x0000000000000001, 0x0000000000000cf0

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [55792]

VM Region Info: 0xcf0 is not in any region. Bytes before following region: 68719473424 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START --->
commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated)

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 carta_backend 0x1028245ac carta::CartaFitsImage::internalDataType() const + 0 1 carta_backend 0x102849414 carta::FitsLoader::OpenFile(std::1::basic_string<char, std::__1::char_traits, std::1::allocator> const&) + 1152 2 carta_backend 0x1027b6ddc carta::FileExtInfoLoader::FillFileInfoFromImage(CARTA::FileInfoExtended&, std::1::basic_string<char, std::__1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::__1::char_traits, std::1::allocator>&) + 72 3 carta_backend 0x1027b6ba8 carta::FileExtInfoLoader::FillFileExtInfo(CARTA::FileInfoExtended&, std::1::basic_string<char, std::__1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::__1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::__1::char_traits, std::1::allocator>&) + 444 4 carta_backend 0x1027c4f58 carta::FileExtInfoLoader::FillFitsFileInfoMap(std::1::map<std::1::basic_string<char, std::1::char_traits, std::1::allocator>, CARTA::FileInfoExtended, std::1::less<std::__1::basic_string<char, std::1::char_traits, std::1::allocator>>, std::1::allocator<std::1::pair<std::1::basic_string<char, std::1::char_traits, std::1::allocator> const, CARTA::FileInfoExtended>>>&, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::1::char_traits, std::__1::allocator>&) + 512 5 carta_backend 0x10299a624 carta::Session::FillExtendedFileInfo(std::1::map<std::1::basic_string<char, std::__1::char_traits, std::1::allocator>, CARTA::FileInfoExtended, std::1::less<std::1::basic_string<char, std::1::char_traits, std::1::allocator>>, std::1::allocator<std::1::pair<std::1::basic_string<char, std::1::char_traits, std::1::allocator> const, CARTA::FileInfoExtended>>>&, CARTA::FileInfo&, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::1::char_traits, std::1::allocator> const&, std::1::basic_string<char, std::1::char_traits, std::1::allocator>&) + 336 6 carta_backend 0x10299c670 carta::Session::OnFileInfoRequest(CARTA::FileInfoRequest const&, unsigned int) + 156 7 carta_backend 0x1029acc74 carta::SessionManager::OnMessage(uWS::WebSocket<false, true, carta::PerSocketData>*, std::1::basic_string_view<char, std::__1::char_traits>, uWS::OpCode) + 1936 8 carta_backend 0x1029b5610 uWS::WebSocketContext<false, true, carta::PerSocketData>::handleFragment(char, unsigned long, unsigned int, int, bool, uWS::WebSocketState, void) + 636 9 carta_backend 0x1029b4878 bool uWS::WebSocketProtocol<true, uWS::WebSocketContext<false, true, carta::PerSocketData>>::consumeMessage<6u, unsigned char>(unsigned char, char&, unsigned int&, uWS::WebSocketState, void) + 812 10 carta_backend 0x1029b4400 uWS::WebSocketProtocol<true, uWS::WebSocketContext<false, true, carta::PerSocketData>>::consume(char, unsigned int, uWS::WebSocketState, void) + 168 11 carta_backend 0x1029b42f4 auto uWS::WebSocketContext<false, true, carta::PerSocketData>::init()::'lambda'(auto, char, int)::operator()(auto, char*, int) const + 152 12 carta_backend 0x102a5c034 us_loop_run + 208 13 carta_backend 0x1029b1250 carta::SessionManager::RunApp() + 260 14 carta_backend 0x10290dc40 main + 3500 15 dyld 0x1a4e1ff28 start + 2236

To Reproduce Steps to reproduce the behavior:

  1. download the test image
  2. load it with the file browser, the backend will crash when we request file info.

Expected behavior The image can be loaded successfully with CARTA

Platform info (please complete the following information):

kswang1029 commented 1 year ago

Just in case I attached the headers as seen via ds9

SIMPLE  =                    T / file does conform to FITS standard             
BITPIX  =                  -64 / number of bits per data pixel                  
NAXIS   =                    3 / number of data axes                            
NAXIS1  =                 1038 / length of data axis 1                          
NAXIS2  =                 1044 / length of data axis 2                          
NAXIS3  =                    1 / length of data axis 3                          
EXTEND  =                    T / FITS dataset may contain extensions            
COMMENT   FITS (Flexible Image Transport System) format is defined in 'Astronomy
COMMENT   and Astrophysics', volume 376, page 359; bibcode: 2001A&A...376..359H 
LBOUND1 =                 -511 / Pixel origin along axis 1                      
LBOUND2 =                 -527 / Pixel origin along axis 2                      
LBOUND3 =                    1 / Pixel origin along axis 3                      
OBJECT  = 'OMC2-3  '           / Title of the dataset                           
LABEL   = 'Flux Density'       / Label of the primary array                     
BUNIT   = 'mJy/arcsec**2'      / Units of the primary array                     
DATE    = '2019-12-20T13:08:28' / file creation date (YYYY-MM-DDThh:mm:ss UT)   
ORIGIN  = 'East Asian Observatory' / Origin of file                             
BSCALE  =                  1.0 / True_value = BSCALE * FITS_value + BZERO       
BZERO   =                  0.0 / True_value = BSCALE * FITS_value + BZERO       
HDUCLAS1= 'NDF     '           / Starlink NDF (hierarchical n-dim format)       
HDUCLAS2= 'DATA    '           / Array component subclass                       
HDSTYPE = 'NDF     '           / HDS data type of the component                 
TELESCOP= 'JCMT    '           / Name of Telescope                              

        ---- x,y,z triplet for JCMT relative to centre of earth ----            
ALT-OBS =               4120.0 / [m] Height of observatory above sea level      
LAT-OBS =      19.822838905884 / [deg] Latitude of Observatory                  
LONG-OBS=    -155.477027838737 / [deg] East longitude of observatory            
OBSGEO-X=    -5464588.19329381 / [m] Observatory geocentric X                   
OBSGEO-Y=    -2492999.61151657 / [m] Observatory geocentric Y                   
OBSGEO-Z=     2150655.66402721 / [m] Observatory geocentric Z                   
ETAL    =                 0.85 / Telescope efficiency                           

        ---- OMP and ORAC-DR Specific ----                                      
PROJECT = 'M16AL001'           / Project code                                   
RECIPE  = 'REDUCE_SCAN'        / ORAC-DR recipe                                 
DRGROUP =                      / Data Reduction group ID                        
MSBTITLE= 'OMC2-3  '           / Title of minimum schedulable block             
MSBID   = '3f3f88b94a5afadf3b7f93c20e2b8999' / Id of minimum schedulable block  
MSBTID  = 'JCMT_1576738413_721823' / Transaction ID of MSB                      
SURVEY  =                      / Survey Name                                    
RMTAGENT=                      / Name of Remote Agent                           
AGENTID =                      / Unique identifier for remote agent             
RQ_MNTAU=                  0.0 / Requested min tau constraint                   
RQ_MXTAU=                 0.12 / Requested max tau constraint                   

        ---- Obs Id, Date, Pointing Info ----                                   
STANDARD=                    F / True if the observation is a calibrator        
OBSNUM  =                   36 / Observation number                             
OBSEND  =                    F / True if file is last subscan in obs.           
UTDATE  =             20191219 / UT Date as integer in yyyymmdd format          
DATE-OBS= '2019-12-19T07:31:32.364' / Date of observation                       
DATE-END= '2019-12-19T07:52:16' / UTC Datetime of end of observation            
DUT1    =  -2.0037049101465E-6 / [d] UT1-UTC correction                         
DTAI    =                 37.0 / [s] TAI-UTC correction                         
OBSID   = 'scuba2_00036_20191219T073102' / Unique observation identifier        
OBSIDSS = 'scuba2_36_20191219T073102_850' / Unique observation subsys identifier
INSTAP  =                      / Subarray at tracking centre (if any)           
INSTAP_X=                  0.0 / [arcsec] Aperture X off. rel. to instr centre  
INSTAP_Y=                  0.0 / [arcsec] Aperture Y off. rel. to instr centre  
AMSTART =     1.43322681799104 / Airmass at start of sub-scan                   
AMEND   =     1.33464758721347 / Airmass at end of sub-scan                     
AZSTART =     118.767607269749 / [deg] Azimuth at sub-scan start                
AZEND   =     123.342559190997 / [deg] Azimuth at sub-scan end                  
ELSTART =     44.2448656882767 / [deg] Elevation at sub-scan start              
ELEND   =     48.5264437926744 / [deg] Elevation at sub-scan end                
TRACKSYS= 'J2000   '           / TCS Tracking coordinate system                 
BASEC1  =     83.8791666666667 / [deg] Base C1 at sub-scan start                
BASEC2  =    -5.01055555555555 / [deg] Base C2 at sub-scan start                
HSTSTART= '2019-12-18T21:31:32' / HST at start of observation                   
HSTEND  = '2019-12-18T21:52:16' / HST at end of observation                     
LSTSTART= '03:00:05.2518'      / LST at start of observation                    
LSTEND  = '03:20:53.2158'      / LST at end of observation                      

        ---- Integration time related -----                                     
SEQSTART=              1618389 / RTS index number of first frame                
SEQEND  =              1827767 / RTS index number of last frame                 

        ---- SCUBA-2 Specific ----                                              
INSTRUME= 'SCUBA-2 '           / Instrument name                                
SHUTTER =                  1.0 / shutter position 0-Closed 1-Open               
FILTER  = '850     '           / Filter name                                    
WAVELEN =              0.00085 / [m] Filter central wavelength                  
BANDWID =               7.0E-5 / [m] Filter bandwidth                           
DATAMODE=                    2 / Data Acquisition mode                          
BOLODIST=                 6.28 / [arcsec]  Nominal Bolometer spacing            
BBHEAT  =                  0.0 / [deg C] Blackbody temperature                  
MUXTEMP =                  0.0 / [K] Mux temperature                            
BASETEMP=             0.082222 / [K] Base temperature                           
MIXSETP =               5174.0 / [ohms] Mixing chamber set point                
SEQCOUNT=                    2 / Setup Sequence Counter                         

        ---- Environmental Data ----                                            
ATSTART =                  2.7 / [degC] Air temp at start                       
ATEND   =                  2.6 / [degC] Air temp at end                         
HUMSTART=      5.6392002029419 / Rel. Humidity at start                         
HUMEND  =     5.95839989852905 / Rel. Humidity at end                           
BPSTART =     624.200012207031 / [mbar] Pressure at start                       
BPEND   =     624.200012207031 / [mbar] Pressure at end                         
WNDSPDST=                  4.9 / [km/h] Wind Speed at start                     
WNDSPDEN=                 11.2 / [km/h] Wind Speed at end                       
WNDDIRST=     39.1616785366197 / [deg] Wind direction, azimuth at start         
WNDDIREN=     117.033573194985 / [deg] Wind direction, azimuth at end           
TAU225ST=                0.027 / Tau at 225 GHz from CSO at start               
TAU225EN=                0.028 / Tau at 225 GHz from CSO at end                 
TAUDATST= '2019-12-19T07:24:00' / Time of TAU225ST observation                  
TAUDATEN= '2019-12-19T07:44:00' / Time of TAU225EN observation                  
TAUSRC  = 'CSO225GHZ'          / Source of the TAU225 value                     
WVMTAUST=    0.037847852230072 / 183.31 GHz Tau via WVM at start                
WVMTAUEN=   0.0376123733520508 / 183.31 GHz Tau via WVM at end                  
WVMDATST= '2019-12-19T07:32:09' / Time of WVMTAUST                              
WVMDATEN= '2019-12-19T07:52:53' / Time of WVMTAUEN                              
SEEINGST=    0.363340556621552 / [arcsec] SAO atmospheric seeing (start)        
SEEINGEN=    0.368763566017151 / [arcsec] SAO atmospheric seeing (end)          
FRLEGTST=             6.741773 / [degC] Mean Front leg temperature - Start      
FRLEGTEN=            6.5073805 / [degC] Mean Front Leg temperature -End         
BKLEGTST=             7.517499 / [degC] Mean back leg temperature -Start        
BKLEGTEN=             7.305434 / [degC] Mean back leg temperature -End          

        ---- Switching and Map setup for the observation ----                   
SAM_MODE= 'scan    '           / Sampling Mode                                  
SW_MODE = 'self    '           / Switch Mode: CHOP, PSSW, NONE, etc             
INBEAM  =                      / Hardware in the beam                           
SEQ_TYPE= 'science '           / Type of sequence                               
OBS_TYPE= 'science '           / Type of observation                            
CHOP_CRD=                      / Chopping co-ordinate system                    
CHOP_FRQ=                      / [Hz] Chop frequency                            
CHOP_PA =                      / [deg] Chop PA; 0=in lat, 90=in long            
CHOP_THR=                      / [arcsec] Chop throw                            
JIGL_CNT=                      / Number of offsets in jiggle pattern            
JIGL_NAM=                      / File containing the jiggle offsets             
JIG_PA  =                      / [deg] Jiggling PA; 0=in lat, 90=in long        
JIG_CRD =                      / Jiggling co-ordinate system                    
JIG_SCAL=                      / [arcsec] Scale of jiggle pattern               
DRMWGHTS=                      / Name of file containing DREAM weights          
MAP_HGHT=               1800.0 / [arcsec] Requested height of map               
MAP_PA  =                  0.0 / [deg] Requested PA of map                      
MAP_WDTH=               1800.0 / [arcsec] Requested width of map                
LOCL_CRD= 'TRACKING'           / Local offset/map PA co-ordinate system         
MAP_X   =                  0.0 / [arcsec] Requested map offset from tel centre  
MAP_Y   =                  0.0 / [arcsec] Requested map offset from tel centre  
SCAN_CRD= 'FPLANE  '           / Co-ordinate system for scanning direction      
SCAN_VEL=                400.0 / [arcsec/sec] Scan velocity along scan axis     
SCAN_DY =                 60.0 / [arcsec] Scan spacing perp. to scan axis       
SCAN_PA =                  0.0 / [deg] Scan PA relative to SAM_CRDS             
SCAN_PAT= 'CURVY_PONG'         / Scan pattern name                              

        ---- SMU ----                                                           
ALIGN_DX=   0.0197358746081591 / SMU tables X axis focus offset                 
ALIGN_DY=    0.170623600482941 / SMU tables Y axis focus offset                 
FOCUS_DZ=   -0.361974895000458 / SMU tables Z axis focus offset                 
DAZ     =    -49.5774612426758 / SMU azimuth pointing offset                    
DEL     =     61.0950469970703 / SMU elevation pointing offset                  
UAZ     =    -2.55071777967403 / User azimuth pointing offset                   
UEL     =    0.170882101172176 / User elevation pointing offset                 

        ---- JOS parameters ----                                                
NUM_CYC =                    1 / Number of times to repeat entire recipe        
JOS_MULT=                    1 / MULT from JOS used in total steps calculation  
JOS_MIN =               209379 / MIN from JOS used in total steps calculation   
NDRKSTEP=                 1724 / Number of RTS steps for each Dark (if any)     
STBETDRK=               209379 / Target number of RTS steps between darks       
STARTIDX=                    1 / Index into pattern at start of obs             
FOCAXIS =                      / Focus Axis to move (X, Y, Z)                   
NFOCSTEP=                      / Number of focal position steps (odd number)    
FOCSTEP =                      / Distance between focus steps                   
FOCPOSN =                      / [mm] Relative SMU position                     

        ---- Miscellaneous ----                                                 
OCSCFG  = 'scuba2_20191219_073059_806562.xml' / OCS config filename             
DHSVER  = 'MOD     '           / Data Handling System Version                   
SIM_SMU =                    F / True if SMU data is simulated                  
SIM_TCS =                    F / True if TCS data is simulated                  
SIM_RTS =                    F / True if RTS data is simulated                  
SIM_POL =                    F / True if polarization data is simulated         
SIMULATE=                    F / True if any data are simulated                 
STATUS  = 'NORMAL  '           / Status of end of obervation                    
DOORSTST= 'Open    '           / Status of dome doors at start of observation   
DOORSTEN= 'Open    '           / Status of dome doors at end of observation     
ROOFSTST= 'Open    '           / Status of dome roof at start of observation    
ROOFSTEN= 'Open    '           / Status of dome roof at end of observation      
WND_BLND= 'GORE-TEX 1'         / Wind blind status                              
TMU_X   =                0.441 / TMU X Position                                 
TMU_Y   =     47.9990005493164 / TMU Y Position                                 
OPER_LOC= 'REMOTE  '           / Location from which telescope is operated      
OPER_SFT= 'NIGHT   '           / Type of shift in which telescope is operated   

        ---- Polarimeter Specific ----                                          
POL_MODE= 'CONSTANT'           / Step-and-integrate (STOP_START) or Spin (CONSTA
ROTAFREQ=                  0.0 / [Hz] Spin frequency (if spinning) of polarimete
POL_CRD = 'FPLANE  '           / Coordinate system of polarimeter               
POL_FAXS=                      / Frequency dependency of waveplate offset of pol
POLCALIN=                    F / True if polarimeter calibrator is in the beam  
POLWAVIN=                    F / True if polarimeter waveplate is in the beam   
POLANLIN=                    F / True if polarimeter analyzer is in the beam    

        ---- FTS Specific ----                                                  
FTS_MODE= 'UNKNOWN '           / Step-and-integrate (STEPINT) or fast-scanning  
SCANVEL =                  0.0 / [mm/s] Mirror scan rate in FSCAN mode          
FTS_IN  =                    F / True if FTS pickoff mirror is in the beam      
SCANDIR =                    0 / 1 -> back to front, -1 -> front to back        
STEPDIST=                  0.0 / [mm] Amount to move each step in STEPINT mode  
SIM_FTS =                    F / True if FTS data is simulated                  
FTS_SH8D= 'UNKNOWN '           / Status of FTS shutter in the 8D beam           
FTS_SH8C= 'UNKNOWN '           / Status of FTS shutter in the 8C beam           
FTS_CNTR=                228.0 / [mm] Approx mirror position at center of travel
        ---- Metadata Fixups ----                                               
BACKEND = 'SCUBA-2 '           / Name of the backend                            

        ---- Data Processing ----                                               
STEPTIME=  0.00594412883009825 / RTS step time during an RTS sequence           
EXP_TIME=     3.88477921485901 / [s] Median MAKEMAP exposure time               
NUMTILES=                    1 / No. of tiles covering the field                
TILENUM =                    1 / Index of this tile (1->NUMTILES)               
NCONTIG =                    1 / No. of contig. chunks within supplied data     
NCONTNCV=                    0 / No. of chunks that did not converge            
MEMLOW  =                    F / Was data chunked due to insufficient memory?   
NBOLOEFF=     2519.23558657097 / Effective bolometer count                      
PIPEVERS= '81f6459aea59554cf6dfa06318d4a33e2b0a1343' / Pipeline version         
ENGVERS = 'cfe0b47f8cdd36403c8d9f41cf96f61a2a742ff6' / Algorithm engine version 
PROCVERS= '20191031195053'     / Date of most recent commit                     
PRODUCT = 'reduced '           / Pipeline product                               
PRODID  = 'reduced-850um'      / Product ID                                     
OBSDEC  =    -5.01055555555556 / [deg] Reference ICRS Dec coordinate            
OBSRABL =     84.3077506143884 / [deg] Bottom left ICRS RA coordinate           
OBSDECBL=    -5.45039533700519 / [deg] Bottom left ICRS Dec coordinate          
OBSRATL =     84.3071809915603 / [deg] Top left ICRS RA coordinate              
OBSDECTL=    -4.58126962768879 / [deg] Top left ICRS Dec coordinate             
OBSRABR =     83.4397011261565 / [deg] Bottom right ICRS RA coordinate          
OBSDECBR=    -5.45038754275185 / [deg] Bottom right ICRS Dec coordinate         
OBSRATR =     83.4402852103858 / [deg] Top right ICRS RA coordinate             
OBSDECTR=    -4.58126308211471 / [deg] Top right ICRS Dec coordinate            
FRQSIGLO=     338.750327634247 / [GHz] Lower barycentric freq bound, signal side
FRQSIGHI=     367.845447799151 / [GHz] Upper barycentric freq bound, signal side
FRQIMGLO=                      / [GHz] Lower barycentric freq bound, image sideb
FRQIMGHI=                      / [GHz] Upper barycentric freq bound, image sideb
OBSRA   =     83.8791666666667 / [deg] Reference ICRS RA coordinate             
MJD-OBS =     58836.3135690261 / Modified Julian Date of observation            
CRPIX1  =                513.0 / Reference pixel on axis 1                      
CRPIX2  =                529.0 / Reference pixel on axis 2                      
CRPIX3  =                  1.0 / Reference pixel on axis 3                      
CRVAL1  =     83.8791666666666 / Value at ref. pixel on axis 1                  
CRVAL2  =    -5.01055555555555 / Value at ref. pixel on axis 2                  
CRVAL3  =     352.698870536833 / Value at ref. pixel on axis 3                  
CTYPE1  = 'RA---TAN'           / Type of co-ordinate on axis 1                  
CTYPE2  = 'DEC--TAN'           / Type of co-ordinate on axis 2                  
CTYPE3  = 'FREQ-W2F'           / Type of co-ordinate on axis 3                  
CD1_1   =  -8.3333333333333E-4 / Transformation matrix element                  
CD2_2   = 0.000833333333333335 / Transformation matrix element                  
CD3_3   =    -29.0457892836386 / Transformation matrix element                  
CUNIT3  = 'GHz     '           / Units for axis 3                               
RADESYS = 'FK5     '           / Reference frame for RA/DEC values              
EQUINOX =               2000.0 / [yr] Epoch of reference equinox                
SPECSYS = 'BARYCENT'           / Standard of rest for spectral axis             
VELOSYS =     1581.95213435082 / [m/s] Topo. apparent velocity of rest frame    
MJD-END =      58836.327962963 / MJD of end of observation                      
ASN_TYPE= 'obs     '           / Time-based selection criterion                 
FCF     =                 2340 / [mJy/arcsec**2/pW] Flux conversion factor      
ELAPTIME=     1244.47134211495 / [s] Total duration of all observations in map  
INSTREAM= 'JCMT    '           / Source of input stream                         
DPDATE  = '2019-12-20T13:08:24' / Data processing date                          
DPRCINST= 'jac-254016'         / Data processing recipe instance ID             
COMMENT                                                                         
COMMENT  ACKNOWLEDGEMENTS:                                                      
COMMENT  If you have used CADC facilities and products (such as these data)     
COMMENT  for your research, please include the following acknowledgement:       
COMMENT                                                                         
COMMENT  "This research used the facilities of the Canadian Astronomy Data      
COMMENT  Centre operated by the National Research Council of Canada with        
COMMENT  the support of the Canadian Space Agency."                             
COMMENT                                                                         
COMMENT  The following acknowledgement should appear at some point in any       
COMMENT  published papers containing data obtained with the JCMT:               
COMMENT                                                                         
COMMENT  "The James Clerk Maxwell Telescope is operated by the East Asian       
COMMENT  Observatory on behalf of The National Astronomical Observatory of      
COMMENT  Japan; Academia Sinica Institute of Astronomy and Astrophysics;        
COMMENT  the Korea Astronomy and Space Science Institute; the Operation,        
COMMENT  Maintenance and Upgrading Fund for Astronomical Telescopes and         
COMMENT  Facility Instruments, budgeted from the Ministry of Finance            
COMMENT  (MOF) of China and administrated by the Chinese Academy of             
COMMENT  Sciences (CAS), as well as the National Key R&D Program of China       
COMMENT  (No. 2017YFA0402700). Additional funding support is provided           
COMMENT  by the Science and Technology Facilities Council of the United         
COMMENT  Kingdom and participating universities in the United Kingdom and       
COMMENT  Canada."                                                               
COMMENT                                                                         
COMMENT  The following acknowledgement should appear at some point in any       
COMMENT  published papers containing data obtained with the JCMT prior to       
COMMENT  the handover to EAO on March 1 2015:                                   
COMMENT                                                                         
COMMENT  "The James Clerk Maxwell Telescope has historically been operated by   
COMMENT  the Joint Astronomy Centre on behalf of the Science and Technology     
COMMENT  Facilities Council of the United Kingdom, the Netherlands              
COMMENT  Organisation for Scientific Research, and the National Research        
COMMENT  Council of Canada."                                                    
COMMENT                                                                         
COMMENT  Authors are also asked to give the identification number(s), i.e.      
COMMENT  "Program ID", of the program(s) under which their data were obtained,  
COMMENT  e.g. M07AU05, M07BC13, M07BN10, or M07AI24. We recommend that this     
COMMENT  reference to the Program ID be made in the acknowledgement section     
COMMENT  at the end of the paper or in the Observations section of the paper.   

HISTORY History structure created 2019 Dec 20 12:47:12.663                      
HISTORY Update mode:   NORMAL   Current record: 13                              

HISTORY 1: 2019 Dec 20 13:08:03.199 - MAKEMAP         (SMURF V1.6.1)            
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_fmos                                       
HISTORY                                                                         
HISTORY Parameters: ABORTSOON=FALSE ALIGNSYS=FALSE BBM=                         
HISTORY    CHUNKCHANGE=[1.0577692386231]                                        
HISTORY    CONFIG=@^/net/kamaka/export/data/stardev-stable/bin/oracdr/cal/scuba2
HISTORY    /dimmconfig_M16AL001_R2.lis CROTA=0                                  
HISTORY    FBL=[1.4714478331714,-0.095127344166086]                             
HISTORY    FBR=[1.4562975115315,-0.095127208130703]                             
HISTORY    FLBND=[1.4562902020434,-0.095137261316989]                           
HISTORY    FUBND=[1.4714551425592,-0.079950848649021]                           
HISTORY    FTL=[1.4714378913775,-0.079958238924784]                             
HISTORY    FTR=[1.4563077057244,-0.079958124682965] FTSPORT=!                   
HISTORY    IN=@^oractempbawANr ITERMAPS=! JSATILES=FALSE LBND=[-511,-527]       
HISTORY    LBOUND=[-511,-527] MAXMEM=124912 METHOD='iterate' NTILE=1            
HISTORY    OUT=@s20191219_00036_850_fmos OUTFILES='oractemp0aJBWe' PIXREF=[0,0] 
HISTORY    PIXSIZE=3 POINTING=! RATE_LIMITED=FALSE REF=! REFLAT='-5:00:38.0'    
HISTORY    REFLON='5:35:31.00' REFPIX1=! SYSTEM='TRACKING' TAUSRC='AUTO'        
HISTORY    TILEDIMS=! TRIM=FALSE UBND=[526,516] UBOUND=[526,516] WVMLOG=!       
HISTORY    FLATMETH='POLYNOMIAL' FLATORDER=1 FLATSNR=3 FLATUSENEXT=!            
HISTORY    RESIST=@^$<STARLINK_DIR>/share/smurf/resist.cfg RESPMASK=TRUE        
HISTORY    MSG_FILTER=! QUIET=!                                                 
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/smurf/smurf_mon    
HISTORY Group: CONFIG="AST.FILT_DIFF=0, AST.MAPSPIKE=10,                        
HISTORY    AST.MAPSPIKE_FREEZE=0.0, AST.SKIP=5, AST.ZERO_ACCUM=0,               
HISTORY    AST.ZERO_FREEZE=0.0, AST.ZERO_LOWHITS=0, AST.ZERO_MASK=0,            
HISTORY    AST.ZERO_NITER=0, AST.ZERO_NOTLAST=1, AST.ZERO_SNR=5,                
HISTORY    AST.ZERO_SNR_FFCLEAN=0, AST.ZERO_SNR_FWHM=0, AST.ZERO_SNR_HIPASS=0.0,
HISTORY    AST.ZERO_SNR_LOPASS=0.0, AST.ZERO_SNR_LOW=-1.1, AST.ZERO_UNION=1,    
HISTORY    BADFRAC=0.05, BOLOMAP=0, CHUNKFACTOR=1.0, CHUNKWEIGHT=1.0,           
HISTORY    CLEANDK.BADFRAC=0.05, CLEANDK.COMPREPROCESS=0, CLEANDK.DCFITBOX=30,  
HISTORY    CLEANDK.DCLIMCORR=10, CLEANDK.DCMAXSTEPS=4, CLEANDK.DCSMOOTH=50,     
HISTORY    CLEANDK.DCTHRESH=25.0,                                               
HISTORY    CLEANDK.DECONVMCE=0, CLEANDK.DELAY=0, CLEANDK.DKCLEAN=0,             
HISTORY    CLEANDK.FILLGAPS=1, CLEANDK.FILT_EDGEHIGH=0, CLEANDK.FILT_EDGELOW=0, 
HISTORY    CLEANDK.FILT_EDGE_LARGESCALE=0, CLEANDK.FILT_EDGE_SMALLSCALE=0,      
HISTORY    CLEANDK.FILT_ORDER=0, CLEANDK.FLAGFAST=0, CLEANDK.FLAGSLOW=0,        
HISTORY    CLEANDK.FLAGSTAT=0, CLEANDK.NOISECLIPHIGH=0.0,                       
HISTORY    CLEANDK.NOISECLIPLOW=0.0, CLEANDK.NOISECLIPPRECOM=0,                 
HISTORY    CLEANDK.ORDER=1, CLEANDK.PCALEN=0, CLEANDK.PCATHRESH=0,              
HISTORY    CLEANDK.SPIKEBOX=50, CLEANDK.SPIKETHRESH=0, CLEANDK.WHITEN=0,        
HISTORY    CLEANDK.ZEROPAD=0, COM.BOXCAR=0, COM.BOXCARD=0, COM.BOXFACT=0,       
HISTORY    COM.BOXMIN=0, COM.CORR_ABSTOL=0.2, COM.CORR_TOL=5, COM.FILL=0,       
HISTORY    COM.FREEZE_FLAGS=0, COM.GAIN_ABSTOL=3, COM.GAIN_BOX=-30.0,           
HISTORY    COM.GAIN_FGOOD=0.25, COM.GAIN_IS_ONE=0, COM.GAIN_POSITIVE=1,         
HISTORY    COM.GAIN_RAT=4, COM.GAIN_TOL=5, COM.NITER=1, COM.NOFLAG=0,           
HISTORY    COM.NOREMOVE=0, COM.NOTFIRST=0, COM.NSIGMA=3, COM.OFFSET_IS_ZERO=0,  
HISTORY    COM.OLDALG=0, COM.PERARRAY=0, COM.SIG_LIMIT=5.0,                     
HISTORY    COM.SIG_WING=1.0, COM.WEIGHT=0, COM.ZERO_ACCUM=0,                    
HISTORY    COM.ZERO_FREEZE=0.0, COM.ZERO_LOWHITS=0, COM.ZERO_MASK=0,            
HISTORY    COM.ZERO_NITER=0, COM.ZERO_NOTLAST=1, COM.ZERO_SNR=0,                
HISTORY    COM.ZERO_SNR_FFCLEAN=0, COM.ZERO_SNR_HIPASS=0.0,                     
HISTORY    COM.ZERO_SNR_LOPASS=0.0, COM.ZERO_UNION=1, COMPREPROCESS=0,          
HISTORY    DCFITBOX=30, DCLIMCORR=0,                                            
HISTORY    DCMAXSTEPS=4, DCSMOOTH=50, DCTHRESH=25.0, DECONVMCE=0, DELAY=0.0,    
HISTORY    DIAG.APPEND=0, DIAG.BOLO=WMEAN, DIAG.CUBE=0, DIAG.LASTONLY=0,        
HISTORY    DIAG.MAP=0, DIAG.MASK=0, DIAG.MINGOOD=0.2,                           
HISTORY    DIAG.MODELS=(com,ext,flt,ast,res), DIAG.POWER=0, DIAG.QUAL=0,        
HISTORY    DIAG.RES_AFTER=0, DIAG.RES_BEFORE=0, DIAG.TIME=1, DIAG.XPIX=0,       
HISTORY    DIAG.YPIX=0, DKCLEAN=0, DKS.BOXCAR=100, DKS.REPLACEBAD=0, DOCLEAN=1, 
HISTORY    DOWNSAMPFREQ=0, DOWNSAMPSCALE=-1, ENSUREFLAT=1, EXPORTCLEAN=0,       
HISTORY    EXPORTLONLAT=0, EXPORTNDF=0,                                         
HISTORY    EXT.CSOFIT=$STARLINK_DIR/share/smurf/csofit2.dat,                    
HISTORY    EXT.DESPIKEWVM=30.0, EXT.DESPIKEWVMTOL=0.10, EXT.IMPORT=0,           
HISTORY    EXT.SMOOTHWVM=10.0,                                                  
HISTORY    EXT.TAUMETHOD=adaptive, EXT.TAURELATION.450=(26.0,-0.012),           
HISTORY    EXT.TAURELATION.850=(4.6,-0.0043), EXT.TAUSRC=auto,                  
HISTORY    EXT.WVMFIT=$STARLINK_DIR/share/smurf/wvmfit2.dat, FAKEDELAY=0.0,     
HISTORY    FAKEMCE=0, FAKESCALE=1, FILLGAPS=1, FILLGAPS_NOISE=1,                
HISTORY    FILT_EDGEHIGH=0, FILT_EDGELOW=0, FILT_EDGE_LARGESCALE=0,             
HISTORY    FILT_EDGE_SMALLSCALE=0, FILT_ORDER=0, FLAGFAST=1000, FLAGSLOW=30,    
HISTORY    FLT.FILT_EDGEHIGH=0, FLT.FILT_EDGELOW=0,                             
HISTORY    FLT.FILT_EDGE_LARGESCALE=600, FLT.FILT_EDGE_LARGESCALE_LAST=200,     
HISTORY    FLT.FILT_EDGE_SMALLSCALE=0, FLT.FILT_ORDER=4, FLT.NOTFIRST=0,        
HISTORY    FLT.RING_BOX1=0.5, FLT.RING_BOX2=1.5, FLT.RING_FREEZE=10,            
HISTORY    FLT.RING_MASK=0, FLT.RING_MINSIZE=0.0, FLT.RING_NSIGMA=2.0,          
HISTORY    FLT.RING_WING=0.3, FLT.UNDOFIRST=1, FLT.WHITEN=0, FLT.ZEROPAD=0,     
HISTORY    FLT.ZERO_ACCUM=0, FLT.ZERO_FREEZE=0.0, FLT.ZERO_LOWHITS=0,           
HISTORY    FLT.ZERO_MASK=0, FLT.ZERO_NITER=2, FLT.ZERO_NOTLAST=1,               
HISTORY    FLT.ZERO_SNR=5, FLT.ZERO_SNRLO=3, FLT.ZERO_SNR_FFCLEAN=0,            
HISTORY    FLT.ZERO_SNR_HIPASS=0.0, FLT.ZERO_SNR_LOPASS=0.0, FLT.ZERO_UNION=1,  
HISTORY    GAI.FLATFIELD=0, GROUPSUBARRAY=0, HITSLIMIT=0.01, IMPORTLUT=0,       
HISTORY    IMPORTSKY=0, IPANGOFF=0.0, IPMODEL=JAN2018, IPOFFSET=0.0, ITERMAP=0, 
HISTORY    MAPLAG=0.0, MAPTOL=0.001, MAPTOL_BOX=0.0, MAPTOL_MASK=AST,           
HISTORY    MAPTOL_MEAN=1, MAXLEN=0, MEMCHECK=0,                                 
HISTORY    MODELORDER=(com,gai,ext,flt,ast,noi), NOEXPORTSETBAD=0,              
HISTORY    NOI.BOX_SIZE=-15, NOI.BOX_TYPE=1, NOI.CALCFIRST=0, NOI.DCFITBOX=0,   
HISTORY    NOI.DCLIMCORR=10, NOI.DCMAXSTEPS=10, NOI.DCSMOOTH=50,                
HISTORY    NOI.DCTHRESH=25.0, NOI.EXPORT=0, NOI.FILLGAPS=1, NOI.IMPORT=0,       
HISTORY    NOI.SPIKEBOX=50, NOI.SPIKETHRESH=0, NOI.USEVAR=0,                    
HISTORY    NOI.ZEROPAD=0, NOISECLIPHIGH=4, NOISECLIPLOW=0, NOISECLIPPRECOM=0,   
HISTORY    NUMITER=-300, OPTEFFDIV=1, ORDER=1, PCA.BACKOFF=0, PCA.BOXCAR=0,     
HISTORY    PCA.BOXCARD=0, PCA.BOXFACT=0, PCA.BOXMIN=0, PCA.COMFILL=0,           
HISTORY    PCA.CORR_ABSTOL=0.2, PCA.CORR_TOL=5, PCA.FILL=0, PCA.FREEZE_FLAGS=0, 
HISTORY    PCA.GAIN_ABSTOL=3, PCA.GAIN_BOX=-30.0,                               
HISTORY    PCA.GAIN_FGOOD=0.25, PCA.GAIN_IS_ONE=0, PCA.GAIN_POSITIVE=1,         
HISTORY    PCA.GAIN_RAT=4, PCA.GAIN_TOL=10, PCA.NITER=1, PCA.NOFLAG=0,          
HISTORY    PCA.NOISELIM=0.1, PCA.NOREMOVE=0, PCA.NOTFIRST=0, PCA.NSIGMA=3,      
HISTORY    PCA.OFFSET_IS_ZERO=0, PCA.OLDALG=0, PCA.PCATHRESH=4.0,               
HISTORY    PCA.PCATHRESH_FREEZE=0.0, PCA.PERARRAY=1, PCA.SAMPLIM=0.8,           
HISTORY    PCA.SIG_LIMIT=0, PCA.SIG_WING=1.0, PCA.WEIGHT=0, PCA.ZERO_ACCUM=0,   
HISTORY    PCA.ZERO_FREEZE=0.0, PCA.ZERO_LOWHITS=0, PCA.ZERO_MASK=0,            
HISTORY    PCA.ZERO_NITER=0, PCA.ZERO_NOTLAST=1, PCA.ZERO_SNR=0.0,              
HISTORY    PCA.ZERO_SNR_FFCLEAN=0, PCA.ZERO_SNR_FWHM=0,                         
HISTORY    PCA.ZERO_SNR_HIPASS=0.0, PCA.ZERO_SNR_LOPASS=0.0,                    
HISTORY    PCA.ZERO_SNR_LOW=-1.1,                                               
HISTORY    PCA.ZERO_UNION=1, PCALEN=0, PCATHRESH=0, PLN.NOTFIRST=0, POL2FP=0,   
HISTORY    SAMPCUBE=0, SHORTMAP=0, SMO.BOXCAR=-3, SMO.NOTFIRST=1,               
HISTORY    SMO.TYPE=median, SPIKEBOX=50, SPIKETHRESH=0, SSN.BINSIZE=-4,         
HISTORY    SSN.KSIGMA=1.0, SSN.NOTFIRST=0, SSN.SECLEN=10, SSN.THRESH=0,         
HISTORY    SSN.ZERO_ACCUM=0, SSN.ZERO_FREEZE=0.0,                               
HISTORY    SSN.ZERO_LOWHITS=0, SSN.ZERO_MASK=0, SSN.ZERO_NITER=2,               
HISTORY    SSN.ZERO_NOTLAST=1, SSN.ZERO_SNR=0, SSN.ZERO_SNR_FFCLEAN=0,          
HISTORY    SSN.ZERO_SNR_HIPASS=0.0, SSN.ZERO_SNR_LOPASS=0.0, SSN.ZERO_UNION=1,  
HISTORY    TMP.DOCOS=0, TMP.DOSIN=0, TMP.TRIGOFFSET=0, TSTEP=-0.5,              
HISTORY    VALIDATE_SCANS=1, VARMAPMETHOD=1, WHITEN=0, ZEROPAD=0"               
HISTORY Group: IN="s8a20191219_00036_0001, s8a20191219_00036_0002,              
HISTORY    s8a20191219_00036_0003, s8a20191219_00036_0004,                      
HISTORY    s8a20191219_00036_0005, s8a20191219_00036_0006,                      
HISTORY    s8a20191219_00036_0007, s8a20191219_00036_0008,                      
HISTORY    s8a20191219_00036_0009, s8a20191219_00036_0010,                      
HISTORY    s8a20191219_00036_0011, s8a20191219_00036_0012,                      
HISTORY    s8a20191219_00036_0013, s8a20191219_00036_0014,                      
HISTORY    s8a20191219_00036_0015, s8a20191219_00036_0016,                      
HISTORY    s8a20191219_00036_0017, s8a20191219_00036_0018,                      
HISTORY    s8a20191219_00036_0019, s8a20191219_00036_0020,                      
HISTORY    s8a20191219_00036_0021, s8a20191219_00036_0022,                      
HISTORY    s8a20191219_00036_0023, s8a20191219_00036_0024,                      
HISTORY    s8a20191219_00036_0025, s8a20191219_00036_0026,                      
HISTORY    s8a20191219_00036_0027, s8a20191219_00036_0028,                      
HISTORY    s8a20191219_00036_0029, s8a20191219_00036_0030,                      
HISTORY    s8a20191219_00036_0031, s8a20191219_00036_0032,                      
HISTORY    s8a20191219_00036_0033, s8a20191219_00036_0034,                      
HISTORY    s8a20191219_00036_0035, s8a20191219_00036_0036,                      
HISTORY    s8a20191219_00036_0037, s8b20191219_00036_0001,                      
HISTORY    s8b20191219_00036_0002, s8b20191219_00036_0003,                      
HISTORY    s8b20191219_00036_0004, s8b20191219_00036_0005,                      
HISTORY    s8b20191219_00036_0006, s8b20191219_00036_0007,                      
HISTORY    s8b20191219_00036_0008, s8b20191219_00036_0009,                      
HISTORY    s8b20191219_00036_0010, s8b20191219_00036_0011,                      
HISTORY    s8b20191219_00036_0012, s8b20191219_00036_0013,                      
HISTORY    s8b20191219_00036_0014, s8b20191219_00036_0015,                      
HISTORY    s8b20191219_00036_0016, s8b20191219_00036_0017,                      
HISTORY    s8b20191219_00036_0018, s8b20191219_00036_0019,                      
HISTORY    s8b20191219_00036_0020, s8b20191219_00036_0021,                      
HISTORY    s8b20191219_00036_0022, s8b20191219_00036_0023,                      
HISTORY    s8b20191219_00036_0024, s8b20191219_00036_0025,                      
HISTORY    s8b20191219_00036_0026, s8b20191219_00036_0027,                      
HISTORY    s8b20191219_00036_0028, s8b20191219_00036_0029,                      
HISTORY    s8b20191219_00036_0030, s8b20191219_00036_0031,                      
HISTORY    s8b20191219_00036_0032, s8b20191219_00036_0033,                      
HISTORY    s8b20191219_00036_0034, s8b20191219_00036_0035,                      
HISTORY    s8b20191219_00036_0036, s8b20191219_00036_0037,                      
HISTORY    s8c20191219_00036_0001, s8c20191219_00036_0002,                      
HISTORY    s8c20191219_00036_0003, s8c20191219_00036_0004,                      
HISTORY    s8c20191219_00036_0005, s8c20191219_00036_0006,                      
HISTORY    s8c20191219_00036_0007, s8c20191219_00036_0008,                      
HISTORY    s8c20191219_00036_0009, s8c20191219_00036_0010,                      
HISTORY    s8c20191219_00036_0011, s8c20191219_00036_0012,                      
HISTORY    s8c20191219_00036_0013, s8c20191219_00036_0014,                      
HISTORY    s8c20191219_00036_0015, s8c20191219_00036_0016,                      
HISTORY    s8c20191219_00036_0017, s8c20191219_00036_0018,                      
HISTORY    s8c20191219_00036_0019, s8c20191219_00036_0020,                      
HISTORY    s8c20191219_00036_0021, s8c20191219_00036_0022,                      
HISTORY    s8c20191219_00036_0023, s8c20191219_00036_0024,                      
HISTORY    s8c20191219_00036_0025, s8c20191219_00036_0026,                      
HISTORY    s8c20191219_00036_0027, s8c20191219_00036_0028,                      
HISTORY    s8c20191219_00036_0029, s8c20191219_00036_0030,                      
HISTORY    s8c20191219_00036_0031, s8c20191219_00036_0032,                      
HISTORY    s8c20191219_00036_0033, s8c20191219_00036_0034,                      
HISTORY    s8c20191219_00036_0035, s8c20191219_00036_0036,                      
HISTORY    s8c20191219_00036_0037, s8d20191219_00036_0001,                      
HISTORY    s8d20191219_00036_0002, s8d20191219_00036_0003,                      
HISTORY    s8d20191219_00036_0004, s8d20191219_00036_0005,                      
HISTORY    s8d20191219_00036_0006, s8d20191219_00036_0007,                      
HISTORY    s8d20191219_00036_0008, s8d20191219_00036_0009,                      
HISTORY    s8d20191219_00036_0010, s8d20191219_00036_0011,                      
HISTORY    s8d20191219_00036_0012, s8d20191219_00036_0013,                      
HISTORY    s8d20191219_00036_0014, s8d20191219_00036_0015,                      
HISTORY    s8d20191219_00036_0016, s8d20191219_00036_0017,                      
HISTORY    s8d20191219_00036_0018, s8d20191219_00036_0019,                      
HISTORY    s8d20191219_00036_0020, s8d20191219_00036_0021,                      
HISTORY    s8d20191219_00036_0022, s8d20191219_00036_0023,                      
HISTORY    s8d20191219_00036_0024, s8d20191219_00036_0025,                      
HISTORY    s8d20191219_00036_0026, s8d20191219_00036_0027,                      
HISTORY    s8d20191219_00036_0028, s8d20191219_00036_0029,                      
HISTORY    s8d20191219_00036_0030, s8d20191219_00036_0031,                      
HISTORY    s8d20191219_00036_0032, s8d20191219_00036_0033,                      
HISTORY    s8d20191219_00036_0034, s8d20191219_00036_0035,                      
HISTORY    s8d20191219_00036_0036, s8d20191219_00036_0037"                      
HISTORY Group:                                                                  
HISTORY    RESIST="HEATEFF=$STARLINK_DIR/share/smurf/sg850_m1003d1004_heateff.sd
HISTORY    f, REFRES=3.0"                                                       

HISTORY 2: 2019 Dec 20 13:08:04.068 - SETTITLE        (KAPPA 2.6-4)             
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_fmos                                       
HISTORY                                                                         
HISTORY Parameters: NDF=@s20191219_00036_850_fmos TITLE='OMC2-3' MSG_FILTER=!   
HISTORY    QUIET=!                                                              
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/ndfpack_mon  

HISTORY 3: 2019 Dec 20 13:08:04.476 - ORAC-DR - _MAKEMAP_FRAME_ (81f645)        
HISTORY User: jsaproc   Host: kamaka  Width: 58                                 
HISTORY Dataset: s20191219_00036_850_fmos                                       
HISTORY                                                                         
HISTORY Astro::FITS::Header::NDF                                                
HISTORY s20191219_00036_850_fmos                                                
HISTORY Arguments:                                                              
HISTORY    /net/kamaka/export/data/stardev-stable/bin/oracdr/src/b              
HISTORY    in/oracdr -nodisplay -log hs -verbose -batch -loop file              
HISTORY    -file /tmp/O4xxMDUf7i --recpars recpars-M16AL001.ini                 
HISTORY Software:                                                               
HISTORY /net/kamaka/export/data/stardev-stable/Perl/bin/perl                    

HISTORY 4: 2019 Dec 20 13:08:05.269 - CMULT           (KAPPA 2.6-4)             
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_cal                                        
HISTORY                                                                         
HISTORY Parameters: IN=@s20191219_00036_850_fmos OUT=@s20191219_00036_850_cal   
HISTORY    SCALAR=2340 TITLE=! MSG_FILTER=! QUIET=!                             
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/kappa_mon    

HISTORY 5: 2019 Dec 20 13:08:05.677 - SETUNITS        (KAPPA 2.6-4)             
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_cal                                        
HISTORY                                                                         
HISTORY Parameters: MODIFY=FALSE NDF=@s20191219_00036_850_cal                   
HISTORY    UNITS='mJy/arcsec**2' MSG_FILTER=! QUIET=!                           
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/ndfpack_mon  

HISTORY 6: 2019 Dec 20 13:08:05.801 - ORAC-DR - _CALIBRATE_DATA_ (81f645)       
HISTORY User: jsaproc   Host: kamaka  Width: 58                                 
HISTORY Dataset: s20191219_00036_850_cal                                        
HISTORY                                                                         
HISTORY Astro::FITS::Header::NDF                                                
HISTORY s20191219_00036_850_cal                                                 
HISTORY Arguments:                                                              
HISTORY    /net/kamaka/export/data/stardev-stable/bin/oracdr/src/b              
HISTORY    in/oracdr -nodisplay -log hs -verbose -batch -loop file              
HISTORY    -file /tmp/O4xxMDUf7i --recpars recpars-M16AL001.ini                 
HISTORY Software:                                                               
HISTORY /net/kamaka/export/data/stardev-stable/Perl/bin/perl                    

HISTORY 7: 2019 Dec 20 13:08:06.096 - ORAC-DR - _CALIBRATE_DATA_ (81f645)       
HISTORY User: jsaproc   Host: kamaka  Width: 58                                 
HISTORY Dataset: s20191219_00036_850_cal                                        
HISTORY                                                                         
HISTORY Astro::FITS::Header::NDF                                                
HISTORY s20191219_00036_850_cal                                                 
HISTORY Arguments:                                                              
HISTORY    /net/kamaka/export/data/stardev-stable/bin/oracdr/src/b              
HISTORY    in/oracdr -nodisplay -log hs -verbose -batch -loop file              
HISTORY    -file /tmp/O4xxMDUf7i --recpars recpars-M16AL001.ini                 
HISTORY Software:                                                               
HISTORY /net/kamaka/export/data/stardev-stable/Perl/bin/perl                    

HISTORY 8: 2019 Dec 20 13:08:06.188 - NDFCOPY         (KAPPA 2.6-4)             
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_reduced                                    
HISTORY                                                                         
HISTORY Parameters: COMP='DATA' EXTEN=FALSE IN=@s20191219_00036_850_cal LIKE=!  
HISTORY    OUT=@s20191219_00036_850_reduced TITLE=! TRIM=FALSE TRIMBAD=FALSE    
HISTORY    TRIMWCS=TRUE MSG_FILTER=! QUIET=!                                    
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/ndfpack_mon  

HISTORY 9: 2019 Dec 20 13:08:06.896 - ORAC-DR - _TAG_AS_REDUCED_PRODUCT_ (81f645
HISTORY )                                                                       
HISTORY User: jsaproc   Host: kamaka  Width: 58                                 
HISTORY Dataset: s20191219_00036_850_reduced                                    
HISTORY                                                                         
HISTORY Astro::FITS::Header::NDF                                                
HISTORY s20191219_00036_850_reduced                                             
HISTORY Arguments:                                                              
HISTORY    /net/kamaka/export/data/stardev-stable/bin/oracdr/src/b              
HISTORY    in/oracdr -nodisplay -log hs -verbose -batch -loop file              
HISTORY    -file /tmp/O4xxMDUf7i --recpars recpars-M16AL001.ini                 
HISTORY Software:                                                               
HISTORY /net/kamaka/export/data/stardev-stable/Perl/bin/perl                    

HISTORY 10: 2019 Dec 20 13:08:27.565 - starperl                                 
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_reduced                                    
HISTORY                                                                         
HISTORY Arguments: /net/kamaka/export/data/stardev-stable/Perl/bin/jsawrapdr    
HISTORY    --debugxfer                                                          
HISTORY    --outdir=/export/data/jsa_proc/scratch/000/000254/000254016/2019-12-2
HISTORY    0_12-46-03                                                           
HISTORY    --inputs=/net/kamaka/export/data/jsa_proc/input/000/000254/000254016/
HISTORY    input_files_job.lis --id=jac-254016 --mode=night --cleanup=cadc      
HISTORY    --drparameters=--recpars recpars-M16AL001.ini -persist               
HISTORY    --transdir=/net/kamaka/export/data/jsa_proc/output/000/000254/0002540
HISTORY    16                                                                   
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/starperl           

HISTORY 11: 2019 Dec 20 13:08:27.701 - WCSATTRIB       (KAPPA 2.6-4)            
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_reduced                                    
HISTORY                                                                         
HISTORY Parameters: MODE='MSet' NDF=@s20191219_00036_850_reduced.sdf REMAP=TRUE 
HISTORY    SETTING='System(1)=FK5,System(3)=FREQ,StdOfRest=BARY' MSG_FILTER=!   
HISTORY    QUIET=!                                                              
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/wcsattrib    

HISTORY 12: 2019 Dec 20 13:08:27.895 - FITSMOD         (KAPPA 2.6-4)            
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_reduced                                    
HISTORY                                                                         
HISTORY Parameters: EXISTS=TRUE MODE='File' NDF=@s20191219_00036_850_reduced.sdf
HISTORY    READONLY=FALSE TABLE=@/tmp/NH0mULwNAS MSG_FILTER=! QUIET=!           
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/fitsmod      

HISTORY 13: 2019 Dec 20 13:08:28.082 - FITSMOD         (KAPPA 2.6-4)            
HISTORY User: jsaproc   Host: kamaka  Width: 72                                 
HISTORY Dataset: s20191219_00036_850_reduced                                    
HISTORY                                                                         
HISTORY Parameters: EXISTS=TRUE MODE='FILE' NDF=@s20191219_00036_850_reduced.sdf
HISTORY    READONLY=FALSE TABLE=@/tmp/MK5V3x3VhZ MSG_FILTER=! QUIET=!           
HISTORY Software: /net/kamaka/export/data/stardev-stable/bin/kappa/fitsmod      

                               / Provenance:                                    
PRVCNT  =                  140 / Number of parents                              
PRV1    = 's8a20191219_00036_0002.sdf' / Name of the 1st parent                 
PRV2    = 's8a20191219_00036_0003.sdf' / Name of the 2nd parent                 
PRV3    = 's8a20191219_00036_0004.sdf' / Name of the 3rd parent                 
PRV4    = 's8a20191219_00036_0005.sdf' / Name of the 4th parent                 
PRV5    = 's8a20191219_00036_0006.sdf' / Name of the 5th parent                 
PRV6    = 's8a20191219_00036_0007.sdf' / Name of the 6th parent                 
PRV7    = 's8a20191219_00036_0008.sdf' / Name of the 7th parent                 
PRV8    = 's8a20191219_00036_0009.sdf' / Name of the 8th parent                 
PRV9    = 's8a20191219_00036_0010.sdf' / Name of the 9th parent                 
PRV10   = 's8a20191219_00036_0011.sdf' / Name of the 10th parent                
PRV11   = 's8a20191219_00036_0012.sdf' / Name of the 11th parent                
PRV12   = 's8a20191219_00036_0013.sdf' / Name of the 12th parent                
PRV13   = 's8a20191219_00036_0014.sdf' / Name of the 13th parent                
PRV14   = 's8a20191219_00036_0015.sdf' / Name of the 14th parent                
PRV15   = 's8a20191219_00036_0016.sdf' / Name of the 15th parent                
PRV16   = 's8a20191219_00036_0017.sdf' / Name of the 16th parent                
PRV17   = 's8a20191219_00036_0018.sdf' / Name of the 17th parent                
PRV18   = 's8a20191219_00036_0019.sdf' / Name of the 18th parent                
PRV19   = 's8a20191219_00036_0020.sdf' / Name of the 19th parent                
PRV20   = 's8a20191219_00036_0021.sdf' / Name of the 20th parent                
PRV21   = 's8a20191219_00036_0022.sdf' / Name of the 21st parent                
PRV22   = 's8a20191219_00036_0023.sdf' / Name of the 22nd parent                
PRV23   = 's8a20191219_00036_0024.sdf' / Name of the 23rd parent                
PRV24   = 's8a20191219_00036_0025.sdf' / Name of the 24th parent                
PRV25   = 's8a20191219_00036_0026.sdf' / Name of the 25th parent                
PRV26   = 's8a20191219_00036_0027.sdf' / Name of the 26th parent                
PRV27   = 's8a20191219_00036_0028.sdf' / Name of the 27th parent                
PRV28   = 's8a20191219_00036_0029.sdf' / Name of the 28th parent                
PRV29   = 's8a20191219_00036_0030.sdf' / Name of the 29th parent                
PRV30   = 's8a20191219_00036_0031.sdf' / Name of the 30th parent                
PRV31   = 's8a20191219_00036_0032.sdf' / Name of the 31st parent                
PRV32   = 's8a20191219_00036_0033.sdf' / Name of the 32nd parent                
PRV33   = 's8a20191219_00036_0034.sdf' / Name of the 33rd parent                
PRV34   = 's8a20191219_00036_0035.sdf' / Name of the 34th parent                
PRV35   = 's8a20191219_00036_0036.sdf' / Name of the 35th parent                
PRV36   = 's8b20191219_00036_0002.sdf' / Name of the 36th parent                
PRV37   = 's8b20191219_00036_0003.sdf' / Name of the 37th parent                
PRV38   = 's8b20191219_00036_0004.sdf' / Name of the 38th parent                
PRV39   = 's8b20191219_00036_0005.sdf' / Name of the 39th parent                
PRV40   = 's8b20191219_00036_0006.sdf' / Name of the 40th parent                
PRV41   = 's8b20191219_00036_0007.sdf' / Name of the 41st parent                
PRV42   = 's8b20191219_00036_0008.sdf' / Name of the 42nd parent                
PRV43   = 's8b20191219_00036_0009.sdf' / Name of the 43rd parent                
PRV44   = 's8b20191219_00036_0010.sdf' / Name of the 44th parent                
PRV45   = 's8b20191219_00036_0011.sdf' / Name of the 45th parent                
PRV46   = 's8b20191219_00036_0012.sdf' / Name of the 46th parent                
PRV47   = 's8b20191219_00036_0013.sdf' / Name of the 47th parent                
PRV48   = 's8b20191219_00036_0014.sdf' / Name of the 48th parent                
PRV49   = 's8b20191219_00036_0015.sdf' / Name of the 49th parent                
PRV50   = 's8b20191219_00036_0016.sdf' / Name of the 50th parent                
PRV51   = 's8b20191219_00036_0017.sdf' / Name of the 51st parent                
PRV52   = 's8b20191219_00036_0018.sdf' / Name of the 52nd parent                
PRV53   = 's8b20191219_00036_0019.sdf' / Name of the 53rd parent                
PRV54   = 's8b20191219_00036_0020.sdf' / Name of the 54th parent                
PRV55   = 's8b20191219_00036_0021.sdf' / Name of the 55th parent                
PRV56   = 's8b20191219_00036_0022.sdf' / Name of the 56th parent                
PRV57   = 's8b20191219_00036_0023.sdf' / Name of the 57th parent                
PRV58   = 's8b20191219_00036_0024.sdf' / Name of the 58th parent                
PRV59   = 's8b20191219_00036_0025.sdf' / Name of the 59th parent                
PRV60   = 's8b20191219_00036_0026.sdf' / Name of the 60th parent                
PRV61   = 's8b20191219_00036_0027.sdf' / Name of the 61st parent                
PRV62   = 's8b20191219_00036_0028.sdf' / Name of the 62nd parent                
PRV63   = 's8b20191219_00036_0029.sdf' / Name of the 63rd parent                
PRV64   = 's8b20191219_00036_0030.sdf' / Name of the 64th parent                
PRV65   = 's8b20191219_00036_0031.sdf' / Name of the 65th parent                
PRV66   = 's8b20191219_00036_0032.sdf' / Name of the 66th parent                
PRV67   = 's8b20191219_00036_0033.sdf' / Name of the 67th parent                
PRV68   = 's8b20191219_00036_0034.sdf' / Name of the 68th parent                
PRV69   = 's8b20191219_00036_0035.sdf' / Name of the 69th parent                
PRV70   = 's8b20191219_00036_0036.sdf' / Name of the 70th parent                
PRV71   = 's8c20191219_00036_0002.sdf' / Name of the 71st parent                
PRV72   = 's8c20191219_00036_0003.sdf' / Name of the 72nd parent                
PRV73   = 's8c20191219_00036_0004.sdf' / Name of the 73rd parent                
PRV74   = 's8c20191219_00036_0005.sdf' / Name of the 74th parent                
PRV75   = 's8c20191219_00036_0006.sdf' / Name of the 75th parent                
PRV76   = 's8c20191219_00036_0007.sdf' / Name of the 76th parent                
PRV77   = 's8c20191219_00036_0008.sdf' / Name of the 77th parent                
PRV78   = 's8c20191219_00036_0009.sdf' / Name of the 78th parent                
PRV79   = 's8c20191219_00036_0010.sdf' / Name of the 79th parent                
PRV80   = 's8c20191219_00036_0011.sdf' / Name of the 80th parent                
PRV81   = 's8c20191219_00036_0012.sdf' / Name of the 81st parent                
PRV82   = 's8c20191219_00036_0013.sdf' / Name of the 82nd parent                
PRV83   = 's8c20191219_00036_0014.sdf' / Name of the 83rd parent                
PRV84   = 's8c20191219_00036_0015.sdf' / Name of the 84th parent                
PRV85   = 's8c20191219_00036_0016.sdf' / Name of the 85th parent                
PRV86   = 's8c20191219_00036_0017.sdf' / Name of the 86th parent                
PRV87   = 's8c20191219_00036_0018.sdf' / Name of the 87th parent                
PRV88   = 's8c20191219_00036_0019.sdf' / Name of the 88th parent                
PRV89   = 's8c20191219_00036_0020.sdf' / Name of the 89th parent                
PRV90   = 's8c20191219_00036_0021.sdf' / Name of the 90th parent                
PRV91   = 's8c20191219_00036_0022.sdf' / Name of the 91st parent                
PRV92   = 's8c20191219_00036_0023.sdf' / Name of the 92nd parent                
PRV93   = 's8c20191219_00036_0024.sdf' / Name of the 93rd parent                
PRV94   = 's8c20191219_00036_0025.sdf' / Name of the 94th parent                
PRV95   = 's8c20191219_00036_0026.sdf' / Name of the 95th parent                
PRV96   = 's8c20191219_00036_0027.sdf' / Name of the 96th parent                
PRV97   = 's8c20191219_00036_0028.sdf' / Name of the 97th parent                
PRV98   = 's8c20191219_00036_0029.sdf' / Name of the 98th parent                
PRV99   = 's8c20191219_00036_0030.sdf' / Name of the 99th parent                
PRV100  = 's8c20191219_00036_0031.sdf' / Name of the 100th parent               
PRV101  = 's8c20191219_00036_0032.sdf' / Name of the 101st parent               
PRV102  = 's8c20191219_00036_0033.sdf' / Name of the 102nd parent               
PRV103  = 's8c20191219_00036_0034.sdf' / Name of the 103rd parent               
PRV104  = 's8c20191219_00036_0035.sdf' / Name of the 104th parent               
PRV105  = 's8c20191219_00036_0036.sdf' / Name of the 105th parent               
PRV106  = 's8d20191219_00036_0002.sdf' / Name of the 106th parent               
PRV107  = 's8d20191219_00036_0003.sdf' / Name of the 107th parent               
PRV108  = 's8d20191219_00036_0004.sdf' / Name of the 108th parent               
PRV109  = 's8d20191219_00036_0005.sdf' / Name of the 109th parent               
PRV110  = 's8d20191219_00036_0006.sdf' / Name of the 110th parent               
PRV111  = 's8d20191219_00036_0007.sdf' / Name of the 111th parent               
PRV112  = 's8d20191219_00036_0008.sdf' / Name of the 112th parent               
PRV113  = 's8d20191219_00036_0009.sdf' / Name of the 113th parent               
PRV114  = 's8d20191219_00036_0010.sdf' / Name of the 114th parent               
PRV115  = 's8d20191219_00036_0011.sdf' / Name of the 115th parent               
PRV116  = 's8d20191219_00036_0012.sdf' / Name of the 116th parent               
PRV117  = 's8d20191219_00036_0013.sdf' / Name of the 117th parent               
PRV118  = 's8d20191219_00036_0014.sdf' / Name of the 118th parent               
PRV119  = 's8d20191219_00036_0015.sdf' / Name of the 119th parent               
PRV120  = 's8d20191219_00036_0016.sdf' / Name of the 120th parent               
PRV121  = 's8d20191219_00036_0017.sdf' / Name of the 121st parent               
PRV122  = 's8d20191219_00036_0018.sdf' / Name of the 122nd parent               
PRV123  = 's8d20191219_00036_0019.sdf' / Name of the 123rd parent               
PRV124  = 's8d20191219_00036_0020.sdf' / Name of the 124th parent               
PRV125  = 's8d20191219_00036_0021.sdf' / Name of the 125th parent               
PRV126  = 's8d20191219_00036_0022.sdf' / Name of the 126th parent               
PRV127  = 's8d20191219_00036_0023.sdf' / Name of the 127th parent               
PRV128  = 's8d20191219_00036_0024.sdf' / Name of the 128th parent               
PRV129  = 's8d20191219_00036_0025.sdf' / Name of the 129th parent               
PRV130  = 's8d20191219_00036_0026.sdf' / Name of the 130th parent               
PRV131  = 's8d20191219_00036_0027.sdf' / Name of the 131st parent               
PRV132  = 's8d20191219_00036_0028.sdf' / Name of the 132nd parent               
PRV133  = 's8d20191219_00036_0029.sdf' / Name of the 133rd parent               
PRV134  = 's8d20191219_00036_0030.sdf' / Name of the 134th parent               
PRV135  = 's8d20191219_00036_0031.sdf' / Name of the 135th parent               
PRV136  = 's8d20191219_00036_0032.sdf' / Name of the 136th parent               
PRV137  = 's8d20191219_00036_0033.sdf' / Name of the 137th parent               
PRV138  = 's8d20191219_00036_0034.sdf' / Name of the 138th parent               
PRV139  = 's8d20191219_00036_0035.sdf' / Name of the 139th parent               
PRV140  = 's8d20191219_00036_0036.sdf' / Name of the 140th parent               
OBSCNT  =                    1 / Number of root-ancestor headers                
OBS1    = 'scuba2_36_20191219T073102_850' / Name of the 1st root ancestor       
FILEID  = 'jcmts20191219_00036_850_reduced001_obs_000.fits' / Filename          

CHECKSUM= '9GCbIE9a9EAaGE9a'   / HDU checksum updated 2019-12-20T13:08:28       
DATASUM = '3128954277'         / data unit checksum updated 2019-12-20T13:08:28 
END                                                                             
markccchiang commented 1 year ago

A quick look at this problem. It seems the casacore throws an error: Unit::check Illegal unit string 'mJy.s0.5' when loading this file via casacore::FITSImage, or sets the BUNIT via this code line setUnits(casacore::ImageFITSConverter::getBrightnessUnit(unused_headers, log)); from the CartaFitsImage.