Interpret the name of a PAS image. This is a rather high-level routine that can provide one piece of information or a whole slew of parameters.
% pasinfo -h usage: pasinfo 20200530T020839.0_056LU_twi.fits basename [-v] [-h] arg1 = image name (can be fullpath) arg2 = property to be retieved (can be "all") Additional options: -h = just show usage message -v = run in verbose/debug modeThis is a work in progress, but a set of examples should follow soon. Also of interest are the routines pas_devname.sh .
Examples: % pasinfo /media/sco/DataDisk1/sco/AD/HET_work/HET_acm+lrs2/HET_IZw136/20200530/lrs2/lrs20000003/exp01/lrs2/20200530T020839.0_056LU_twi.fits all basename 20200530T020839.0_056LU_twi nchars 27 filetype fullpath subdir /media/sco/DataDisk1/sco/AD/HET_work/HET_acm+lrs2/HET_IZw136/20200530/lrs2/lrs20000003/exp01/lrs2 devname LRS2B tstamp 20200530T020839.0 device 056LU imtype twi d2000 7453.589355 djan1 150.089340 thours 2.14417 year 2020 month 05 day 30 % pasinfo /media/sco/DataDisk1/sco/AD/HET_work/HET_acm+lrs2/HET_IZw136/20200530/lrs2/lrs20000003/exp01/lrs2/20200530T020839.0_056LU_twi.fits devname devname LRS2B % pasinfo /home/sco/ACM_reduced_SBsky_June2019/20190426T074247.0_acm_sci.fits all basename 20190426T074247.0_acm_sci nchars 25 filetype fullpath subdir /home/sco/ACM_reduced_SBsky_June2019 devname ACM tstamp 20190426T074247.0 device acm imtype sci d2000 7053.821289 djan1 115.321381 thours 7.71306 year 2019 month 04 day 26