Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/131/2859 into FORTRAN code for loading all data files into arrays.
Note that special values are assigned to unknown or unspecified
numbers (also called NULL numbers);
when necessary, the coordinate components making up the right ascension
and declination are converted into floating-point numbers
representing these angles in degrees.
program load_ReadMe
C=============================================================================
C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Apr-23
C=============================================================================
* This code was generated from the ReadMe file documenting a catalogue
* according to the "Standard for Documentation of Astronomical Catalogues"
* currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
* (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
* Please report problems or questions to
C=============================================================================
implicit none
* Unspecified or NULL values, generally corresponding to blank columns,
* are assigned one of the following special values:
* rNULL__ for unknown or NULL floating-point values
* iNULL__ for unknown or NULL integer values
real*4 rNULL__
integer*4 iNULL__
parameter (rNULL__=--2147483648.) ! NULL real number
parameter (iNULL__=(-2147483647-1)) ! NULL int number
integer idig ! testing NULL number
C=============================================================================
Cat. J/AJ/131/2859 Extragalactic First Look Survey: 24{mu}m data (Fadda+, 2006)
*================================================================================
*The Spitzer Space Telescope extragalactic First Look Survey: 24{mu}m data
*reduction, catalog, and source identification.
* Fadda D., Marleau F.R., Storrie-Lombardi L.J., Makovoz D., Frayer D.T.,
* Appleton P.N., Armus L., Chapman S.C., Choi P.I., Fang F., Heinrichsen I.,
* Helou G., Im M., Lacy M., Shupe D.L., Soifer B.T., Squires G.K., Surace J.,
* Teplitz H.I., Wilson G., Yan L.
* <Astron. J., 131, 2859-2876 (2006)>
* =2006AJ....131.2859F
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Extended sources
integer*4 nr__
parameter (nr__=124) ! Number of records
character*78 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*16 SSTXFLS24 (nr__) ! The IAU designation (JHHMMSS.s+DDMMSS)
integer*4 RAh (nr__) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of Right Ascension (J2000)
real*4 RAs (nr__) ! (s) Second of Right Ascension (J2000)
character*1 DE_ (nr__) ! Sign of the Declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of Declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of Declination (J2000)
real*8 F24um (nr__) ! (mJy) The 24{mu}m flux
real*4 F20cm (nr__) ! (mJy) ? The 20cm flux
character*1 f_F20cm (nr__) ! [O] Indicates a flux "out of image"
real*4 Rmag (nr__) ! (mag) The R band magnitude
real*4 z (nr__) ! ? Redshift
character*6 Note (nr__) ! Object note
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Stars used for absolute calibration
integer*4 nr__1
parameter (nr__1=231) ! Number of records
character*187 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg_1 (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 RAh_1 (nr__1) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm_1 (nr__1) ! (min) Minute of Right Ascension (J2000)
real*4 RAs_1 (nr__1) ! (s) Second of Right Ascension (J2000)
character*1 DE__1 (nr__1) ! Sign of the Declination (J2000)
integer*4 DEd_1 (nr__1) ! (deg) Degree of Declination (J2000)
integer*4 DEm_1 (nr__1) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_1 (nr__1) ! (arcsec) Arcsecond of Declination (J2000)
real*4 u_mag (nr__1) ! (mag) SDSS u' band magnitude
real*4 e_u_mag (nr__1) ! (mag) Error in umag
real*4 g_mag (nr__1) ! (mag) SDSS g' band magnitude
character*1 f_g_mag (nr__1) ! [*] Indicates a deviant point in the fit
real*4 e_g_mag (nr__1) ! (mag) Error in gmag
real*4 r_mag (nr__1) ! (mag) SDSS r' band magnitude
character*1 f_r_mag (nr__1) ! [*] Indicates a deviant point in the fit
real*4 e_r_mag (nr__1) ! (mag) Error in rmag
real*4 i_mag (nr__1) ! (mag) SDSS i' band magnitude
character*1 f_i_mag (nr__1) ! [*] Indicates a deviant point in the fit
real*4 e_i_mag (nr__1) ! (mag) Error in imag
real*4 z_mag (nr__1) ! (mag) SDSS z' band magnitude
character*1 f_z_mag (nr__1) ! [*] Indicates a deviant point in the fit
real*4 e_z_mag (nr__1) ! (mag) Error in zmag
real*4 Jmag (nr__1) ! (mag) 2MASS J band magnitude
real*4 e_Jmag (nr__1) ! (mag) Error in Jmag
real*4 Hmag (nr__1) ! (mag) 2MASS H band magnitude
real*4 e_Hmag (nr__1) ! (mag) Error in Hmag
real*4 Ksmag (nr__1) ! (mag) 2MASS K_s_ band magnitude
real*4 e_Ksmag (nr__1) ! (mag) Error in Kmag
real*4 F3_5um (nr__1) ! (mJy) IRAC 3.5{mu}m flux
real*4 e_F3_5um (nr__1) ! (mJy) Error in 3.5F
real*4 F4_5um (nr__1) ! (mJy) IRAC 4.5{mu}m flux
real*4 e_F4_5um (nr__1) ! (mJy) Error in 4.5F
real*4 F5_8um (nr__1) ! (mJy) IRAC 5.8{mu}m flux
real*4 e_F5_8um (nr__1) ! (mJy) Error in 5.8F
real*4 F24umM (nr__1) ! (mJy) Measured 24{mu}m flux
real*4 e_F24umM (nr__1) ! (mJy) Error in M-24F
real*4 F24umP (nr__1) ! (mJy) Predicted 24{mu}m flux
real*4 e_F24umP (nr__1) ! (mJy) Error in P-24F
integer*4 Teff (nr__1) ! (K) Best fit effective temperature
real*4 v_Fe_H_ (nr__1) ! ([Sun]) Log of the best fit Fe/H number abundance (1)
real*4 log_g (nr__1) ! ([cm/s2]) Log of the best fit surface gravity
*Note (1): Relative to solar.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! The 24{mu}m point source catalog
integer*4 nr__2
parameter (nr__2=16905) ! Number of records
character*132 ar__2 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 (nr__2) ! (deg) Right Ascension J2000
real*8 DEdeg_2 (nr__2) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*16 SSTXFLS24_1(nr__2) ! The IAU designation (JHHMMSS.s+DDMMSS)
integer*4 RAh_2 (nr__2) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm_2 (nr__2) ! (min) Minute of Right Ascension (J2000)
real*4 RAs_2 (nr__2) ! (s) Second of Right Ascension (J2000)
character*1 DE__2 (nr__2) ! Sign of the Declination (J2000)
integer*4 DEd_2 (nr__2) ! (deg) Degree of Declination (J2000)
integer*4 DEm_2 (nr__2) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_2 (nr__2) ! (arcsec) Arcsecond of Declination (J2000)
real*4 e_pos (nr__2) ! (arcsec) Position error
real*4 F24um_1 (nr__2) ! (mJy) The 24{mu}m flux
real*4 e_F24um (nr__2) ! (mJy) Error in 24F
real*4 S_N (nr__2) ! Signal-to-noise ratio of the detection
integer*4 RAOh (nr__2) ! (h) ? Hour of Right Ascension
* of the optical counterpart (J2000)
integer*4 RAOm (nr__2) ! (min) ? Minute of Right Ascension
* of the optical counterpart (J2000)
real*4 RAOs (nr__2) ! (s) ? Second of Right Ascension
* of the optical counterpart (J2000)
character*1 DEO_ (nr__2) ! Sign of the Declination
* of the optical counterpart (J2000)
integer*4 DEOd (nr__2) ! (deg) ? Degree of Declination
* of the optical counterpart (J2000)
integer*4 DEOm (nr__2) ! (arcmin) ? Arcminute of Declination
* of the optical counterpart (J2000)
real*4 DEOs (nr__2) ! (arcsec) ? Arcsecond of Declination
* of the optical counterpart (J2000)
real*4 Rmag_1 (nr__2) ! (mag) ? Optical counterpart R band magnitude
real*4 rIO (nr__2) ! (arcsec) ? IR source and optical counterpart distance
integer*4 No (nr__2) ! Number of possible optical counterparts
* within 5 arcsec
real*4 Rel (nr__2) ! ? Reliability of the most likely
* optical counterpart
integer*4 OInd (nr__2) ! [0/1] Optical index of coverage (1)
integer*4 RARh (nr__2) ! (h) ? Hour of Right Ascension
* of the radio counterpart (J2000)
integer*4 RARm (nr__2) ! (min) ? Minute of Right Ascension
* of the radio counterpart (J2000)
real*4 RARs (nr__2) ! (s) ? Second of Right Ascension
* of the radio counterpart (J2000)
character*1 DER_ (nr__2) ! Sign of the Declination
* of the radio counterpart (J2000)
integer*4 DERd (nr__2) ! (deg) ? Degree of Declination
* of the radio counterpart (J2000)
integer*4 DERm (nr__2) ! (arcmin) ? Arcminute of Declination
* of the radio counterpart (J2000)
real*4 DERs (nr__2) ! (arcsec) ? Arcsecond of Declination
* of the radio counterpart (J2000)
real*4 F20cm_1 (nr__2) ! (mJy) ? Radio counterpart 20cm flux
real*4 rIR (nr__2) ! (arcsec) ? IR source and radio counterpart distance
integer*4 RInd (nr__2) ! [0/1] Radio index of coverage (1)
*Note (1): Radio index of coverage, defined as follows:
* 1 = out of KPNO or VLA field;
* 0 = inside the KPNO or VLA field.
C=============================================================================
C Loading file 'table2.dat' ! Extended sources
C Format for file interpretation
1 format(
+ A16,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F7.3,1X,
+ F5.3,1X,A1,1X,F5.2,1X,F6.4,1X,A6)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,124
read(1,'(A78)')ar__
read(ar__,1)
+ SSTXFLS24(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),F24um(i__),F20cm(i__),f_F20cm(i__),
+ Rmag(i__),z(i__),Note(i__)
if(ar__(52:56) .EQ. '') F20cm(i__) = rNULL__
if(ar__(66:71) .EQ. '') z(i__) = rNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ SSTXFLS24(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),F24um(i__),F20cm(i__),f_F20cm(i__),
+ Rmag(i__),z(i__),Note(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Stars used for absolute calibration
C Format for file interpretation
2 format(
+ I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.2,1X,F4.2,1X,
+ F5.2,A1,1X,F4.2,1X,F5.2,A1,1X,F4.2,1X,F5.2,A1,1X,F4.2,1X,F5.2,
+ A1,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
+ F5.1,1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.2,1X,F4.2,
+ 1X,F5.2,1X,F3.1,1X,I4,1X,F4.2,1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,231
read(1,'(A187)')ar__1
read(ar__1,2)
+ RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),
+ DEm_1(i__),DEs_1(i__),u_mag(i__),e_u_mag(i__),g_mag(i__),
+ f_g_mag(i__),e_g_mag(i__),r_mag(i__),f_r_mag(i__),
+ e_r_mag(i__),i_mag(i__),f_i_mag(i__),e_i_mag(i__),z_mag(i__),
+ f_z_mag(i__),e_z_mag(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),
+ e_Hmag(i__),Ksmag(i__),e_Ksmag(i__),F3_5um(i__),e_F3_5um(i__),
+ F4_5um(i__),e_F4_5um(i__),F5_8um(i__),e_F5_8um(i__),
+ F24umM(i__),e_F24umM(i__),F24umP(i__),e_F24umP(i__),Teff(i__),
+ v_Fe_H_(i__),log_g(i__)
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,2)
+ RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),
+ DEm_1(i__),DEs_1(i__),u_mag(i__),e_u_mag(i__),g_mag(i__),
+ f_g_mag(i__),e_g_mag(i__),r_mag(i__),f_r_mag(i__),
+ e_r_mag(i__),i_mag(i__),f_i_mag(i__),e_i_mag(i__),z_mag(i__),
+ f_z_mag(i__),e_z_mag(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),
+ e_Hmag(i__),Ksmag(i__),e_Ksmag(i__),F3_5um(i__),e_F3_5um(i__),
+ F4_5um(i__),e_F4_5um(i__),F5_8um(i__),e_F5_8um(i__),
+ F24umM(i__),e_F24umM(i__),F24umP(i__),e_F24umP(i__),Teff(i__),
+ v_Fe_H_(i__),log_g(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table5.dat' ! The 24{mu}m point source catalog
C Format for file interpretation
3 format(
+ A16,1X,I2,I2,F6.3,A1,I2,I2,F5.2,1X,F3.1,1X,F5.2,1X,F4.2,1X,
+ F5.1,1X,I2,I2,F6.3,A1,I2,I2,F5.2,1X,F5.2,1X,F3.1,1X,I1,1X,
+ F4.2,1X,I1,1X,I2,I2,F6.3,A1,I2,I2,F5.2,1X,F6.2,1X,F3.1,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,16905
read(1,'(A132)')ar__2
read(ar__2,3)
+ SSTXFLS24_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
+ DEd_2(i__),DEm_2(i__),DEs_2(i__),e_pos(i__),F24um_1(i__),
+ e_F24um(i__),S_N(i__),RAOh(i__),RAOm(i__),RAOs(i__),DEO_(i__),
+ DEOd(i__),DEOm(i__),DEOs(i__),Rmag_1(i__),rIO(i__),No(i__),
+ Rel(i__),OInd(i__),RARh(i__),RARm(i__),RARs(i__),DER_(i__),
+ DERd(i__),DERm(i__),DERs(i__),F20cm_1(i__),rIR(i__),RInd(i__)
if(ar__2(60:61) .EQ. '') RAOh(i__) = iNULL__
if(ar__2(62:63) .EQ. '') RAOm(i__) = iNULL__
if(ar__2(64:69) .EQ. '') RAOs(i__) = rNULL__
if(ar__2(71:72) .EQ. '') DEOd(i__) = iNULL__
if(ar__2(73:74) .EQ. '') DEOm(i__) = iNULL__
if(ar__2(75:79) .EQ. '') DEOs(i__) = rNULL__
if(ar__2(81:85) .EQ. '') Rmag_1(i__) = rNULL__
if(ar__2(87:89) .EQ. '') rIO(i__) = rNULL__
if(ar__2(93:96) .EQ. '') Rel(i__) = rNULL__
if(ar__2(100:101) .EQ. '') RARh(i__) = iNULL__
if(ar__2(102:103) .EQ. '') RARm(i__) = iNULL__
if(ar__2(104:109) .EQ. '') RARs(i__) = rNULL__
if(ar__2(111:112) .EQ. '') DERd(i__) = iNULL__
if(ar__2(113:114) .EQ. '') DERm(i__) = iNULL__
if(ar__2(115:119) .EQ. '') DERs(i__) = rNULL__
if(ar__2(121:126) .EQ. '') F20cm_1(i__) = rNULL__
if(ar__2(128:130) .EQ. '') rIR(i__) = rNULL__
RAdeg_2(i__) = rNULL__
DEdeg_2(i__) = rNULL__
c Derive coordinates RAdeg_2 and DEdeg_2 from input data
c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c ..............Just test output...........
write(6,3)
+ SSTXFLS24_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
+ DEd_2(i__),DEm_2(i__),DEs_2(i__),e_pos(i__),F24um_1(i__),
+ e_F24um(i__),S_N(i__),RAOh(i__),RAOm(i__),RAOs(i__),DEO_(i__),
+ DEOd(i__),DEOm(i__),DEOs(i__),Rmag_1(i__),rIO(i__),No(i__),
+ Rel(i__),OInd(i__),RARh(i__),RARm(i__),RARs(i__),DER_(i__),
+ DERd(i__),DERm(i__),DERs(i__),F20cm_1(i__),rIR(i__),RInd(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end