Conversion of standardized ReadMe file for
file /./ftp/cats/J/AZh/73/762 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-Apr-18 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/AZh/73/762 Energy distribution in giants and supergiants. (Tereshchenko, 1996) *================================================================================ *The energy distribution in the visible spectrum for the 27 giants and *supergiants of the M spectral type * Tereshchenko V.M. * <Astron. Zh. 73, 762 (1996)> * =1996AZh....73..762T * =1996ARep...40..693T C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Energy distribution integer*4 nr__ parameter (nr__=88) ! Number of records character*139 ar__ ! Full-size record integer*4 lambda ! (0.1nm) Spectral line wavelength integer*4 HD36389 ! (10-8W/m2/cm) Energy distribution for HD 36389 integer*4 HD42543 ! (10-8W/m2/cm) Energy distribution for HD 42543 integer*4 HD44537 ! (10-8W/m2/cm) Energy distribution for HD 44537 integer*4 HD78712 ! (10-8W/m2/cm) Energy distribution for HD 78712 integer*4 HD206936 ! (10-8W/m2/cm) Energy distribution for HD 206936 integer*4 HD1760 ! (10-8W/m2/cm) Energy distribution for HD 1760 integer*4 HD19058 ! (10-8W/m2/cm) Energy distribution for HD 19058 integer*4 HD20797 ! (10-8W/m2/cm) Energy distribution for HD 20797 integer*4 HD23475 ! (10-8W/m2/cm) Energy distribution for HD 23475 integer*4 HD197812 ! (10-8W/m2/cm) Energy distribution for HD 197812 integer*4 HD224062 ! (10-8W/m2/cm) Energy distribution for HD 224062 integer*4 HD18191 ! (10-8W/m2/cm) Energy distribution for HD 18191 integer*4 HD18345 ! (10-8W/m2/cm) Energy distribution for HD 18345 integer*4 HD55383 ! (10-8W/m2/cm) Energy distribution for HD 55383 integer*4 HD55966 ! (10-8W/m2/cm) Energy distribution for HD 55966 integer*4 HD56031 ! (10-8W/m2/cm) Energy distribution for HD 56031 integer*4 HD69243 ! (10-8W/m2/cm) Energy distribution for HD 69243 integer*4 HD77443 ! (10-8W/m2/cm) Energy distribution for HD 77443 integer*4 HD80390 ! (10-8W/m2/cm) Energy distribution for HD 80390 integer*4 HD84748 ! (10-8W/m2/cm) Energy distribution for HD 84748 integer*4 HD123657 ! (10-8W/m2/cm) Energy distribution for HD 123657 integer*4 HD132813 ! (10-8W/m2/cm) Energy distribution for HD 132813 integer*4 HD184786 ! (10-8W/m2/cm) Energy distribution for HD 184786 integer*4 HD196610 ! (10-8W/m2/cm) Energy distribution for HD 196610 integer*4 HD202012 ! (10-8W/m2/cm) Energy distribution for HD 202012 integer*4 HD222800 ! (10-8W/m2/cm) Energy distribution for HD 222800 integer*4 HD224490 ! (10-8W/m2/cm) Energy distribution for HD 224490 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Information about the stars integer*4 nr__1 parameter (nr__1=27) ! Number of records character*84 ar__1 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension J2000 real*8 DEdeg ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*2 Seq ! Running number integer*4 HR ! ? Bright Star (Cat. <V/50>) number integer*4 HD ! Henry Draper (Cat. <III/135>) number character*9 Names ! Other Names real*4 Vmag ! (mag) V magnitude real*4 B_V ! (mag) ? B-V color index real*4 U_B ! (mag) ? U-B color index character*10 Sptype ! Spectral type character*3 VarType ! ? Type of variability integer*4 RAh ! (h) Right Ascension J2000 (hours) (1) integer*4 RAm ! (min) Right Ascension J2000 (minutes) (1) real*4 RAs ! (s) Right Ascension J2000 (seconds) (1) character*1 DE_ ! Declination J2000 (sign) (1) integer*4 DEd ! (deg) Declination J2000 (degrees) (1) integer*4 DEm ! (arcmin) Declination J2000 (minutes) (1) integer*4 DEs ! (arcsec) Declination J2000 (seconds) (1) *Note (1): the J2000 position was added at CDS, using the SIMBAD data-base c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! The observations and the accuracy of the results integer*4 nr__2 parameter (nr__2=27) ! Number of records character*90 ar__2 ! Full-size record integer*4 HD_1 ! Henry Draper (Cat. <III/135>) number character*31 Dates ! Observation dates character*17 Std ! Standard star names integer*4 Nobs ! Number of observations real*4 dM ! *The difference of air masses integer*4 dt ! (min) *The difference of time real*4 sigma1 ! (%) ? rms in the range 3200-4000{AA} real*4 sigma2 ! (%) ? rms in the range 4000-5000{AA} real*4 sigma3 ! (%) ? rms in the range 5000-6000{AA} real*4 sigma4 ! (%) ? rms in the range 6000-7600{AA} *Note on dM: * dM is the difference of air masses of the program star and the standard star. *Note on dt: * dt is the difference of time of the observations of the program star and the * standard star C============================================================================= C Loading file 'table1.dat' ! Energy distribution C Format for file interpretation 1 format( + I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X, + I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X, + I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4,1X,I4) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,88 read(1,'(A139)')ar__ read(ar__,1) + lambda,HD36389,HD42543,HD44537,HD78712,HD206936,HD1760, + HD19058,HD20797,HD23475,HD197812,HD224062,HD18191,HD18345, + HD55383,HD55966,HD56031,HD69243,HD77443,HD80390,HD84748, + HD123657,HD132813,HD184786,HD196610,HD202012,HD222800,HD224490 c ..............Just test output........... write(6,1) + lambda,HD36389,HD42543,HD44537,HD78712,HD206936,HD1760, + HD19058,HD20797,HD23475,HD197812,HD224062,HD18191,HD18345, + HD55383,HD55966,HD56031,HD69243,HD77443,HD80390,HD84748, + HD123657,HD132813,HD184786,HD196610,HD202012,HD222800,HD224490 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Information about the stars C Format for file interpretation 2 format( + A2,3X,I4,1X,I6,2X,A9,2X,F4.2,2X,F4.2,2X,F5.2,2X,A10,2X,A3,1X, + I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,27 read(1,'(A84)')ar__1 read(ar__1,2) + Seq,HR,HD,Names,Vmag,B_V,U_B,Sptype,VarType,RAh,RAm,RAs,DE_, + DEd,DEm,DEs if(ar__1(6:9) .EQ. '') HR = iNULL__ if(ar__1(36:39) .EQ. '') B_V = rNULL__ if(ar__1(42:46) .EQ. '') U_B = 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(DEs .GE. 0) DEdeg=DEdeg+DEs/3600. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,2) + Seq,HR,HD,Names,Vmag,B_V,U_B,Sptype,VarType,RAh,RAm,RAs,DE_, + DEd,DEm,DEs write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! The observations and the accuracy of the results C Format for file interpretation 3 format( + I6,1X,A31,1X,A17,1X,I1,2X,F4.2,2X,I2,2X,F4.1,2X,F4.1,2X,F3.1, + 2X,F3.1) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,27 read(1,'(A90)')ar__2 read(ar__2,3) + HD_1,Dates,Std,Nobs,dM,dt,sigma1,sigma2,sigma3,sigma4 if(ar__2(71:74) .EQ. '') sigma1 = rNULL__ if(ar__2(77:80) .EQ. '') sigma2 = rNULL__ if(ar__2(83:85) .EQ. '') sigma3 = rNULL__ if(ar__2(88:90) .EQ. '') sigma4 = rNULL__ c ..............Just test output........... write(6,3) + HD_1,Dates,Std,Nobs,dM,dt,sigma1,sigma2,sigma3,sigma4 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end