FORTRAN Generation
(/./ftp/cats/J/AJ/133/906)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/133/906 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-20
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/AJ/133/906          Radio star proper motions                 (Boboltz+, 2007)
*================================================================================
*Very Large Array plus Pie Town astrometry of 46 radio stars.
*    Boboltz D.A., Fey A.L., Puatua W.K., Zacharias N., Claussen M.J.,
*    Johnston K.J., Gaume R.A.
*   <Astron. J., 133, 906-916 (2007)>
*   =2007AJ....133..906B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed radio stars and corresponding ICRF
                             calibrator sources

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

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__) ! (deg) Right Ascension J2000.0
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*9   Name       (nr__) ! Star name
      integer*4     HIP        (nr__) ! Hipparcos number (HIP NNNNNN in Simbad)
      character*8   ICRF       (nr__) ! ICRF calibrator (IERS name)
      character*1   n_ICRF     (nr__) ! [CDNO] ICRF category (1)
      integer*4     RAh        (nr__) ! (h) Hour of Right Ascension (J2000.0) (2)
      integer*4     RAm        (nr__) ! (min) Minute of Right Ascension (J2000.0) (2)
      real*8        RAs        (nr__) ! (s) Second of Right Ascension (J2000.0) (2)
      character*1   DE_        (nr__) ! Sign of the Declination (J2000.0) (2)
      integer*4     DEd        (nr__) ! (deg) Degree of Declination (J2000.0) (2)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of Declination (J2000.0) (2)
      real*8        DEs        (nr__) ! (arcsec) Arcsecond of Declination (J2000.0) (2)
      real*4        Sep        (nr__) ! (deg) Separation between the target and the ICRF
*                                     reference source.
*Note (1): ICRF source category (Ma et al. 1998, Cat. I/251; Gambis 1999,
*     IERS Annu. Rep. (Paris: Obs. Paris) p. 87; Fey et al. 2004, Cat.
*     J/AJ/127/3587), defined as follows:
*    D = defining;
*    C = candidate;
*    O = other;
*    N = new in ICRF extension 1.
*Note (2): ICRF extension 1 source positions (Gambis 1999, IERS Annu. Rep.
*     (Paris: Obs. Paris) p. 87).

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

C  Declarations for 'table2.dat'	! Radio star positions estimated from the VLA+PT data

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

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension J2000.0
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*9   Name_1     (nr__1) ! Star name
      character*1   n_Name     (nr__1) ! [*] Note on Name (1)
      integer*4     HIP_1      (nr__1) ! Hipparcos number (HIP NNNNNN in Simbad)
      integer*4     RAh_1      (nr__1) ! (h) Hour of Right Ascension (J2000.0)
      integer*4     RAm_1      (nr__1) ! (min) Minute of Right Ascension (J2000.0)
      real*8        RAs_1      (nr__1) ! (s) Second of Right Ascension (J2000.0)
      real*4        e_RAs      (nr__1) ! (s) Error on RAs (in seconds of time)
      real*4        eRAs       (nr__1) ! (arcsec) Error on RAs (in seconds of arc)
      character*1   DE__1      (nr__1) ! Sign of the Declination (J2000.0)
      integer*4     DEd_1      (nr__1) ! (deg) Degree of Declination (J2000.0)
      integer*4     DEm_1      (nr__1) ! (arcmin) Arcminute of Declination (J2000.0)
      real*4        DEs_1      (nr__1) ! (arcsec) Arcsecond of Declination (J2000.0)
      real*4        e_DEs      (nr__1) ! (arcsec) Error on DEs
      real*8        Epoch      (nr__1) ! (yr) Epoch of observation
      integer*4     Ns         (nr__1) ! Number of successful observations
      integer*4     Nt         (nr__1) ! Number of total observations (scans)
*Note (1): HD 193793 was observed in experiments AF399a and AJ315.

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

C  Declarations for 'table3.dat'	! Radio star position uncertainties and
                             offsets from Hipparcos

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

      character*9   Name_2     (nr__2) ! Star name
      character*1   n_Name_1   (nr__2) ! [*] Note on Name (1)
      integer*4     HIP_2      (nr__2) ! Hipparcos number (HIP NNNNNN in Simbad)
      real*4        e_RAR      (nr__2) ! (mas) Radio error in Right Ascension (RAcosDE)
      real*4        e_DER      (nr__2) ! (mas) Radio error in Declination
      real*4        e_RAH      (nr__2) ! (mas) Hipparcos error in Right Ascension
*                                    (RAcosDE) (2)
      real*4        e_DEH      (nr__2) ! (mas) Hipparcos error in Declination (2)
      real*4        e_RA       (nr__2) ! (mas) Combined error in Right Ascension
*                                    (RAcosDE) (3)
      real*4        e_DE       (nr__2) ! (mas) Combined error in Declination (3)
      real*4        dRA        (nr__2) ! (mas) Offset {Delta}Hip-Rad (RAcosDE)
      real*4        dDE        (nr__2) ! (mas) Offset {Delta}Hip-Rad
*Note (1): HD 193793 was observed in experiments AF399a and AJ315.
*Note (2): Hipparcos uncertainties updated to the epoch of our observations
*     using the Hipparcos proper-motion uncertainties.
*Note (3): Combined uncertainties are the rss (root sum square) of our
*     VLA+PT errors and the corresponding Hipparcos errors at epoch.

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

