FORTRAN Generation
(/./home/cats/I/257B)

Conversion of standardized ReadMe file for file /./home/cats/I/257B 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 2026-May-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. I/257B             Proper Motions in Praesepe            (Wang+, 1995)
*================================================================================
*J2000.0 positions and proper motions of 257 stars in the central part of the
*Praesepe astrometric standard region
*     Wang J.J., Jiang P.F.
*    <Acta Astron. Sinica. 32, 176 (1991)>
*    =1991AcASn..32..176W
*High-precision study of proper motions and membership of 924 stars in
*the central region of Praesepe.
*     Wang J.J., Chen L., Zhao J.H., Jiang P.F.
*    <Astron. Astrophys. Suppl. Ser. 113, 419 (1995)>
*    =1995A&AS..113..419W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Data for 924 stars and their membership.
                              (table 8 of paper in 1995A&AS..113..419W)

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

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

      integer*4     Seq        (nr__) ! *[1,924]+ Sequential number
      integer*4     Russel     (nr__) ! ? Russell's (1976, Ph.D. Thesis) number
      character*4   KW         (nr__) ! ? Klein-Wassink's (1927, Groningen Publ. 41)
      integer*4     NArt       (nr__) ! ? Artyukhina's (1971, Soob. Sternberg 172, 3)
      integer*4     NJC        (nr__) ! ? Jones & Cudworth's (1983AJ.....88..215J)
      character*1   AC         (nr__) ! [*] AC star is indicated with '*'
      real*4        Mag        (nr__) ! (mag) V magnitude or B magnitude when there is
*                                   a 'B' in the next column
      character*1   f_Mag      (nr__) ! [B] When 'B' given magnitude is B magnitude
      real*4        B_V        (nr__) ! (mag) ? B-V colour index
      character*1   f_B_V      (nr__) ! [PG] Photoelectric or photoGraphic color
      character*1   r_B_V      (nr__) ! *[CWGJRH] Origin of the photometry
      character*1   q_B_V      (nr__) ! *[BGFP] Quality of the photometry
      integer*4     RAh        (nr__) ! (h) Right ascension Equinox=J2000.0, Epoch=1986.17
      integer*4     RAm        (nr__) ! (min) Right ascension Equinox=J2000.0, Epoch=1986.17
      real*4        RAs        (nr__) ! (s) Right ascension Equinox=J2000.0, Epoch=1986.17
      character*1   DE_        (nr__) ! Declination sign
      integer*4     DEd        (nr__) ! (deg) Declination for Equinox=J2000.0, Epoch=1986.17
      integer*4     DEm        (nr__) ! (arcmin) Declination for Equinox=J2000.0, Epoch=1986.17
      real*4        DEs        (nr__) ! (arcsec) Declination for Equinox=J2000.0, Epoch=1986.17
      integer*4     pmRA       (nr__) ! (0.1mas/yr) Proper motion component in right ascension
*                                     reduced into the great circle
      integer*4     e_pmRA     (nr__) ! (0.1mas/yr) Standard error of proper motion in RA
      integer*4     pmDE       (nr__) ! (0.1mas/yr) Proper motion component in declination
      integer*4     e_pmDE     (nr__) ! (0.1mas/yr) Standard error of proper motion in DE
      real*4        Prob       (nr__) ! Membership probability
      integer*4     Member     (nr__) ! [0,1] Membership judgement:
*                                  '1' cluster star (Prob>=0.36)
*                                  '0' field star   (Prob<0.36)
      character*6   n_Member   (nr__) ! *Notes about previous membership judgements
*Note on Seq: Numbers 1 to 257 were published also in Wang and Jiang,
*     Acta Astronomica Sinica (1991AcASn..32..176W), see file "cat1991.dat"
*Note on r_B-V: the origin of the photometry is coded as follows:
*     C - combined from Johnson (1952ApJ...116..640J),
*         Upgren et al. (1979AJ.....84.1586U),
*     W - combined from Weis (1981PASP...93..437W),
*         and Stauffer (1982PASP...94..678S)
*     G - Goetz's (1984AN....305...17G)
*     J - Jones & Cudworth's (1983AJ.....88..215J)
*     R - Russell's (1976, Pd.D. Thesis, Pittsburgh University)
*     H was never explained.
*Note on q_B-V: the quality letters correspond to an estimated standard error:
*     B - s.e. less than 0.01
*     G - s.e. from 0.01 to 0.04
*     F - s.e. from 0.04 to 0.08
*     P - s.e. greater than 0.08
*Note on n_Member: the symbols are:
*     K - member by Klein-Wassink (1927, Groningen Publ. 41)
*     A - member by Artyukhina (1971, Soobshch. Astron. Inst. Sternberg 172, 3)
*  1..9 - non-zero membership probability by Jones & Cudworth
*         (1983AJ.....88..215J)

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

