acm_bias_run
Updated: Jan 2018

This code, and the sisters acm_dark_* codes, take bias and dark frames with the acm on HET. The routines that take the images (acm_bias_take and acm_dark_take) run only on mcs (as of Jan2018). The routines that the user usually uses are: acm_bias_run and acm_dark_run:


% # take 40 acm bias frames   
% acm_bias_run 40   

% # take 40 acm 10sec dark frames   
% acm_dark_run 40 10   

NOTE: only 5,10,20 second dark frames are currently handled. 


These are actually fairly klugy routine written on mcs during cloudy weather. Some upgrades would be desirable, but these are better than nothing. The bias level for acm is approximately BIAS = 1381.0 adu. Using acm_bias_run for just a few images can help you determine if extraneous light sources (PV cam, etc,,,,) are on in the HET system.

Below I include some notes I made on mcs during the early development of these routines.


acm.bias  acm_bias_check*  acm_bias_run*  acm_bias_take*  Date	S/
[astronomer@mcs acm_scripts]$ acm_bias_run 2
1381.8419 0.0411 26.7518 25 20180107T084040.7_acm_sci
1381.9445 0.0411 26.7256 25 20180107T084050.0_acm_sci

The acm_bias scripts are set up to take and analyse acm bias frames on mcs.

 acm_bias_take  == takes a single bias frame 
 acm_bias_check == computes stats of bias fraem just taken 
 acm_bias_run   == make multiple runs of the take,check sequence 

Example:
[astronomer@mcs acm_scripts]$ acm_bias_run 5
1381.9980 0.0411 26.7620 25 20180107T084457.3_acm_sci
1382.0483 0.0412 26.7887 25 20180107T084506.7_acm_sci
1381.9852 0.0413 26.8598 25 20180107T084516.1_acm_sci
1382.0063 0.0411 26.7460 25 20180107T084525.5_acm_sci
1381.9336 0.0415 27.0191 25 20180107T084534.7_acm_sci

The first number id the mean bias level. The second is the mean error, and the 
third is the 1-sigma error per pixel. All values are in adu. Finally the image 
base name is given for each bias frame.  

On 20180107 I installed this in: /home/mcs/sco/Installs/install_mcs_20171129/bin/bini/
I also place a copy in acm_scripts on buckaroo


I also write some dark scripts:
[astronomer@mcs acm_scripts]$ acm_dark_take 20
[astronomer@mcs acm_scripts]$ acm_bias_check N
1386.0487 0.1235 80.3717 25 20180107T091020.8_acm_sci

Note that the only exposure tiems recognized are:  5, 10, 20 

To make multiple runs:
[astronomer@mcs acm_scripts]$ acm_dark_run 3 5
1383.1637 0.0548 35.6544 25 20180107T091625.7_acm_sci
1383.0903 0.0539 35.0739 25 20180107T091640.0_acm_sci
1383.3611 0.0544 35.4222 25 20180107T091654.2_acm_sci

To run 3 5sec darks and write the output to a file named "list.dark5":
[astronomer@mcs acm_scripts]$ acm_dark_run 3 5 | tee -a list.dark5



Need to incorporate these new commands:

Matt modified his script11 and created the new script named "getACMcals". It still hard codes the number of images taken, but some very useful commands were added to the top of the script:


[astronomer@mcs ~]$ head getACMcals
syscmd -P 'PowerPV_CWFSCamera(state="false")'
syscmd -P 'FCUDeployHead()'
syscmd -P 'RetractACQCameraMirror(state="true")'
syscmd -p 'ACQ_SetIntervalSpeed(speed=5)'
syscmd -p 'ACQ_SetExposureTime(time=0.01)'
syscmd -p  'ACQ_CyclePipeline(procMode="none",imageFilename="")'

I need to add these commands to acm_bias_take and acm_dark_take.




Back to calling page