Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/407/631 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-20 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/407/631 Catalogue of stellar effective magnetic fields (Bychkov+, 2003) *================================================================================ *Catalogue of averaged stellar effective magnetic fields. *I. Chemically peculiar A and B type stars. * Bychkov V.D., Bychkova L.V., Madej J. * <Astron. Astrophys. 407, 631 (2003)> * =2003A&A...407..631B C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! The catalogue integer*4 nr__ parameter (nr__=790) ! Number of records character*213 ar__ ! Full-size record character*10 HD (nr__) ! Name of a star character*9 SpType (nr__) ! MK Spectral type integer*4 o__Be_ (nr__) ! Number of B_e_ measurements real*8 v_Be_ (nr__) ! (10-4T) ? Averaged quadratic field (gauss) real*4 e__Be_ (nr__) ! (10-4T) ? rms standard error of <B_e> (gauss) real*8 chi2 (nr__) ! ? chi^2 for a single degree of freedom character*3 Method (nr__) ! Method of B_e_ determination (1) character*104 Refs (nr__) ! Up to 31 references, as comma-separated numbers * detailed in file "refs.dat" character*29 Notes (nr__) ! Notes and comments *Note (1): Methods: * Met: B_e_ measured in metallic lines, * Hl: B_e_ measured in hydrogen Balmer line wings, * All: B_e_ measurements of both types. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__1 parameter (nr__1=333) ! Number of records character*167 ar__1 ! Full-size record integer*4 Ref (nr__1) ! Reference number character*19 BibCode (nr__1) ! BibCode character*24 Aut (nr__1) ! Author's name character*118 Com (nr__1) ! Comments C============================================================================= C Loading file 'tablea1.dat' ! The catalogue C Format for file interpretation 1 format( + 1X,A10,2X,A9,1X,I3,2X,F7.1,2X,F6.1,2X,F7.2,3X,A3,3X,A104,18X, + A29) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,790 read(1,'(A213)')ar__ read(ar__,1) + HD(i__),SpType(i__),o__Be_(i__),v_Be_(i__),e__Be_(i__), + chi2(i__),Method(i__),Refs(i__),Notes(i__) if(ar__(29:35) .EQ. '') v_Be_(i__) = rNULL__ if(ar__(38:43) .EQ. '') e__Be_(i__) = rNULL__ if(ar__(46:52) .EQ. '') chi2(i__) = rNULL__ c ..............Just test output........... write(6,1) + HD(i__),SpType(i__),o__Be_(i__),v_Be_(i__),e__Be_(i__), + chi2(i__),Method(i__),Refs(i__),Notes(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 2 format(I3,1X,A19,1X,A24,1X,A118) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,333 read(1,'(A167)')ar__1 read(ar__1,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__) c ..............Just test output........... write(6,2)Ref(i__),BibCode(i__),Aut(i__),Com(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end