C  Declarations for 'table4.dat'	! Radio star proper-motions

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

      character*9   Name_3     (nr__3) ! Star name
      integer*4     HIP_3      (nr__3) ! Hipparcos number (HIP NNNNNN in Simbad)
      real*8        pmRA       (nr__3) ! (mas/yr) Proper motion in Right Ascension (pmRA*cosDE)
      real*4        e_pmRA     (nr__3) ! (mas/yr) Error in pmRA
      real*8        pmDE       (nr__3) ! (mas/yr) Proper motion in Declination
      real*4        e_pmDE     (nr__3) ! (mas/yr) Error in pmDE
      integer*4     Npos       (nr__3) ! Number of position measurements (1)
      real*8        DeltaT     (nr__3) ! (yr) Time between first and last position epochs
*Note (1): Number of position measurements used in the weighted
*     least-squares fit to estimate the proper motion.

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

C  Declarations for 'table5.dat'	! Radio star proper-motion uncertainties and
                             offsets from Hipparcos

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

      character*9   Name_4     (nr__4) ! Star name
      integer*4     HIP_4      (nr__4) ! Hipparcos number (HIP NNNNNN in Simbad)
      real*4        e_pmRAR    (nr__4) ! (mas/yr) Radio error in pmRA*cosDE
      real*4        e_pmDER    (nr__4) ! (mas/yr) Radio error in pmDE
      real*4        e_pmRAH    (nr__4) ! (mas/yr) Hipparcos error in pmRA*cosDE
      real*4        e_pmDEH    (nr__4) ! (mas/yr) Hipparcos error in pmDE
      real*4        e_pmRAc    (nr__4) ! (mas/yr) Combined error in pmRA (1)
      real*4        e_pmDEc    (nr__4) ! (mas/yr) Combined error in pmDE (1)
      real*4        dpmRA      (nr__4) ! (mas/yr) Offset {Delta}Hip-Rad for pmRA*cosDE
      real*4        dpmDE      (nr__4) ! (mas/yr) Offset {Delta}Hip-Rad for pmDE
*Note (1): Combined uncertainties are the rss (root sum square) of our radio
*     errors and the corresponding Hipparcos errors at epoch.

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

C  Loading file 'table1.dat'	! Observed radio stars and corresponding ICRF
*                             calibrator sources

C  Format for file interpretation

    1 format(
     +  A9,1X,I6,1X,A8,1X,A1,1X,I2,1X,I2,1X,F9.6,1X,A1,I2,1X,I2,1X,
     +  F8.5,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,46
        read(1,'(A64)')ar__
        read(ar__,1)
     +  Name(i__),HIP(i__),ICRF(i__),n_ICRF(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),Sep(i__)
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),HIP(i__),ICRF(i__),n_ICRF(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),Sep(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Radio star positions estimated from the VLA+PT data

C  Format for file interpretation

    2 format(
     +  A9,A1,I6,1X,I2,1X,I2,1X,F7.4,1X,F6.4,1X,F5.3,1X,A1,I2,1X,I2,
     +  1X,F6.3,1X,F5.3,1X,F9.4,1X,I1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,47
        read(1,'(A77)')ar__1
        read(ar__1,2)
     +  Name_1(i__),n_Name(i__),HIP_1(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),e_RAs(i__),eRAs(i__),DE__1(i__),DEd_1(i__),
     +  DEm_1(i__),DEs_1(i__),e_DEs(i__),Epoch(i__),Ns(i__),Nt(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),n_Name(i__),HIP_1(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),e_RAs(i__),eRAs(i__),DE__1(i__),DEd_1(i__),
     +  DEm_1(i__),DEs_1(i__),e_DEs(i__),Epoch(i__),Ns(i__),Nt(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Radio star position uncertainties and
*                             offsets from Hipparcos

C  Format for file interpretation

    3 format(
     +  A9,A1,I6,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,
     +  F5.1,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,47
        read(1,'(A58)')ar__2
        read(ar__2,3)
     +  Name_2(i__),n_Name_1(i__),HIP_2(i__),e_RAR(i__),e_DER(i__),
     +  e_RAH(i__),e_DEH(i__),e_RA(i__),e_DE(i__),dRA(i__),dDE(i__)
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),n_Name_1(i__),HIP_2(i__),e_RAR(i__),e_DER(i__),
     +  e_RAH(i__),e_DEH(i__),e_RA(i__),e_DE(i__),dRA(i__),dDE(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Radio star proper-motions

C  Format for file interpretation

    4 format(A9,1X,I6,1X,F7.2,1X,F4.2,1X,F7.2,1X,F4.2,1X,I1,1X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,46
        read(1,'(A52)')ar__3
        read(ar__3,4)
     +  Name_3(i__),HIP_3(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),
     +  e_pmDE(i__),Npos(i__),DeltaT(i__)
c    ..............Just test output...........
        write(6,4)
     +  Name_3(i__),HIP_3(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),
     +  e_pmDE(i__),Npos(i__),DeltaT(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Radio star proper-motion uncertainties and
*                             offsets from Hipparcos

C  Format for file interpretation

    5 format(
     +  A9,1X,I6,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,46
        read(1,'(A58)')ar__4
        read(ar__4,5)
     +  Name_4(i__),HIP_4(i__),e_pmRAR(i__),e_pmDER(i__),e_pmRAH(i__),
     +  e_pmDEH(i__),e_pmRAc(i__),e_pmDEc(i__),dpmRA(i__),dpmDE(i__)
c    ..............Just test output...........
        write(6,5)
     +  Name_4(i__),HIP_4(i__),e_pmRAR(i__),e_pmDER(i__),e_pmRAH(i__),
     +  e_pmDEH(i__),e_pmRAc(i__),e_pmDEc(i__),dpmRA(i__),dpmDE(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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