Conversion of standardized ReadMe file for
file /./ftp/cats/III/46 into FORTRAN code for reading data files line by line.
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-Jun-08
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. III/46 Ap and Am Stars (Bertaud+ 1974; Bidelman+ 1973)
*================================================================================
*Catalogue of Ap and Am Stars
* Bertaud Ch., Floquet M.
* <Astron. Astrophys. Suppl., 16, 71 (1974)>
* =1974A&AS...16...71B
*The brighter stars of astrophysical interest in the southern sky.
* Bidelman W.P., MacConnell D.J.
* <Astron. J., 78, 687 (1973)>
* =1973AJ.....78..687B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'amstars.dat' ! Am Stars
integer*4 nr__
parameter (nr__=596) ! Number of records
character*18 ar__ ! Full-size record
character*1 M_P ! [MP] Peculiar or Metallic
character*8 DM ! *? Durchmusterung zone and number
integer*4 HD ! ? Henry Draper number or HD Extension number
*Note on DM:
* Field is left justified with one space between zone and number.
* Zone always includes sign, but does not include preceding zeros for
* single-digits.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'apstars.dat' ! Ap Stars
integer*4 nr__1
parameter (nr__1=1173) ! Number of records
character*18 ar__1 ! Full-size record
character*1 M_P_1 ! [MP] Peculiar or Metallic
character*8 DM_1 ! *? Durchmusterung zone and number
integer*4 HD_1 ! ? Henry Draper number or HD Extension number
*Note on DM:
* Field is left justified with one space between zone and number.
* Zone always includes sign, but does not include preceding zeros for
* single-digits.
C=============================================================================
C Loading file 'amstars.dat' ! Am Stars
C Format for file interpretation
1 format(A1,A8,3X,I6)
C Effective file loading
open(unit=1,status='old',file=
+'amstars.dat')
write(6,*) '....Loading file: amstars.dat'
do i__=1,596
read(1,'(A18)')ar__
read(ar__,1)M_P,DM,HD
if(ar__(13:18) .EQ. '') HD = iNULL__
c ..............Just test output...........
write(6,1)M_P,DM,HD
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'apstars.dat' ! Ap Stars
C Format for file interpretation
2 format(A1,A8,3X,I6)
C Effective file loading
open(unit=1,status='old',file=
+'apstars.dat')
write(6,*) '....Loading file: apstars.dat'
do i__=1,1173
read(1,'(A18)')ar__1
read(ar__1,2)M_P_1,DM_1,HD_1
if(ar__1(13:18) .EQ. '') HD_1 = iNULL__
c ..............Just test output...........
write(6,2)M_P_1,DM_1,HD_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end