FORTRAN Generation
(/./ftp/cats/J/ApJ/562/303)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/562/303 into FORTRAN code for reading data files line by line.

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 2024-Mar-29
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/ApJ/562/303         Old Stellar Populations of the SMC         (Dolphin+ 2001)
*================================================================================
*Old Stellar Populations of the Small Magellanic Cloud
*     Dolphin A.E., Walker A.R., Hodge P.W., Mateo M., Olszewski E.W.,
*     Schommer R.A., Suntzeff N.B.
*    <Astrophys. J. 562, 303 (2001)>
*    =2001ApJ...562..303D
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'field1.dat'	! SMC-004600-703500 photometry

      integer*4 nr__
      parameter (nr__=952)	! Number of records
      character*41 ar__   	! Full-size record

      character*1   Chip        ! WFPC2 chip number; 1=PC1, 2=WFC2, etc.
      real*4        X           ! (pix) *X position
      real*4        Y           ! (pix) *Y position
      real*4        Vmag        ! (mag) V magnitude in HST F555W filter
      real*4        e_Vmag      ! (mag) V uncertainty
      real*4        Imag        ! (mag) I magnitude in HST F814W filter
      real*4        e_Imag      ! (mag) I uncertainty
*Note on X and Y: Positions are given in the HSTphot system; (0.5,0.5) refers
*  to the center of the lower-left pixel.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'field2.dat'	! SMC-004900-704800 photometry

      integer*4 nr__1
      parameter (nr__1=1180)	! Number of records
      character*41 ar__1  	! Full-size record

      character*1   Chip_1      ! WFPC2 chip number; 1=PC1, 2=WFC2, etc.
      real*4        X_1         ! (pix) *X position
      real*4        Y_1         ! (pix) *Y position
      real*4        Vmag_1      ! (mag) V magnitude in HST F555W filter
      real*4        e_Vmag_1    ! (mag) V uncertainty
      real*4        Imag_1      ! (mag) I magnitude in HST F814W filter
      real*4        e_Imag_1    ! (mag) I uncertainty
*Note on X and Y: Positions are given in the HSTphot system; (0.5,0.5) refers
*  to the center of the lower-left pixel.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'field3.dat'	! SMC-004612-704700 photometry

      integer*4 nr__2
      parameter (nr__2=1039)	! Number of records
      character*41 ar__2  	! Full-size record

      character*1   Chip_2      ! WFPC2 chip number; 1=PC1, 2=WFC2, etc.
      real*4        X_2         ! (pix) *X position
      real*4        Y_2         ! (pix) *Y position
      real*4        Vmag_2      ! (mag) V magnitude in HST F555W filter
      real*4        e_Vmag_2    ! (mag) V uncertainty
      real*4        Imag_2      ! (mag) I magnitude in HST F814W filter
      real*4        e_Imag_2    ! (mag) I uncertainty
*Note on X and Y: Positions are given in the HSTphot system; (0.5,0.5) refers
*  to the center of the lower-left pixel.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'field4.dat'	! SMC-004900-703300 photometry

      integer*4 nr__3
      parameter (nr__3=970)	! Number of records
      character*41 ar__3  	! Full-size record

      character*1   Chip_3      ! WFPC2 chip number; 1=PC1, 2=WFC2, etc.
      real*4        X_3         ! (pix) *X position
      real*4        Y_3         ! (pix) *Y position
      real*4        Vmag_3      ! (mag) V magnitude in HST F555W filter
      real*4        e_Vmag_3    ! (mag) V uncertainty
      real*4        Imag_3      ! (mag) I magnitude in HST F814W filter
      real*4        e_Imag_3    ! (mag) I uncertainty
*Note on X and Y: Positions are given in the HSTphot system; (0.5,0.5) refers
*  to the center of the lower-left pixel.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'ground.dat'	! Ground-based photometry

      integer*4 nr__4
      parameter (nr__4=16110)	! Number of records
      character*41 ar__4  	! Full-size record

      real*8        X_4         ! (pix) *X position
      real*8        Y_4         ! (pix) *Y position
      real*4        Vmag_4      ! (mag) V magnitude
      real*4        V_I         ! (mag) V-I color
      real*4        e_Vmag_4    ! (mag) V uncertainty
      real*4        e_V_I       ! (mag) V-I uncertainty
