index.php
This is a replacement for the CGI Form http://irtfweb.ifa.hawaii.edu/cgi-bin/nsfcam/nsfcam_sncalc.cgi
on the centos6 irtfweb system. Ported to irtfweb (RockyLinux 8) in Jan 2023.
nsfcam_sncalc
The nsfcam_sncalc is a fortran binary called by this web form to calculate the output.
The src/nsfcam_sncalc.for was copied from /cgi-bin/nsfcam/src/nsfcam_sncalc.for.
To compile the fortran binary:
To recompile on RockyLinux8 using gfortran:
dnf install gcc-gfortran # to install fortran
gfortran -ffixed-line-length-none -o nsfcam_sncalc nsfcam_sncalc.for
Here is a sample run on the command line with
Test values:
Magnitude: 12.0
Integration Time: 60
Coadds: 3
Exposures: 1
Plate Scale: 0.148
Seeing (FWHM): 0.7
Aperture Radius: 1
./nsfcam_sncalc 12.0 60 3 1 0.148 0.7 1 /dev/null
Band S/N Seeing Aperture Source Peak Pixel Background
(asec) Fraction (DN/coadd) (DN/coadd) (DN/pix/coadd)
---- -------- ------ -------- ---------- ----------- ---------------
J_MK 4427.06 0.784 0.989 778625.56 25076.09 743.29
H_MK 3451.36 0.743 0.993 708717.50 27389.69 2871.04
Kp_MK 2312.55 0.705 0.996 351004.22 15176.41 1740.80
K_MK 2295.83 0.700 0.996 338085.00 14696.88 1596.23
L 60.22 0.666 0.998 146321.00 931470.25 925230.94 saturated
Lp_MK 32.84 0.663 0.998 119496.59 ********* ********* saturated
Mp_MK 2.73 0.649 0.999 17121.76 ********* ********* saturated
M 2.04 0.647 0.999 26156.29 ********* ********* saturated