FORTRAN Generation
(/./ftp/cats/J/A_AS/131/239)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/131/239 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-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+AS/131/239      NGC 1750 + NGC 1758 BVR photometry (Galadi-Enriquez+ 1998)
*================================================================================
*The overlapping open clusters NGC 1750 and NGC 1758:
*II. BVR photographic photometry and proper motions
*       Galadi-Enriquez D., Jordi C., Trullols E., Guibert J., Tian K.P.,
*       Zhao J.L.
*      <Astron. Astrophys. Suppl. Ser. 131, 239 (1998)>
*      =1998A&AS..131..239G      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table6.dat'	! Photographic photometric and astrometric catalogue

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

      integer*4     GJTGTZ     (nr__) ! Identification number
      real*8        xpos       (nr__) ! (mm) x coordinate (master plate ref. system) (1)
      real*8        ypos       (nr__) ! (mm) y coordinate (master plate ref. system) (1)
      real*8        pmxpos     (nr__) ! (mas/yr) ?=99.99 Relative proper motion along x (2)
      real*8        pmypos     (nr__) ! (mas/yr) ?=99.99 Relative proper motion along y (2)
      real*4        e_xpos     (nr__) ! (um) ?=99.99 Error of x coordinate (1)
      real*4        e_ypos     (nr__) ! (um) ?=99.99 Error of y coordinate (1)
      real*4        e_pmxpos   (nr__) ! (mas/yr) ?=99.99 Error of proper motion in x
      real*4        e_pmypos   (nr__) ! (mas/yr) ?=99.99 Error of proper motion in y
      real*4        Bmag       (nr__) ! (mag) ?=99.99 Johnson B photographic magnitude (3)
      real*4        Vmag       (nr__) ! (mag) ?=99.99 Johnson V photographic magnitude (3)
      real*4        Rmag       (nr__) ! (mag) ?=99.99 Cousins R photographic magnitude (3)
      integer*4     Nplate     (nr__) ! Number of plates for proper motion calculation
      real*4        delta_t    (nr__) ! (yr) Maximum epoch difference with master plate for
*                                   proper motion calculation
*Note (1): Coordinates xpos and ypos include the {xi} and {eta} parameters
*           (Eqs. 6 and 7) for stars with computed proper motions. The error of
*           xpos and ypos coordinates are that of {xi} and {eta} parameters for
*           stars with proper motions computed from more than three plates.
*           An error of 99.99 microns is quoted for stars without proper motion,
*           or with proper motion computed fom only two plates.
*Note (2): Proper motions of 99.99 mas/yr are quoted for stars without proper
*           motion available. Proper motion errors of 99.99 mas/yr are assigned
*           to stars without proper motion, or with proper motion computed from
*           only two plates.
*Note (3): Stars having B and R values, but lacking V photometry, are assigned
*          Vmag=99.99 mag. Stars lacking standard photographic photometry are
*          assigned Bmag=99.99 mag, Vmag=99.99 mag and, if available, the R value
*          from the master plate raw photometric photometry for cross-
*          identifications (Sect. 3.3) is given as the best estimation of R
*          magnitude. Bright stars lacking photometry due to saturation are
*          assigned Bmag=Vmag=Rmag=0.00 mag.
*          For the photometric errors, see Table 4 and Fig. 2.

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

C  Declarations for 'notes.dat'	! List of 1713 stars cross-identified with
                               other catalogues

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

      integer*4     GJTGTZ_1   (nr__1) ! Identification number
      character*74  Names      (nr__1) ! Other names, separated by a comma (1)
*Note (1): The codes used are:
*         TYC: Tycho Catalogue, ESA, 1997, ESA-SP 1200, Cat. <I/239>
*         HIP: Hipparcos Catalogue, ESA, 1997, ESA-SP 1200, Cat. <I/239>
*         PPM: Positions and Proper Motions Catalogue,
*               Roeser and Bastian, 1989, Cat. <I/146> and <I/193>
*          HD: Henry Draper Catalogue, Cat. <III/135>
*          BD: Bonner Durchmusterung, Cat. <I/122>
*        GJTR: Paper I, Galadi-Enriquez et al., Cat. <J/A+A/333/471>
*        SChM: Straizhys, Chernis and Meishtas, 1992BaltA...1..125S,
*               [SCM92b] NNN in SIMBAD
*         Cuf: Cuffey, 1937AnHar.105..403C

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

C  Declarations for 'table11.dat'	! FK5 and ICRS positions and proper motions

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

