FORTRAN Generation
(/./ftp/cats/J/A_A/513/A65)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/513/A65 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-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/513/A65    Rotation measures in the fourth Galactic quadrant (Nota+, 2010)
*================================================================================
*The large-scale magnetic field in the fourth Galactic quadrant.
*    Nota T., Katgert P.
*   <Astron. Astrophys., 513, A65-65 (2010)>
*   =2010A&A...513A..65N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! The rejected extragalactic sources

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

C  Position composed of: GLON GLAT
      real*4        GLON       (nr__) ! (deg) Galactic longitude
      real*4        GLAT       (nr__) ! (deg) Galactic latitude
      integer*4     RM         (nr__) ! (rad/m2) Rotation measure
      integer*4     e_RM       (nr__) ! (rad/m2) rms uncertainty on RM
      integer*4     IHa        (nr__) ! H{alpha} intensity (undefined unit "R")
      integer*4     stepHa     (nr__) ! [1/3]? Rejection reason (1) (G1)
      character*5   HII        (nr__) ! HII region RCW number(s) (1)
      character*10  SNR        (nr__) ! SNR name (1)
      character*1   n_SNR      (nr__) ! [*] * indicates source rejected by Haverkorn
*                                     (2008ApJ...680..362H), confirmed with
*                                     2.4GHz survey
*Note (1): Only in table2.dat (rejected extragalactic sources).

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

C  Declarations for 'table4.dat'	! The extragalactic sources with reliable rotation
                             measure (RM) estimates

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

C  Position composed of: GLON GLAT
      real*4        GLON_1     (nr__1) ! (deg) Galactic longitude
      real*4        GLAT_1     (nr__1) ! (deg) Galactic latitude
      integer*4     RM_1       (nr__1) ! (rad/m2) Rotation measure
      integer*4     e_RM_1     (nr__1) ! (rad/m2) rms uncertainty on RM
      integer*4     IHa_1      (nr__1) ! H{alpha} intensity (undefined unit "R")
      integer*4     stepHa_1   (nr__1) ! [1/3]? Rejection reason (1) (G1)
      character*5   HII_1      (nr__1) ! HII region RCW number(s) (1)
      character*10  SNR_1      (nr__1) ! SNR name (1)
      character*1   n_SNR_1    (nr__1) ! [*] * indicates source rejected by Haverkorn
*                                     (2008ApJ...680..362H), confirmed with
*                                     2.4GHz survey
*Note (1): Only in table2.dat (rejected extragalactic sources).

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

C  Declarations for 'table3.dat'	! The rejected pulsars (PSR)

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

C  Position composed of: GLON GLAT
      character*10  PSR        (nr__2) ! PSR name (JHHMM-DDMM or BHHMM-DD)
      real*4        GLON_2     (nr__2) ! (deg) Galactic longitude
      real*4        GLAT_2     (nr__2) ! (deg) Galactic latitude
      integer*4     DM         (nr__2) ! (pc/cm3) Dispersion measure
      real*4        Dist       (nr__2) ! (kpc) Physical distance
      integer*4     RM_2       (nr__2) ! (rad/m2) Rotation measure
      integer*4     e_RM_2     (nr__2) ! (rad/m2) rms uncertainty on RM
      integer*4     IHa_2      (nr__2) ! H{alpha} intensity
      integer*4     stepHa_2   (nr__2) ! [1/3]? Rejection reason (G1) (1)
      character*1   n_stepHa   (nr__2) ! [ns] Note on Hastep, in notes.dat file (1)
      character*8   HII_2      (nr__2) ! HII region name (RCW number) (1)
      real*4        DHII       (nr__2) ! ? Distance of the HII region (1)
      character*3   n_DHII     (nr__2) ! Note on DHII, in notes.dat file (1)
      real*4        DHII2      (nr__2) ! ? Second distance of the HII region (1)
      character*1   n_DHII2    (nr__2) ! Note on DHII2, in notes.dat file (1)
      character*12  SNR_2      (nr__2) ! SNR name (1)
      character*1   l_DSNR     (nr__2) ! Limit flag on DSNR (1)
      real*4        DSNR       (nr__2) ! (kpc) ? Distance of the SNR (1)
      character*3   n_DSNR     (nr__2) ! Note on DSNR, in notes.dat file (1)
