FORTRAN Generation
(/./ftp/cats/J/A_A/407/919)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/407/919 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 2024-Apr-19
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/A+A/407/919       UBVI and JHK photometry in Lindsay 1      (Alcaino+, 2003)
*================================================================================
*The SMC star cluster Lindsay 1. First UI photometric study.
*    Alcaino G., Alvarado F., Kurtev R.
*   <Astron. Astrophys. 407, 919 (2003)>
*   =2003A&A...407..919A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! The photometry list

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        Xpos       (nr__) ! (pix) X-coordinate of the star in pixels
      real*8        Ypos       (nr__) ! (pix) Y-coordinate of the star in pixels
      real*8        RAdeg      (nr__) ! (deg) Right ascension of the star (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination of the star (J2000)
      real*4        Vmag       (nr__) ! (mag) V magnitude of the star
      real*8        U_B        (nr__) ! (mag) ?=100.000 U-B color of the star
      real*4        B_V        (nr__) ! (mag) B-V color of the star
      real*8        V_I        (nr__) ! (mag) ?=100.000 V-I color of the star
      real*4        e_Vmag     (nr__) ! (mag) Error in V magnitude of the star
      real*8        e_U_B      (nr__) ! (mag) ?=100.000 Error in U-B color of the star
      real*4        e_B_V      (nr__) ! (mag) Error in B-V color of the star
      real*8        e_V_I      (nr__) ! (mag) ?=100.000 Error in V-I color of the star

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

C  Declarations for 'table4.dat'	! Photometric data for red giant branch (RGB) stars

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        Xpos_1     (nr__1) ! (pix) X-coordinate of the star in pixels
      real*8        Ypos_1     (nr__1) ! (pix) Y-coordinate of the star in pixels
      real*8        RAdeg_1    (nr__1) ! (deg) Right ascension of the star (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination of the star (J2000)
      real*4        Jmag       (nr__1) ! (mag) J magnitude of the star
      real*4        Hmag       (nr__1) ! (mag) H magnitude of the star
      real*4        Kmag       (nr__1) ! (mag) K magnitude of the star
      real*4        e_Jmag     (nr__1) ! (mag) Error in J magnitude of the star
      real*8        e_Hmag     (nr__1) ! (mag) ?=100.000 Error in H magnitude of the star
      real*8        e_Kmag     (nr__1) ! (mag) ?=100.000 Error in K magnitude of the star
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude of the star
      real*8        U_B_1      (nr__1) ! (mag) ?=100.000 U-B color of the star
      real*4        B_V_1      (nr__1) ! (mag) B-V color of the star
      real*8        V_I_1      (nr__1) ! (mag) ?=100.000 V-I color of the star
      real*4        e_Vmag_1   (nr__1) ! (mag) Error in V magnitude of the star
      real*8        e_U_B_1    (nr__1) ! (mag) ?=100.000 Error in U-B color of the star
      real*4        e_B_V_1    (nr__1) ! (mag) Error in B-V color of the star
      real*8        e_V_I_1    (nr__1) ! (mag) ?=100.000 Error in V-I color of the star

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

C  Loading file 'table1.dat'	! The photometry list

C  Format for file interpretation

    1 format(
     +  F7.2,1X,F7.2,1X,F10.8,1X,F12.8,1X,F6.3,1X,F7.3,1X,F6.3,1X,
     +  F7.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1687
        read(1,'(A97)')ar__
        read(ar__,1)
     +  Xpos(i__),Ypos(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),U_B(i__),
     +  B_V(i__),V_I(i__),e_Vmag(i__),e_U_B(i__),e_B_V(i__),e_V_I(i__)
c    ..............Just test output...........
        write(6,1)
     +  Xpos(i__),Ypos(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),U_B(i__),
     +  B_V(i__),V_I(i__),e_Vmag(i__),e_U_B(i__),e_B_V(i__),e_V_I(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Photometric data for red giant branch (RGB) stars

C  Format for file interpretation

    2 format(
     +  F7.2,1X,F7.2,1X,F10.8,1X,F12.8,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F5.3,1X,F7.3,1X,F7.3,1X,F6.3,1X,F7.3,1X,F5.3,1X,F7.3,1X,F5.3,
     +  1X,F7.3,1X,F5.3,1X,F7.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,94
        read(1,'(A139)')ar__1
        read(ar__1,2)
     +  Xpos_1(i__),Ypos_1(i__),RAdeg_1(i__),DEdeg_1(i__),Jmag(i__),
     +  Hmag(i__),Kmag(i__),e_Jmag(i__),e_Hmag(i__),e_Kmag(i__),
     +  Vmag_1(i__),U_B_1(i__),B_V_1(i__),V_I_1(i__),e_Vmag_1(i__),
     +  e_U_B_1(i__),e_B_V_1(i__),e_V_I_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Xpos_1(i__),Ypos_1(i__),RAdeg_1(i__),DEdeg_1(i__),Jmag(i__),
     +  Hmag(i__),Kmag(i__),e_Jmag(i__),e_Hmag(i__),e_Kmag(i__),
     +  Vmag_1(i__),U_B_1(i__),B_V_1(i__),V_I_1(i__),e_Vmag_1(i__),
     +  e_U_B_1(i__),e_B_V_1(i__),e_V_I_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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