index.php
This is a replacement for the CGI Form http://irtfweb.ifa.hawaii.edu/cgi-bin/nsfcam/nsfcam_magcalc.cgi
on the centos6 irtfweb system. Ported to irtfweb (RockyLinux 8) in Jan 2023.
nsfcam_magcalc
The nsfcam_magcalc is a fortran binary called by this web form to calculate the output.
The src/nsfcam_magcalc.for was copied from /cgi-bin/nsfcam/src/nsfcam_magcalc.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_magcalc nsfcam_magcalc.for
Here is a sample run on the command line with
SN Ratio: 10
Itime_sec: 10
Coadds: 1
Exposures: 1
Plate Scale: 0.148
Seeing: 1
Aperture R: 1.5
Command: ./nsfcam_magcalc 10 10 1 1 0.148 1 1.5 /dev/null
Output is:
Band Lim Mag. Seeing Aperture Source Peak Pixel Background
(asec) Fraction (DN/coadd) (DN/coadd) (DN/pix/coadd)
---- -------- ------ -------- ---------- ----------- ---------------
J_MK 17.478 1.121 0.993 839.12 136.79 123.88
H_MK 16.747 1.062 0.996 1495.51 504.03 478.51
Kp_MK 16.228 1.007 0.998 1192.90 312.70 290.13
K_MK 16.229 1.000 0.998 1148.43 288.04 266.04
L 11.941 0.952 0.999 25766.82 154749.28 154205.16 saturated
Lp_MK 11.283 0.947 0.999 38596.21 346906.84 346084.19 saturated
Mp_MK 8.583 0.927 0.999 66420.08 ********* ********* saturated
M 8.266 0.924 0.999 135919.42 ********* ********* saturated