FORTRAN Generation
(/./ftp/cats/J/PASJ/63/1117)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASJ/63/1117 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 2018-Apr-26
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/PASJ/63/1117    Asteroid catalog using AKARI (AcuA). V1.       (Usui+, 2011)
*================================================================================
*The Asteroid catalog using AKARI: AKARI/IRC Mid-Infrared Asteroid Survey
*    Usui F., Kuroda D., Mueller T.G., Hasegawa S., Ishiguro M., Ootsubo T.,
*    Ishihara D., Kataza H., Takita S., Oyabu S., Ueno M., Matsuhara H.,
*    Onaka T.
*   <Publ. Astron. Soc. Jap. 63, 1117 (2011)>
*   =2011PASJ...63.1117U
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'acua_v1.dat'	! Asteroid catalog using AKARI (version 1.0)

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

      integer*4     Num        (nr__) ! ? Asteroid's number
      character*18  Name       (nr__) ! Asteroid's name
      character*10  ProvDes    (nr__) ! Asteroid's provisional designation (1)
      real*4        HMAG       (nr__) ! (mag) Absolute magnitude (2)
      real*4        Gpar       (nr__) ! Slope magnitude parameter (2)
      integer*4     NID        (nr__) ! Number of detections by AKARI (3)
      real*8        Diam       (nr__) ! (km) Asteroid mean diameter
      real*4        e_Diam     (nr__) ! (km) Uncertainty in diameter (4)
      real*4        Alb        (nr__) ! Asteroid mean geometric albedo
      real*4        e_Alb      (nr__) ! Uncertainty in albedo (4)
*Note (1): Provisional designation, which follow the formal assignment overseen
*     by the IAU Minor Planet Center.
*Note (2): HMAG and GPAR are the absolute magnitude and slope parameter taken
*     from the Asteroid Orbital Elements Database of the Lowell observatory.
*Note (3): NID gives the number of detections at S9W (9{mu}m band) and
*     L18W (18{mu}m band) in total.
*Note (4): uncertainties estimated from the thermal model calculations
*     (STM; Lebofsky et al., 1986Icar...68..239L).

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

C  Loading file 'acua_v1.dat'	! Asteroid catalog using AKARI (version 1.0)

C  Format for file interpretation

    1 format(
     +  I6,1X,A18,1X,A10,1X,F5.2,1X,F5.2,1X,I2,1X,F7.2,1X,F5.2,1X,
     +  F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'acua_v1.dat')
      write(6,*) '....Loading file: acua_v1.dat'
      do i__=1,5120
        read(1,'(A77)')ar__
        read(ar__,1)
     +  Num(i__),Name(i__),ProvDes(i__),HMAG(i__),Gpar(i__),NID(i__),
     +  Diam(i__),e_Diam(i__),Alb(i__),e_Alb(i__)
        if(ar__(1:6) .EQ. '') Num(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Num(i__),Name(i__),ProvDes(i__),HMAG(i__),Gpar(i__),NID(i__),
     +  Diam(i__),e_Diam(i__),Alb(i__),e_Alb(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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