FORTRAN Generation
(/./ftp/cats/J/A_A/459/871)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/459/871 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-28
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/459/871     Chemically peculiar stars in the LMC          (Paunzen+, 2006)
*================================================================================
*Chemically peculiar stars in the Large Magellanic Cloud
*     Paunzen E., Maitzen H.M., Pintado O.I., Claret A., Iliev I.K., Netopil M.
*    <Astron. Astrophys. 459, 871 (2006)>
*    =2006A&A...459..871P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed program stars in NGC 2136/7 and
                                its surrounding

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

C  J2000.0 position composed of: RAhr DEdeg
      integer*4     Seq         ! [1,417]  Stars number sorted after X and Y
      real*8        RAhr        ! (h) Right Ascension (J2000.0)
      real*8        DEdeg       ! (deg) Declination (J2000.0)
      real*4        Xpos        ! (pix) X coordinate
      real*4        e_Xpos      ! (pix) rms uncertainty on X coordinate
      real*4        Ypos        ! (pix) Y coordinate
      real*4        e_Ypos      ! (pix) rms uncertainty on Y coordinate
      real*4        g1_y        ! (mag) Mean (g1-y) index
      real*4        e_g1_y      ! (mag) rms uncertainty on (g1-y)
      real*4        Da          ! (mag) ? Deviation from cluster line (Delta a)
      real*4        a           ! (mag) ? Mean a index (a=g2-[(g1+y)/2])
      real*4        e_a         ! (mag) ? rms uncertainty on a
      real*4        Umag        ! (mag) ? Johnson U magnitude (1)
      real*4        e_Umag      ! (mag) ? rms uncertainty on U magnitude
      real*4        Bmag        ! (mag) ? Johnson B magnitude (1)
      real*4        e_Bmag      ! (mag) ? rms uncertainty on B magnitude
      real*4        Vmag        ! (mag) ? Johnson V magnitude (1)
      real*4        e_Vmag      ! (mag) ? rms uncertainty on V magnitude
      real*4        Imag        ! (mag) ? Johnson I magnitude (1)
      real*4        e_Imag      ! (mag) ? rms uncertainty on I magnitude
      integer*4     N           ! [10,69] Number of measurements
*Note (1): Magnitudes from Zaritsky et al., 2004AJ....128.1606Z.

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

C  Loading file 'table1.dat'	! Observed program stars in NGC 2136/7 and
*                                its surrounding

C  Format for file interpretation

    1 format(
     +  I3,1X,F9.6,1X,F9.5,1X,F6.1,1X,F3.1,1X,F6.1,1X,F3.1,1X,F6.3,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,
     +  1X,F6.3,1X,F5.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,417
        read(1,'(A132)')ar__
        read(ar__,1)
     +  Seq,RAhr,DEdeg,Xpos,e_Xpos,Ypos,e_Ypos,g1_y,e_g1_y,Da,a,e_a,
     +  Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Imag,e_Imag,N
        if(ar__(60:65) .EQ. '') Da = rNULL__
        if(ar__(67:71) .EQ. '') a = rNULL__
        if(ar__(73:77) .EQ. '') e_a = rNULL__
        if(ar__(79:84) .EQ. '') Umag = rNULL__
        if(ar__(86:90) .EQ. '') e_Umag = rNULL__
        if(ar__(92:97) .EQ. '') Bmag = rNULL__
        if(ar__(99:103) .EQ. '') e_Bmag = rNULL__
        if(ar__(105:110) .EQ. '') Vmag = rNULL__
        if(ar__(112:116) .EQ. '') e_Vmag = rNULL__
        if(ar__(118:123) .EQ. '') Imag = rNULL__
        if(ar__(125:129) .EQ. '') e_Imag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq,RAhr,DEdeg,Xpos,e_Xpos,Ypos,e_Ypos,g1_y,e_g1_y,Da,a,e_a,
     +  Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Imag,e_Imag,N
c    .......End.of.Just test output...........
      end do
      close(1)

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