Conversion of standardized ReadMe file for
file /./ftp/cats/VII/220A 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 2024-Mar-28 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. VII/220A Barnard's Catalogue of 349 Dark Objects in the Sky (Barnard, 1927) *================================================================================ *Barnard's Catalogue of 349 Dark Objects in the Sky * Barnard E.E. * <A Photographic Atlas of Selected Regions of the Milky Way, * by Barnard E. E., ed. Frost E.B. and Calvert M.R., * Carnegie Institution of Washington (1927)> * =1927cdos.book.....B * =1927Barn..C......0B C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'barnard.dat' ! Positions and Diameters integer*4 nr__ parameter (nr__=349) ! Number of records character*44 ar__ ! Full-size record C 1875 position composed of: RAh RAm RAs DE- DEd DEm real*8 RAdeg ! (deg) Right Ascension 1875 real*8 DEdeg ! (deg) Declination 1875 C ---------------------------------- ! (position vector(s) in degrees) character*4 Barn ! *[ 0-9a]! Barnard number integer*4 RAh ! (h) Right Ascension 1875 (hours) integer*4 RAm ! (min) Right Ascension 1875 (minutes) integer*4 RAs ! (s) *? Right Ascension 1875 (seconds) character*1 DE_ ! Declination 1875 (sign) integer*4 DEd ! (deg) Declination 1875 (degrees) integer*4 DEm ! (arcmin) Declination 1875 (minutes) integer*4 RA2000h ! (h) Right Ascension 2000 (hours) integer*4 RA2000m ! (min) Right Ascension 2000 (minutes) integer*4 RA2000s ! (s) ? Right Ascension 2000 (seconds) character*1 DE2000_ ! Declination 2000 (sign) integer*4 DE2000d ! (deg) Declination 2000 (degrees) integer*4 DE2000m ! (arcmin) Declination 2000 (minutes) real*4 Diam ! (arcmin) ? Diameter of the nebula *Note on Barn: * Catalog acronym in IAU standard is "Barnard NNNa". *Note on RAs: * There are several data with space in this column in the * original published catalogue. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'notes.dat' ! Notes integer*4 nr__1 parameter (nr__1=603) ! Number of records character*80 ar__1 ! Full-size record character*4 Barn_1 ! Barnard number (repeated for multi-line note) character*74 Text ! Text of note C============================================================================= C Loading file 'barnard.dat' ! Positions and Diameters C Format for file interpretation 1 format( + 1X,A4,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,2X,I2,1X,I2,1X,I2,2X,A1, + I2,1X,I2,1X,F5.1) C Effective file loading open(unit=1,status='old',file= +'barnard.dat') write(6,*) '....Loading file: barnard.dat' do i__=1,349 read(1,'(A44)')ar__ read(ar__,1) + Barn,RAh,RAm,RAs,DE_,DEd,DEm,RA2000h,RA2000m,RA2000s,DE2000_, + DE2000d,DE2000m,Diam if(ar__(12:13) .EQ. '') RAs = iNULL__ if(ar__(29:30) .EQ. '') RA2000s = iNULL__ if(ar__(40:44) .EQ. '') Diam = rNULL__ RAdeg = rNULL__ DEdeg = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh .GT. -180) RAdeg=RAh*15. if(RAm .GT. -180) RAdeg=RAdeg+RAm/4. if(RAs .GT. -180) RAdeg=RAdeg+RAs/240. if(DEd .GE. 0) DEdeg=DEd if(DEm .GE. 0) DEdeg=DEdeg+DEm/60. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,1) + Barn,RAh,RAm,RAs,DE_,DEd,DEm,RA2000h,RA2000m,RA2000s,DE2000_, + DE2000d,DE2000m,Diam write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'notes.dat' ! Notes C Format for file interpretation 2 format(1X,A4,1X,A74) C Effective file loading open(unit=1,status='old',file= +'notes.dat') write(6,*) '....Loading file: notes.dat' do i__=1,603 read(1,'(A80)')ar__1 read(ar__1,2)Barn_1,Text c ..............Just test output........... write(6,2)Barn_1,Text c .......End.of.Just test output........... end do close(1) C============================================================================= stop end