FORTRAN Generation
(/./ftp/cats/J/ApJ/671/2040)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/671/2040 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-16
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/671/2040      Polarisation of candidates Be stars      (Wisniewski+, 2007)
*================================================================================
*The role of evolutionary age and metallicity in the formation of classical Be
*circumstellar disks.
*II. Assessing the evolutionary nature of candidate disk systems.
*    Wisniewski J.P., Bjorkman K.S., Magalhaes A.M., Bjorkman J.E., Meade M.R.,
*    Pereyra A.
*   <Astrophys. J., 671, 2040-2058 (2007)>
*   =2007ApJ...671.2040W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table6.dat'	! Total polarization of candidate Be stars

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

      character*19  ID         (nr__) ! Candidate Be star identification
      character*1   Filt       (nr__) ! [ubvri] Filter used in the observation
      real*4        Polt       (nr__) ! (%) ? Total polarization (1)
      real*4        polPAt     (nr__) ! (deg) ? Position angle of total polarization
      real*4        Qt         (nr__) ! (%) ? Stokes Q polarization
      real*4        Ut         (nr__) ! (%) ? Stokes U polarization
      real*4        e_Polt     (nr__) ! (%) ? Polarization error
*Note (1): Interstellar plus intrinsic components.

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

C  Declarations for 'table7.dat'	! Intrinsic polarization of candidate Be stars

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

      character*19  ID_1       (nr__1) ! Candidate Be star identification
      character*1   Filt_1     (nr__1) ! [ubvri] Filter used in the observation
      real*4        Poli       (nr__1) ! (%) ? Intrinsic polarization
      real*4        polPAi     (nr__1) ! (deg) ? Position angle of intrinsic polarization
      real*4        Qi         (nr__1) ! (%) ? Stokes Q polarization
      real*4        Ui         (nr__1) ! (%) ? Stokes U polarization
      real*4        e_Poli     (nr__1) ! (%) ? Polarization error

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

C  Declarations for 'table8.dat'	! Classifying the intrinsic polarization of
                              individual candidate Be stars

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

      character*19  ID_2       (nr__2) ! Candidate Be star identification
      character*2   Jump       (nr__2) ! Polarization Balmer jump present?
      character*4   PAdes      (nr__2) ! Polarization position angle description (1)
      real*4        Class      (nr__2) ! Be star classification (2)
      character*35  Comm       (nr__2) ! Additional comments
*Note (1): Position angle was flat (F), linearly sloped (S), or randomly
*     variable (V) while the numbers indicate the {sigma} level of such
*     characterizations.
*Note (2): The likelihood each object is a bona-fide classical Be star based
*     on the 4 point classification scheme described in the text.

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

C  Declarations for 'table13.dat'	! IR colors of candidate Be stars

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

      character*19  ID_3       (nr__3) ! Candidate Be star identification (1)
      character*14  Class_1    (nr__3) ! Polarimetric designation (2)
      real*4        J_H        (nr__3) ! (mag) 2MASS (J-H) color index
      real*4        H_K        (nr__3) ! (mag) 2MASS (H-K) color index
      real*4        e_J_H      (nr__3) ! (mag) Error in J-H (3)
      real*4        e_H_K      (nr__3) ! (mag) Error in H-K (3)
*Note (1): Near-IR colors are tabulated for all candidate Be stars in
*     clusters investigated in this paper which were detected in all three
*     2MASS photometric bands.
*Note (2): Polarimetric designation as follows:
*     Type-1:Bal-J   = Type-1 sources which we assert are most likely to be
*                      classical Be stars
*     Type-2:ES      = Type-2 sources which exhibit electron scattering
*                      intrinsic polarimetric signatures and are thus
*                      likely classical Be stars
*     Type-2-4,other = All other sources, regardless of whether they were
*                      detected via our polarimetric survey or not
*Note (3): Obtained by adding individual filter errors in quadrature.

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

C  Loading file 'table6.dat'	! Total polarization of candidate Be stars

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,1792
        read(1,'(A53)')ar__
        read(ar__,1)
     +  ID(i__),Filt(i__),Polt(i__),polPAt(i__),Qt(i__),Ut(i__),
     +  e_Polt(i__)
        if(ar__(23:27) .EQ. '') Polt(i__) = rNULL__
        if(ar__(29:34) .EQ. '') polPAt(i__) = rNULL__
        if(ar__(36:41) .EQ. '') Qt(i__) = rNULL__
        if(ar__(43:47) .EQ. '') Ut(i__) = rNULL__
        if(ar__(49:53) .EQ. '') e_Polt(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),Filt(i__),Polt(i__),polPAt(i__),Qt(i__),Ut(i__),
     +  e_Polt(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Intrinsic polarization of candidate Be stars

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,1792
        read(1,'(A53)')ar__1
        read(ar__1,2)
     +  ID_1(i__),Filt_1(i__),Poli(i__),polPAi(i__),Qi(i__),Ui(i__),
     +  e_Poli(i__)
        if(ar__1(23:27) .EQ. '') Poli(i__) = rNULL__
        if(ar__1(29:34) .EQ. '') polPAi(i__) = rNULL__
        if(ar__1(35:40) .EQ. '') Qi(i__) = rNULL__
        if(ar__1(42:46) .EQ. '') Ui(i__) = rNULL__
        if(ar__1(49:53) .EQ. '') e_Poli(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  ID_1(i__),Filt_1(i__),Poli(i__),polPAi(i__),Qi(i__),Ui(i__),
     +  e_Poli(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Classifying the intrinsic polarization of
*                              individual candidate Be stars

C  Format for file interpretation

    3 format(A19,1X,A2,1X,A4,1X,F3.1,1X,A35)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,369
        read(1,'(A67)')ar__2
        read(ar__2,3)
     +  ID_2(i__),Jump(i__),PAdes(i__),Class(i__),Comm(i__)
c    ..............Just test output...........
        write(6,3)
     +  ID_2(i__),Jump(i__),PAdes(i__),Class(i__),Comm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table13.dat'	! IR colors of candidate Be stars

C  Format for file interpretation

    4 format(A19,1X,A14,1X,F5.2,1X,F5.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table13.dat')
      write(6,*) '....Loading file: table13.dat'
      do i__=1,120
        read(1,'(A56)')ar__3
        read(ar__3,4)
     +  ID_3(i__),Class_1(i__),J_H(i__),H_K(i__),e_J_H(i__),e_H_K(i__)
c    ..............Just test output...........
        write(6,4)
     +  ID_3(i__),Class_1(i__),J_H(i__),H_K(i__),e_J_H(i__),e_H_K(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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