Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJS/161/118 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-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/ApJS/161/118 byH{alpha} photometry in open clusters (McSwain+, 2005) *================================================================================ *The evolutionary status of Be stars: results from a photometric study of *southern open clusters. * McSwain M.V., Gies D.R. * <Astrophys. J. Suppl. Ser., 161, 118-146 (2005)> * =2005ApJS..161..118M C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Photometry of selected stars in open clusters integer*4 nr__ parameter (nr__=17541) ! Number of records character*114 ar__ ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension J2000.0 real*8 DEdeg ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) character*13 Cluster ! Cluster name integer*4 MG ! Star identifying number (1) integer*4 RAh ! (h) Hour of Right ascension (J2000.0) integer*4 RAm ! (min) Minute of Right ascension (J2000.0) real*4 RAs ! (s) Second of Right ascension (J2000.0) character*1 DE_ ! Sign of the Declination (J2000.0) integer*4 DEd ! (deg) Degree of Declination (J2000.0) integer*4 DEm ! (arcmin) Arcminute of Declination (J2000.0) real*4 DEs ! (arcsec) Arcsecond of Declination (J2000.0) real*4 ymag ! (mag) Stromgren y magnitude real*4 e_ymag ! (mag) 1{sigma} error in ymag real*4 b_y ! (mag) Stromgren b-y color index real*4 e_b_y ! (mag) 1{sigma} error in b-y real*4 y_Ha ! (mag) y-H{alpha} color index real*4 e_y_Ha ! (mag) 1{sigma} error in y-Ha character*3 Code ! Code for type (2) integer*4 Webda ! ? The WEBDA identification number character*20 OName ! Other identification *Note (1): Star identified as Cl* "Cluster" MG "MG", * Cl* VDBH 217 MG NNN for "vdB-Hagen 217" cluster. *Note (2): Code for type, defined as follows: * B = B-type star; * Be = definite Be star; * Be? = possible Be star; * O = other stars in the field; * F = probable foreground star. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Summary of open clusters integer*4 nr__1 parameter (nr__1=55) ! Number of records character*70 ar__1 ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension J2000.0 real*8 DEdeg_1 ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) character*13 Cluster_1 ! Cluster name character*1 q_Cluster ! Reliability of cluster parameters (1) integer*4 RAh_1 ! (h) Hour of Right Ascension (J2000.0) integer*4 RAm_1 ! (min) Minute of Right Ascension (J2000.0) integer*4 RAs_1 ! (s) Second of Right Ascension (J2000.0) character*1 DE__1 ! Sign of the Declination (J2000.0) integer*4 DEd_1 ! (deg) Degree of Declination (J2000.0) integer*4 DEm_1 ! (arcmin) Arcminute of Declination (J2000.0) integer*4 DEs_1 ! (arcsec) Arcsecond of Declination (J2000.0) real*4 E_b_y ! (mag) Color excess real*4 V0_MV ! (mag) Distance modulus real*4 logAge ! ([yr]) Log of age integer*4 Be ! Number of definite Be stars integer*4 Be_ ! Number of possible Be stars character*1 l_B_Be ! [>] Lower limit flag on N(B*) integer*4 B_Be ! Number of B and Be stars identified character*10 Ref ! References, detailed in refs.dat *Note (1): Flag on Cluster, defined as follows: * a = Cluster parameters unreliable. * b = May not be a true cluster. * c = May contain PMS Herbig Be stars. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__2 parameter (nr__2=34) ! Number of records character*98 ar__2 ! Full-size record integer*4 Ref_1 ! Reference number character*19 Bibcode ! Bibcode character*19 Aut ! Author's name character*55 Com ! Comment c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Distribution of open clusters integer*4 nr__3 parameter (nr__3=48) ! Number of records character*37 ar__3 ! Full-size record C Position composed of: GLON GLAT character*13 Cluster_2 ! Cluster name real*4 GLON ! (deg) Galactic longitude real*4 GLAT ! (deg) Galactic latitude real*4 Dist ! (kpc) Distance to the Sun real*4 DistGC ! (kpc) Distance to the Galactic Center C============================================================================= C Loading file 'table1.dat' ! Photometry of selected stars in open clusters C Format for file interpretation 1 format( + A13,1X,I4,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3, + 1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,A3,1X,I7,1X,A20) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,17541 read(1,'(A114)')ar__ read(ar__,1) + Cluster,MG,RAh,RAm,RAs,DE_,DEd,DEm,DEs,ymag,e_ymag,b_y,e_b_y, + y_Ha,e_y_Ha,Code,Webda,OName if(ar__(87:93) .EQ. '') Webda = iNULL__ 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,1) + Cluster,MG,RAh,RAm,RAs,DE_,DEd,DEm,DEs,ymag,e_ymag,b_y,e_b_y, + y_Ha,e_y_Ha,Code,Webda,OName write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Summary of open clusters C Format for file interpretation 2 format( + A13,A1,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F4.2,1X,F5.2, + 1X,F4.2,1X,I1,1X,I2,1X,A1,I3,1X,A10) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,55 read(1,'(A70)')ar__1 read(ar__1,2) + Cluster_1,q_Cluster,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + E_b_y,V0_MV,logAge,Be,Be_,l_B_Be,B_Be,Ref RAdeg_1 = rNULL__ DEdeg_1 = rNULL__ c Derive coordinates RAdeg_1 and DEdeg_1 from input data c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown) if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15. if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4. if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240. if(DEd_1 .GE. 0) DEdeg_1=DEd_1 if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60. if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600. if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1 c ..............Just test output........... write(6,2) + Cluster_1,q_Cluster,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + E_b_y,V0_MV,logAge,Be,Be_,l_B_Be,B_Be,Ref write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 3 format(I2,1X,A19,1X,A19,1X,A55) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,34 read(1,'(A98)')ar__2 read(ar__2,3)Ref_1,Bibcode,Aut,Com c ..............Just test output........... write(6,3)Ref_1,Bibcode,Aut,Com c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Distribution of open clusters C Format for file interpretation 4 format(A13,1X,F6.2,1X,F5.2,1X,F4.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,48 read(1,'(A37)')ar__3 read(ar__3,4)Cluster_2,GLON,GLAT,Dist,DistGC c ..............Just test output........... write(6,4)Cluster_2,GLON,GLAT,Dist,DistGC c .......End.of.Just test output........... end do close(1) C============================================================================= stop end