FORTRAN Generation
(/./ftp/cats/J/A_A/322/460)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/322/460 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-Sep-06
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/322/460       NGC 3680 photometry and radial velocities (Nordstrom+ 1997)
*================================================================================
*Critical tests of stellar evolution in open clusters.
*II. Membership, duplicity, and stellar and dynamical evolution in NGC 3680
*      Nordstrom B., Andersen J., Andersen M.I.
*     <Astron. Astrophys. 322, 460 (1997)>
*     =1997A&A...322..460N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Summary data for 120 stars in the field of NGC 3680

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

      character*5   Id         (nr__) ! Identification number (see paper)
      real*4        Vmag       (nr__) ! (mag) ? V magnitude
      real*4        b_y        (nr__) ! (mag) ? b-y colour index
      character*1   n_b_y      (nr__) ! [M] M for missing entry
      real*4        B_V        (nr__) ! (mag) ? B-V colour index
      character*1   n_B_V      (nr__) ! [M] M for missing entry
      real*4        RV         (nr__) ! (km/s) ? Mean radial velocity
      character*1   n_RV       (nr__) ! [M] M for missing entry
      real*4        e_RV       (nr__) ! (km/s) ? Mean error of mean radial velocity
      character*1   n_e_RV     (nr__) ! [M] M for missing entry
      real*4        pRV        (nr__) ! ? Radial velocity membership probability (%)
      character*1   n_pRV      (nr__) ! [M] M for missing entry
      integer*4     pPM        (nr__) ! ? Proper motion membership probability (%)
      character*1   n_pPM      (nr__) ! [M] M for missing entry
      character*4   Note1      (nr__) ! Remarks on binary stars
      character*3   Note2      (nr__) ! Remarks on final membership assignment

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

C  Loading file 'table1.dat'	! Summary data for 120 stars in the field of NGC 3680

C  Format for file interpretation

    1 format(
     +  A5,1X,F6.3,1X,F5.3,A1,2X,F5.3,A1,F6.2,A1,1X,F5.2,A1,1X,F4.1,
     +  A1,1X,I2,A1,1X,A4,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,120
        read(1,'(A59)')ar__
        read(ar__,1)
     +  Id(i__),Vmag(i__),b_y(i__),n_b_y(i__),B_V(i__),n_B_V(i__),
     +  RV(i__),n_RV(i__),e_RV(i__),n_e_RV(i__),pRV(i__),n_pRV(i__),
     +  pPM(i__),n_pPM(i__),Note1(i__),Note2(i__)
        if(ar__(7:12) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(14:18) .EQ. '') b_y(i__) = rNULL__
        if(ar__(22:26) .EQ. '') B_V(i__) = rNULL__
        if(ar__(28:33) .EQ. '') RV(i__) = rNULL__
        if(ar__(36:40) .EQ. '') e_RV(i__) = rNULL__
        if(ar__(43:46) .EQ. '') pRV(i__) = rNULL__
        if(ar__(49:50) .EQ. '') pPM(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Id(i__),Vmag(i__),b_y(i__),n_b_y(i__),B_V(i__),n_B_V(i__),
     +  RV(i__),n_RV(i__),e_RV(i__),n_e_RV(i__),pRV(i__),n_pRV(i__),
     +  pPM(i__),n_pPM(i__),Note1(i__),Note2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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