*Note (1): Only for table3.dat (rejected PSR).

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

C  Declarations for 'table5.dat'	! The pulsars with reliable RM estimates

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

C  Position composed of: GLON GLAT
      character*10  PSR_1      (nr__3) ! PSR name (JHHMM-DDMM or BHHMM-DD)
      real*4        GLON_3     (nr__3) ! (deg) Galactic longitude
      real*4        GLAT_3     (nr__3) ! (deg) Galactic latitude
      integer*4     DM_1       (nr__3) ! (pc/cm3) Dispersion measure
      real*4        Dist_1     (nr__3) ! (kpc) Physical distance
      integer*4     RM_3       (nr__3) ! (rad/m2) Rotation measure
      integer*4     e_RM_3     (nr__3) ! (rad/m2) rms uncertainty on RM
      integer*4     IHa_3      (nr__3) ! H{alpha} intensity
      integer*4     stepHa_3   (nr__3) ! [1/3]? Rejection reason (G1) (1)
      character*1   n_stepHa_1 (nr__3) ! [ns] Note on Hastep, in notes.dat file (1)
      character*8   HII_3      (nr__3) ! HII region name (RCW number) (1)
      real*4        DHII_1     (nr__3) ! ? Distance of the HII region (1)
      character*3   n_DHII_1   (nr__3) ! Note on DHII, in notes.dat file (1)
      real*4        DHII2_1    (nr__3) ! ? Second distance of the HII region (1)
      character*1   n_DHII2_1  (nr__3) ! Note on DHII2, in notes.dat file (1)
      character*12  SNR_3      (nr__3) ! SNR name (1)
      character*1   l_DSNR_1   (nr__3) ! Limit flag on DSNR (1)
      real*4        DSNR_1     (nr__3) ! (kpc) ? Distance of the SNR (1)
      character*3   n_DSNR_1   (nr__3) ! Note on DSNR, in notes.dat file (1)
*Note (1): Only for table3.dat (rejected PSR).

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

C  Declarations for 'notes.dat'	! Individual notes

      integer*4 nr__4
      parameter (nr__4=31)	! Number of records
      character*80 ar__4  	! Full-size record

      character*1   Note       (nr__4) ! Note code
      character*78  Text       (nr__4) ! Text of the note

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

C  Loading file 'table2.dat'	! The rejected extragalactic sources

