FORTRAN Generation
(/./ftp/cats/J/ApJ/698/2031)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/698/2031 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-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/ApJ/698/2031       Polarimetry of HAeBe stars               (Rodrigues+, 2009)
*================================================================================
*The alignment of the polarization of Herbig Ae/Be stars with the interstellar
*magnetic field.
*    Rodrigues C.V., Sartori M.J., Gregorio-Hetem J., Magalhaes A.M.
*   <Astrophys. J., 698, 2031-2035 (2009)>
*   =2009ApJ...698.2031R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Polarimetry of HAeBe objects

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

      character*13  Name       (nr__) ! Object name (see Ref and Note (2))
      character*1   f_Name     (nr__) ! Note about object (1)
      real*4        Vmag       (nr__) ! (mag) Torres 1999/Simbad V band magnitude or B
*                                     band magnitude if flagged
      character*1   f_Vmag     (nr__) ! [B] B: means B-band magnitude
      integer*4     Texp       (nr__) ! (s) Exposure time
      character*10  ObsDate    (nr__) ! ("YYYY/MM/DD") UT date of the observation
      real*4        Pol        (nr__) ! (%) Observed polarization
      real*4        e_Pol      (nr__) ! (%) Error in ObPol
      real*4        PolPA      (nr__) ! (deg) Observed polarization position angle
      integer*4     Nfg        (nr__) ! Number of foreground objects
      real*4        Pfg        (nr__) ! (%) ? Foreground polarization
      real*4        e_Pfg      (nr__) ! (%) ? Error in ForPol
      real*4        PfgPA      (nr__) ! (deg) ? Foreground polarization position angle
      real*4        Pin        (nr__) ! (%) ? Intrinsic polarization
      real*4        e_Pin      (nr__) ! (%) ? Error in InPol
      real*4        PinPA      (nr__) ! (deg) ? Intrinsic polarization position angle
      character*3   Ref        (nr__) ! References (2)
*Note (1): Flag as follows:
*    3 = The images of the field containing HD23302 and HD23480 do not include
*        objects with signal high enough to estimate the foreground polarization.
*    5 = PDS465 and PDS581 are post-AGB objects.
*Note (2): References as follows:
*    1 = Vieira et al. (2003, Cat. J/AJ/126/2971; <PDS NNN> in Simbad);
*    2 = The et al. (1994, Cat. J/A+AS/104/315);
*    3 = Torres (1999, C. A. O., Special Publ. 10 (Rio de Janeiro Observatorio
*        Nacional)).

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

C  Loading file 'table1.dat'	! Polarimetry of HAeBe objects

C  Format for file interpretation

    1 format(
     +  A13,1X,A1,1X,F4.1,1X,A1,1X,I3,1X,A10,1X,F6.3,1X,F5.3,1X,F5.1,
     +  1X,I4,1X,F5.3,1X,F5.3,1X,F5.1,1X,F6.3,1X,F5.3,1X,F5.1,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,104
        read(1,'(A102)')ar__
        read(ar__,1)
     +  Name(i__),f_Name(i__),Vmag(i__),f_Vmag(i__),Texp(i__),
     +  ObsDate(i__),Pol(i__),e_Pol(i__),PolPA(i__),Nfg(i__),Pfg(i__),
     +  e_Pfg(i__),PfgPA(i__),Pin(i__),e_Pin(i__),PinPA(i__),Ref(i__)
        if(ar__(63:67) .EQ. '') Pfg(i__) = rNULL__
        if(ar__(69:73) .EQ. '') e_Pfg(i__) = rNULL__
        if(ar__(75:79) .EQ. '') PfgPA(i__) = rNULL__
        if(ar__(81:86) .EQ. '') Pin(i__) = rNULL__
        if(ar__(88:92) .EQ. '') e_Pin(i__) = rNULL__
        if(ar__(94:98) .EQ. '') PinPA(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),f_Name(i__),Vmag(i__),f_Vmag(i__),Texp(i__),
     +  ObsDate(i__),Pol(i__),e_Pol(i__),PolPA(i__),Nfg(i__),Pfg(i__),
     +  e_Pfg(i__),PfgPA(i__),Pin(i__),e_Pin(i__),PinPA(i__),Ref(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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