FORTRAN Generation
(/./ftp/cats/J/AJ/137/3245)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/137/3245 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-16
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/137/3245       STARMIND MK standard's database          (Manteiga+, 2009)
*================================================================================
*Starmind: a fuzzy logic knowledge-based system for the automated classification
*of stars in the MK system.
*    Manteiga M., Carricajo I., Rodriguez A., Dafonte C., Arcay B.
*   <Astron. J., 137, 3245-3253 (2009)>
*   =2009AJ....137.3245M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! STARMIND MK standard's database

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

      character*9   Name       (nr__) ! Star name
      character*4   SpType     (nr__) ! MK spectral type
      character*14  r_SpType   (nr__) ! Reference for SpType (1)
      integer*4     Teff       (nr__) ! (K) ? Effective temperature
      real*4        log_g      (nr__) ! ([cm/s2]) ? Log of surface gravity
      real*4        v_Fe_H_    (nr__) ! ([Sun]) ? Metallicity
*Note (1): References for the MK classification of stars as follows:
*   MK = Morgan & Keenan (1973ARA&A..11...29M)
*   Gray-a = Gray & Garrison (1987ApJS...65..581G)
*   Gray-b = Gray & Garrison (1989ApJS...69..301G)
*   Gray-c = Gray & Garrison (1989ApJS...70..623G)
*   Perkins = Keenan & McNeil (1989ApJS...71..245K, Cat. III/150)
*   Garcia = Garcia (1989BICDS..36...27G)

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

C  Loading file 'table1.dat'	! STARMIND MK standard's database

C  Format for file interpretation

    1 format(A9,1X,A4,1X,A14,1X,I4,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,361
        read(1,'(A45)')ar__
        read(ar__,1)
     +  Name(i__),SpType(i__),r_SpType(i__),Teff(i__),log_g(i__),
     +  v_Fe_H_(i__)
        if(ar__(31:34) .EQ. '') Teff(i__) = iNULL__
        if(ar__(36:39) .EQ. '') log_g(i__) = rNULL__
        if(ar__(41:45) .EQ. '') v_Fe_H_(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),SpType(i__),r_SpType(i__),Teff(i__),log_g(i__),
     +  v_Fe_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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