FORTRAN Generation
(/./ftp/cats/J/AJ/154/76)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/154/76 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/154/76          Masses of 30 large subject asteroids          (Baer+, 2017)
*================================================================================
*Simultaneous mass determination for gravitationally coupled asteroids.
*    Baer J., Chesley S.R.
*   <Astron. J., 154, 76-76 (2017)>
*   =2017AJ....154...76B    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'ast.dat'	! Large subject asteroids

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

      integer*4     Ast        (nr__) ! [1/804] Subject asteriod number
      character*10  Name       (nr__) ! Subject asteriod name

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

C  Declarations for 'table1.dat'	! Masses measured using the traditional method

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

      integer*4     Ast_1      (nr__1) ! [1/804] Subject asteriod number
      character*7   Test       (nr__1) ! Test asteriod identifier (Average=weighted
*                                   average mass)
      real*4        Mass       (nr__1) ! (Msun) [5.6e-13/4.78e-10] Measured mass
      real*4        e_Mass     (nr__1) ! (Msun) [4.58e-14/7.77e-11] Standard deviation in Mass
      real*4        rms        (nr__1) ! (arcsec) [0.292/0.681]? RMS observational error
      real*4        Signi      (nr__1) ! [2.1/707.9] Significance

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

C  Loading file 'ast.dat'	! Large subject asteroids

C  Format for file interpretation

    1 format(I3,1X,A10)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ast.dat')
      write(6,*) '....Loading file: ast.dat'
      do i__=1,30
        read(1,'(A14)')ar__
        read(ar__,1)Ast(i__),Name(i__)
c    ..............Just test output...........
        write(6,1)Ast(i__),Name(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1.dat'	! Masses measured using the traditional method

C  Format for file interpretation

    2 format(I3,1X,A7,1X,E9.3,1X,E8.2,1X,F5.3,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,251
        read(1,'(A42)')ar__1
        read(ar__1,2)
     +  Ast_1(i__),Test(i__),Mass(i__),e_Mass(i__),rms(i__),Signi(i__)
        if(ar__1(32:36) .EQ. '') rms(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Ast_1(i__),Test(i__),Mass(i__),e_Mass(i__),rms(i__),Signi(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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