*Note on X and Y: Positions are given in the DAOPHOT system; (1.0,1.0) refers
*  to the center of the lower-left pixel.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'ngc121.dat'	! NGC121 photometry

      integer*4 nr__5
      parameter (nr__5=16710)	! Number of records
      character*41 ar__5  	! Full-size record

      character*1   Chip_4      ! WFPC2 chip number; 1=PC1, 2=WFC2, etc.
      real*4        X_5         ! (pix) *X position
      real*4        Y_5         ! (pix) *Y position
      real*4        Vmag_5      ! (mag) V magnitude in HST F555W filter
      real*4        e_Vmag_5    ! (mag) V uncertainty
      real*4        Imag_4      ! (mag) I magnitude in HST F814W filter
      real*4        e_Imag_4    ! (mag) I uncertainty
*Note on X and Y: Positions are given in the HSTphot system; (0.5,0.5) refers
*  to the center of the lower-left pixel.

C=============================================================================

C  Loading file 'field1.dat'	! SMC-004600-703500 photometry

C  Format for file interpretation

    1 format(A1,1X,F6.2,1X,F6.2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'field1.dat')
      write(6,*) '....Loading file: field1.dat'
      do i__=1,952
        read(1,'(A41)')ar__
        read(ar__,1)Chip,X,Y,Vmag,e_Vmag,Imag,e_Imag
c    ..............Just test output...........
        write(6,1)Chip,X,Y,Vmag,e_Vmag,Imag,e_Imag
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'field2.dat'	! SMC-004900-704800 photometry

C  Format for file interpretation

    2 format(A1,1X,F6.2,1X,F6.2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'field2.dat')
      write(6,*) '....Loading file: field2.dat'
      do i__=1,1180
        read(1,'(A41)')ar__1
        read(ar__1,2)Chip_1,X_1,Y_1,Vmag_1,e_Vmag_1,Imag_1,e_Imag_1
c    ..............Just test output...........
        write(6,2)Chip_1,X_1,Y_1,Vmag_1,e_Vmag_1,Imag_1,e_Imag_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'field3.dat'	! SMC-004612-704700 photometry

C  Format for file interpretation

    3 format(A1,1X,F6.2,1X,F6.2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'field3.dat')
      write(6,*) '....Loading file: field3.dat'
      do i__=1,1039
        read(1,'(A41)')ar__2
        read(ar__2,3)Chip_2,X_2,Y_2,Vmag_2,e_Vmag_2,Imag_2,e_Imag_2
c    ..............Just test output...........
        write(6,3)Chip_2,X_2,Y_2,Vmag_2,e_Vmag_2,Imag_2,e_Imag_2
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'field4.dat'	! SMC-004900-703300 photometry

C  Format for file interpretation

    4 format(A1,1X,F6.2,1X,F6.2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'field4.dat')
      write(6,*) '....Loading file: field4.dat'
      do i__=1,970
        read(1,'(A41)')ar__3
        read(ar__3,4)Chip_3,X_3,Y_3,Vmag_3,e_Vmag_3,Imag_3,e_Imag_3
c    ..............Just test output...........
        write(6,4)Chip_3,X_3,Y_3,Vmag_3,e_Vmag_3,Imag_3,e_Imag_3
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'ground.dat'	! Ground-based photometry

C  Format for file interpretation

    5 format(F7.2,1X,F7.2,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ground.dat')
      write(6,*) '....Loading file: ground.dat'
      do i__=1,16110
        read(1,'(A41)')ar__4
        read(ar__4,5)X_4,Y_4,Vmag_4,V_I,e_Vmag_4,e_V_I
c    ..............Just test output...........
        write(6,5)X_4,Y_4,Vmag_4,V_I,e_Vmag_4,e_V_I
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'ngc121.dat'	! NGC121 photometry

C  Format for file interpretation

    6 format(A1,1X,F6.2,1X,F6.2,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngc121.dat')
      write(6,*) '....Loading file: ngc121.dat'
      do i__=1,16710
        read(1,'(A41)')ar__5
        read(ar__5,6)Chip_4,X_5,Y_5,Vmag_5,e_Vmag_5,Imag_4,e_Imag_4
c    ..............Just test output...........
        write(6,6)Chip_4,X_5,Y_5,Vmag_5,e_Vmag_5,Imag_4,e_Imag_4
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end