Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/209/28 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-Sep-07
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/ApJS/209/28 MYStIX Wide-Field NIR data: crowded fields (King+, 2013)
*================================================================================
*The MYStIX wide-field near-infrared data: optimal photometry in crowded fields.
* King R.R., Naylor T., Broos P.S., Getman K.V., Feigelson E.D.
* <Astrophys. J. Suppl. Ser., 209, 28 (2013)>
* =2013ApJS..209...28K
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! *Catalog of sources in the area of the UKIRT surveys
integer*4 nr__
parameter (nr__=13868204) ! Number of records
character*175 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
character*14 Reg (nr__) ! MYStIX Galactic massive star-forming region
* (MSFR) name (2)
real*8 RAdeg (nr__) ! (deg) Right ascension (J2000)
real*8 DEdeg (nr__) ! (deg) Declination (J2000)
real*8 Xpos (nr__) ! (pix) X position on detector
real*8 Ypos (nr__) ! (pix) Y position on detector
real*8 Kmag (nr__) ! (mag) [7.8/101]? UKIRT/WFCAM K magnitude
real*4 e_Kmag (nr__) ! (mag) [0.003/12] Kmag uncertainty
character*1 f_Kmag (nr__) ! [BEFMNOSV] Kmag flag, O=OK (1)
real*4 s_Kmag (nr__) ! (mag) [0.02/14] Kmag total uncertainty
real*8 J_K (nr__) ! (mag) [-94/100]? J-K color index
real*4 e_J_K (nr__) ! (mag) [0.004/16] J-K uncertainty
character*2 f_J_K (nr__) ! [BEFMNOSV] J-K flag, OO=OK (1)
real*4 s_J_K (nr__) ! (mag) [0.02/20] J-K total uncertainty
real*8 H_K (nr__) ! (mag) [-93/100]? H-K color index
real*4 e_H_K (nr__) ! (mag) [0.004/35] H-K uncertainty
character*2 f_H_K (nr__) ! [BEFIMNOSV] H-K flag, OO=OK (1)
real*4 s_H_K (nr__) ! (mag) [0.02/44] H-K total uncertainty
real*4 Jmag (nr__) ! (mag) [9.3/100]? UKIRT/WFCAM J magnitude
real*4 e_Jmag (nr__) ! (mag) [0.003/16] Jmag uncertainty
character*1 f_Jmag (nr__) ! [BFMNOSV] Jmag flag, O=OK (1)
real*4 s_Jmag (nr__) ! (mag) [0.02/20] Jmag total uncertainty
real*4 Hmag (nr__) ! (mag) [5.6/100]? UKIRT/WFCAM H magnitude
real*4 e_Hmag (nr__) ! (mag) [0.003/35] Hmag uncertainty
character*1 f_Hmag (nr__) ! [BFIMNOSV] Hmag flag, O=OK (1)
real*4 s_Hmag (nr__) ! (mag) [0.02/44] Hmag total uncertainty
*Note (1): The flags apply to each color, and therefore 2 flags are given
* for each color. Their meanings are:
* ------------------------------------------------------------------------
* Meaning Algorithm Power(*)
* ------------------------------------------------------------------------
* O = O.K. Weak
* S = Saturated pixel Pixel flagging Strong
* F = Bad pixel Pixel flagging Strong
* N = Non-stellar Star shape estimator Strong
* B = Background fit failed Sky determination Weak
* I = Ill-determined background Sky determination Weak
* E = Too close to Edge Flux measurement Weak
* M = Negative (minus) counts(a) Flux measurement Weak
* V = Variable Combining measurements Weak
* ------------------------------------------------------------------------
* (*) A strong flag will always be written, overwriting any other flags,
* whilst a weak flag will only be written if the measurement is
* unflagged so far. Thus the order the flags are applied is important.
* (a) negative measured flux, so the magnitude should be used
* as a bright limit.
* ------------------------------------------------------------------------
*Note (2): There are 11 regions: DR 21, M17, Eagle Nebula, Lagoon Nebula,
* Rosette Nebula, Trifid Nebula, NGC 1893, NGC 2264, NGC 2362, NGC 6334,
* and NGC 6357,
C=============================================================================
C Loading file 'table2.dat' ! *Catalog of sources in the area of the UKIRT surveys
C Format for file interpretation
1 format(
+ A14,1X,F10.6,1X,F10.6,1X,F7.2,1X,F7.2,1X,F7.3,1X,F6.3,2X,A1,
+ 1X,F6.3,1X,F7.3,1X,F6.3,1X,A2,1X,F6.3,1X,F7.3,1X,F6.3,1X,A2,
+ 1X,F6.3,1X,F6.3,1X,F6.3,2X,A1,1X,F6.3,1X,F6.3,1X,F6.3,2X,A1,
+ 1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,13868204
read(1,'(A175)')ar__
read(ar__,1)
+ Reg(i__),RAdeg(i__),DEdeg(i__),Xpos(i__),Ypos(i__),Kmag(i__),
+ e_Kmag(i__),f_Kmag(i__),s_Kmag(i__),J_K(i__),e_J_K(i__),
+ f_J_K(i__),s_J_K(i__),H_K(i__),e_H_K(i__),f_H_K(i__),
+ s_H_K(i__),Jmag(i__),e_Jmag(i__),f_Jmag(i__),s_Jmag(i__),
+ Hmag(i__),e_Hmag(i__),f_Hmag(i__),s_Hmag(i__)
if(ar__(54:60) .EQ. '') Kmag(i__) = rNULL__
if(ar__(79:85) .EQ. '') J_K(i__) = rNULL__
if(ar__(104:110) .EQ. '') H_K(i__) = rNULL__
if(ar__(129:134) .EQ. '') Jmag(i__) = rNULL__
if(ar__(153:158) .EQ. '') Hmag(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Reg(i__),RAdeg(i__),DEdeg(i__),Xpos(i__),Ypos(i__),Kmag(i__),
+ e_Kmag(i__),f_Kmag(i__),s_Kmag(i__),J_K(i__),e_J_K(i__),
+ f_J_K(i__),s_J_K(i__),H_K(i__),e_H_K(i__),f_H_K(i__),
+ s_H_K(i__),Jmag(i__),e_Jmag(i__),f_Jmag(i__),s_Jmag(i__),
+ Hmag(i__),e_Hmag(i__),f_Hmag(i__),s_Hmag(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end