C  Position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=1994.9)
      integer*4     GJTGTZ_2   (nr__2) ! Identification number
      integer*4     RAJh       (nr__2) ! (h) FK5 right ascension, ep. 1994.9, eq. J2000
      integer*4     RAJm       (nr__2) ! (min) FK5 right ascension, ep. 1994.9, eq. J2000
      real*4        RAJs       (nr__2) ! (s) FK5 right ascension, ep. 1994.9, eq. J2000
      character*1   DEJ_       (nr__2) ! Sign of FK5 declination
      integer*4     DEJd       (nr__2) ! (deg) FK5 declination, ep. 1994.9, eq. J2000
      integer*4     DEJm       (nr__2) ! (arcmin) FK5 declination, ep. 1994.9, eq. J2000
      real*4        DEJs       (nr__2) ! (arcsec) FK5 declination, ep. 1994.9, eq. J2000
      real*8        pmRAJ      (nr__2) ! (mas/yr) ?=99.99 FK5 proper motion in alpha*cos(delta)
      real*8        pmDEJ      (nr__2) ! (mas/yr) ?=99.99 FK5 proper motion in delta
      integer*4     RAh        (nr__2) ! (h) ICRS right ascension, ep. 1994.9
      integer*4     RAm        (nr__2) ! (min) ICRS right ascension, ep. 1994.9
      real*4        RAs        (nr__2) ! (s) [0,60] ICRS right ascension, ep. 1994.9
      character*1   DE_        (nr__2) ! Sign of ICRS declination
      integer*4     DEd        (nr__2) ! (deg) ICRS declination, ep. 1994.9
      integer*4     DEm        (nr__2) ! (arcmin) ICRS declination, ep. 1994.9
      real*4        DEs        (nr__2) ! (arcsec) [0,60] ICRS declination, ep. 1994.9
      real*8        pmRA       (nr__2) ! (mas/yr) ?=99.99 ICRS proper motion in alpha*cos(delta)
      real*8        pmDE       (nr__2) ! (mas/yr) ?=99.99 ICRS proper motion in delta

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

C  Loading file 'table6.dat'	! Photographic photometric and astrometric catalogue

C  Format for file interpretation

    1 format(
     +  2X,I6,1X,F8.4,1X,F8.4,1X,F7.2,1X,F7.2,1X,F6.2,1X,F6.2,1X,F6.2,
     +  1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,I2,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,51846
        read(1,'(A101)')ar__
        read(ar__,1)
     +  GJTGTZ(i__),xpos(i__),ypos(i__),pmxpos(i__),pmypos(i__),
     +  e_xpos(i__),e_ypos(i__),e_pmxpos(i__),e_pmypos(i__),Bmag(i__),
     +  Vmag(i__),Rmag(i__),Nplate(i__),delta_t(i__)
c    ..............Just test output...........
        write(6,1)
     +  GJTGTZ(i__),xpos(i__),ypos(i__),pmxpos(i__),pmypos(i__),
     +  e_xpos(i__),e_ypos(i__),e_pmxpos(i__),e_pmypos(i__),Bmag(i__),
     +  Vmag(i__),Rmag(i__),Nplate(i__),delta_t(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! List of 1713 stars cross-identified with
*                               other catalogues

C  Format for file interpretation

    2 format(I6,2X,A74)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,1713
        read(1,'(A82)')ar__1
        read(ar__1,2)GJTGTZ_1(i__),Names(i__)
c    ..............Just test output...........
        write(6,2)GJTGTZ_1(i__),Names(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table11.dat'	! FK5 and ICRS positions and proper motions

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table11.dat')
      write(6,*) '....Loading file: table11.dat'
      do i__=1,56730
        read(1,'(A91)')ar__2
        read(ar__2,3)
     +  GJTGTZ_2(i__),RAJh(i__),RAJm(i__),RAJs(i__),DEJ_(i__),
     +  DEJd(i__),DEJm(i__),DEJs(i__),pmRAJ(i__),pmDEJ(i__),RAh(i__),
     +  RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
     +  pmRA(i__),pmDE(i__)
c    ..............Just test output...........
        write(6,3)
     +  GJTGTZ_2(i__),RAJh(i__),RAJm(i__),RAJs(i__),DEJ_(i__),
     +  DEJd(i__),DEJm(i__),DEJs(i__),pmRAJ(i__),pmDEJ(i__),RAh(i__),
     +  RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
     +  pmRA(i__),pmDE(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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