FORTRAN Generation
(/./ftp/cats/J/A_A/371/L5)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/371/L5 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-Oct-12
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/371/L5        CCD {Delta}a-photometry of NGC 1866      (Maitzen+, 2001)
*================================================================================
*On the detection of the first extragalactic classical chemically peculiar stars.
*    Maitzen H.M., Paunzen E., Pintado O.I.
*   <Astron. Astrophys. 371, L5 (2001)>
*   =2001A&A...371...L5M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed program stars within 1.5' of NGC 1866

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

      integer*4     Seq        (nr__) ! Notation for stars sorted after X and Y
      integer*4     TFC        (nr__) ! ? Notation according to Testa et al.
*                                     (1999, Cat. <J/AJ/118/2839>)
      real*8        Xpos       (nr__) ! (pix) X-coordinate (1pix=0.813")
      real*8        Ypos       (nr__) ! (pix) Y-coordinate (1pix=0.813")
      real*4        g1_y       (nr__) ! (mag) Mean (g1-y) index (1)
      real*4        e_g1_y     (nr__) ! (mag) rms uncertainty on (g1-y)
      real*4        a          (nr__) ! (mag) Mean a index (a = g2 - [(g1+y)/2]) (1)
      real*4        e_a        (nr__) ! (mag) rms uncertainty on a
      real*4        Deltaa     (nr__) ! (mag) Deviation from cluster line (2)
      real*4        ymag       (nr__) ! (mag) Mean y value (1)
      real*4        e_ymag     (nr__) ! (mag) rms uncertainty on ymag
      integer*4     N          (nr__) ! Number of measurements
*Note (1): CCD filter photometry in the narrow band {Delta}a-system
*      introduced by Maitzen (1976A&A....51..223M).
*      g1 is at 500nm, y at 550nm, both representing the continuum at the
*      edges of the feature, and g2 is located at the center of the feature
*      at 521nm.
*Note (2): Magnitude difference of g2 relative to the mean of g1 and y,
*      normalized to zero for a non-peculiar star

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

C  Declarations for 'table2.dat'	! Observed program stars in the surrounding of NGC 1866

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

      integer*4     Seq_1      (nr__1) ! Notation for stars sorted after X and Y
      integer*4     TFC_1      (nr__1) ! ? Notation according to Testa et al.
*                                     (1999, Cat. <J/AJ/118/2839>)
      real*8        Xpos_1     (nr__1) ! (pix) X-coordinate (1pix=0.813")
      real*8        Ypos_1     (nr__1) ! (pix) Y-coordinate (1pix=0.813")
      real*4        g1_y_1     (nr__1) ! (mag) Mean (g1-y) index (1)
      real*4        e_g1_y_1   (nr__1) ! (mag) rms uncertainty on (g1-y)
      real*4        a_1        (nr__1) ! (mag) Mean a index (a = g2 - [(g1+y)/2]) (1)
      real*4        e_a_1      (nr__1) ! (mag) rms uncertainty on a
      real*4        Deltaa_1   (nr__1) ! (mag) Deviation from cluster line (2)
      real*4        ymag_1     (nr__1) ! (mag) Mean y value (1)
      real*4        e_ymag_1   (nr__1) ! (mag) rms uncertainty on ymag
      integer*4     N_1        (nr__1) ! Number of measurements
*Note (1): CCD filter photometry in the narrow band {Delta}a-system
*      introduced by Maitzen (1976A&A....51..223M).
*      g1 is at 500nm, y at 550nm, both representing the continuum at the
*      edges of the feature, and g2 is located at the center of the feature
*      at 521nm.
*Note (2): Magnitude difference of g2 relative to the mean of g1 and y,
*      normalized to zero for a non-peculiar star

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

C  Loading file 'table1.dat'	! Observed program stars within 1.5' of NGC 1866

C  Format for file interpretation

    1 format(
     +  I4,1X,I5,1X,F7.2,1X,F7.2,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,301
        read(1,'(A74)')ar__
        read(ar__,1)
     +  Seq(i__),TFC(i__),Xpos(i__),Ypos(i__),g1_y(i__),e_g1_y(i__),
     +  a(i__),e_a(i__),Deltaa(i__),ymag(i__),e_ymag(i__),N(i__)
        if(ar__(6:10) .EQ. '') TFC(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),TFC(i__),Xpos(i__),Ypos(i__),g1_y(i__),e_g1_y(i__),
     +  a(i__),e_a(i__),Deltaa(i__),ymag(i__),e_ymag(i__),N(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Observed program stars in the surrounding of NGC 1866

C  Format for file interpretation

    2 format(
     +  I4,1X,I5,1X,F7.2,1X,F7.2,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1678
        read(1,'(A74)')ar__1
        read(ar__1,2)
     +  Seq_1(i__),TFC_1(i__),Xpos_1(i__),Ypos_1(i__),g1_y_1(i__),
     +  e_g1_y_1(i__),a_1(i__),e_a_1(i__),Deltaa_1(i__),ymag_1(i__),
     +  e_ymag_1(i__),N_1(i__)
        if(ar__1(6:10) .EQ. '') TFC_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Seq_1(i__),TFC_1(i__),Xpos_1(i__),Ypos_1(i__),g1_y_1(i__),
     +  e_g1_y_1(i__),a_1(i__),e_a_1(i__),Deltaa_1(i__),ymag_1(i__),
     +  e_ymag_1(i__),N_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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