C  Format for file interpretation

    1 format(F6.2,1X,F5.2,1X,I5,1X,I2,1X,I4,1X,I1,1X,A5,1X,A10,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,55
        read(1,'(A47)')ar__
        read(ar__,1)
     +  GLON(i__),GLAT(i__),RM(i__),e_RM(i__),IHa(i__),stepHa(i__),
     +  HII(i__),SNR(i__),n_SNR(i__)
        if(ar__(28:28) .EQ. '') stepHa(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  GLON(i__),GLAT(i__),RM(i__),e_RM(i__),IHa(i__),stepHa(i__),
     +  HII(i__),SNR(i__),n_SNR(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! The extragalactic sources with reliable rotation
*                             measure (RM) estimates

C  Format for file interpretation

    2 format(F6.2,1X,F5.2,1X,I5,1X,I2,1X,I4,1X,I1,1X,A5,1X,A10,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,107
        read(1,'(A47)')ar__1
        read(ar__1,2)
     +  GLON_1(i__),GLAT_1(i__),RM_1(i__),e_RM_1(i__),IHa_1(i__),
     +  stepHa_1(i__),HII_1(i__),SNR_1(i__),n_SNR_1(i__)
        if(ar__1(28:28) .EQ. '') stepHa_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  GLON_1(i__),GLAT_1(i__),RM_1(i__),e_RM_1(i__),IHa_1(i__),
     +  stepHa_1(i__),HII_1(i__),SNR_1(i__),n_SNR_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! The rejected pulsars (PSR)

C  Format for file interpretation

    3 format(
     +  A10,1X,F6.2,1X,F5.2,1X,I4,1X,F5.2,1X,I5,1X,I2,1X,I3,1X,I1,A1,
     +  1X,A8,1X,F3.1,A3,1X,F3.1,A1,1X,A12,1X,A1,F4.2,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,47
        read(1,'(A93)')ar__2
        read(ar__2,3)
     +  PSR(i__),GLON_2(i__),GLAT_2(i__),DM(i__),Dist(i__),RM_2(i__),
     +  e_RM_2(i__),IHa_2(i__),stepHa_2(i__),n_stepHa(i__),HII_2(i__),
     +  DHII(i__),n_DHII(i__),DHII2(i__),n_DHII2(i__),SNR_2(i__),
     +  l_DSNR(i__),DSNR(i__),n_DSNR(i__)
        if(ar__2(49:49) .EQ. '') stepHa_2(i__) = iNULL__
        if(ar__2(61:63) .EQ. '') DHII(i__) = rNULL__
        if(ar__2(68:70) .EQ. '') DHII2(i__) = rNULL__
        if(ar__2(87:90) .EQ. '') DSNR(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  PSR(i__),GLON_2(i__),GLAT_2(i__),DM(i__),Dist(i__),RM_2(i__),
     +  e_RM_2(i__),IHa_2(i__),stepHa_2(i__),n_stepHa(i__),HII_2(i__),
     +  DHII(i__),n_DHII(i__),DHII2(i__),n_DHII2(i__),SNR_2(i__),
     +  l_DSNR(i__),DSNR(i__),n_DSNR(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! The pulsars with reliable RM estimates

C  Format for file interpretation

    4 format(
     +  A10,1X,F6.2,1X,F5.2,1X,I4,1X,F5.2,1X,I5,1X,I2,1X,I3,1X,I1,A1,
     +  1X,A8,1X,F3.1,A3,1X,F3.1,A1,1X,A12,1X,A1,F4.2,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,132
        read(1,'(A93)')ar__3
        read(ar__3,4)
     +  PSR_1(i__),GLON_3(i__),GLAT_3(i__),DM_1(i__),Dist_1(i__),
     +  RM_3(i__),e_RM_3(i__),IHa_3(i__),stepHa_3(i__),
     +  n_stepHa_1(i__),HII_3(i__),DHII_1(i__),n_DHII_1(i__),
     +  DHII2_1(i__),n_DHII2_1(i__),SNR_3(i__),l_DSNR_1(i__),
     +  DSNR_1(i__),n_DSNR_1(i__)
        if(ar__3(49:49) .EQ. '') stepHa_3(i__) = iNULL__
        if(ar__3(61:63) .EQ. '') DHII_1(i__) = rNULL__
        if(ar__3(68:70) .EQ. '') DHII2_1(i__) = rNULL__
        if(ar__3(87:90) .EQ. '') DSNR_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  PSR_1(i__),GLON_3(i__),GLAT_3(i__),DM_1(i__),Dist_1(i__),
     +  RM_3(i__),e_RM_3(i__),IHa_3(i__),stepHa_3(i__),
     +  n_stepHa_1(i__),HII_3(i__),DHII_1(i__),n_DHII_1(i__),
     +  DHII2_1(i__),n_DHII2_1(i__),SNR_3(i__),l_DSNR_1(i__),
     +  DSNR_1(i__),n_DSNR_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    5 format(A1,1X,A78)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,31
        read(1,'(A80)')ar__4
        read(ar__4,5)Note(i__),Text(i__)
c    ..............Just test output...........
        write(6,5)Note(i__),Text(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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