C  Declarations for 'cat1991.dat'	! J2000.0 positions and proper motions of 257
                              stars in the central part of the Praesepe
                              astrometric standard region

      integer*4 nr__1
      parameter (nr__1=257)	! Number of records
      character*73 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)

      integer*4     Seq_1      (nr__1) ! [1,257]+ Sequential number
      integer*4     Russel_1   (nr__1) ! Russel number
      character*1   n_Russel   (nr__1) ! [*] Note on Russel number (See text in
*                                         the original publication)
      integer*4     RAh_1      (nr__1) ! (h) Right ascension J2000.0
      integer*4     RAm_1      (nr__1) ! (min) Right ascension J2000.0
      real*8        RAs_1      (nr__1) ! (s) Right ascension J2000.0
      integer*4     e_RAs      (nr__1) ! (10-4s) rms uncertainty on right ascension
      character*1   DE__1      (nr__1) ! Declination sign
      integer*4     DEd_1      (nr__1) ! (deg) Declination J2000.0
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination J2000.0
      real*4        DEs_1      (nr__1) ! (arcsec) Declination J2000.0
      integer*4     e_DEs      (nr__1) ! (10-3arcsec) rms uncertainty on declination
      real*8        pmRA_1     (nr__1) ! (s/yr) Proper motion in right ascension
      integer*4     e_pmRA_1   (nr__1) ! (10-6s/yr) rms uncertainty on pmRA
      real*8        pmDE_1     (nr__1) ! (arcsec/yr) Proper motion in declination
      integer*4     e_pmDE_1   (nr__1) ! (10-5arcsec/yr) rms uncertainty on pmDE

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

C  Loading file 'catalog.dat'	! Data for 924 stars and their membership.
*                              (table 8 of paper in 1995A&AS..113..419W)

C  Format for file interpretation

    1 format(
     +  1X,I3,1X,I3,1X,A4,1X,I3,1X,I3,2X,A1,2X,F5.2,A1,F5.2,1X,A1,A1,
     +  A1,1X,I1,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,2X,I4,1X,I3,1X,
     +  I5,1X,I3,1X,F4.2,1X,I1,1X,A6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,924
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Seq(i__),Russel(i__),KW(i__),NArt(i__),NJC(i__),AC(i__),
     +  Mag(i__),f_Mag(i__),B_V(i__),f_B_V(i__),r_B_V(i__),q_B_V(i__),
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
     +  Prob(i__),Member(i__),n_Member(i__)
        if(ar__(6:8) .EQ. '') Russel(i__) = iNULL__
        if(ar__(15:17) .EQ. '') NArt(i__) = iNULL__
        if(ar__(19:21) .EQ. '') NJC(i__) = iNULL__
        if(ar__(33:37) .EQ. '') B_V(i__) = rNULL__
        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)
     +  Seq(i__),Russel(i__),KW(i__),NArt(i__),NJC(i__),AC(i__),
     +  Mag(i__),f_Mag(i__),B_V(i__),f_B_V(i__),r_B_V(i__),q_B_V(i__),
     +  RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
     +  DEs(i__),pmRA(i__),e_pmRA(i__),pmDE(i__),e_pmDE(i__),
     +  Prob(i__),Member(i__),n_Member(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 'cat1991.dat'	! J2000.0 positions and proper motions of 257
*                              stars in the central part of the Praesepe
*                              astrometric standard region

C  Format for file interpretation

    2 format(
     +  I3,2X,I3,A1,1X,I1,1X,I2,1X,F7.4,2X,I3,A1,I2,1X,I2,1X,F6.3,1X,
     +  I3,1X,F9.6,1X,I4,1X,F8.5,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'cat1991.dat')
      write(6,*) '....Loading file: cat1991.dat'
      do i__=1,257
        read(1,'(A73)')ar__1
        read(ar__1,2)
     +  Seq_1(i__),Russel_1(i__),n_Russel(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),e_RAs(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),
     +  DEs_1(i__),e_DEs(i__),pmRA_1(i__),e_pmRA_1(i__),pmDE_1(i__),
     +  e_pmDE_1(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)
     +  Seq_1(i__),Russel_1(i__),n_Russel(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),e_RAs(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),
     +  DEs_1(i__),e_DEs(i__),pmRA_1(i__),e_pmRA_1(i__),pmDE_1(i__),
     +  e_pmDE_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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