Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/607/A86 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/A+A/607/A86 NGC 6334 and NGC 6357 OB stars spectra (Russeil+, 2017) *================================================================================ *NGC 6334 and NGC 6357: Insights from spectroscopy of their OB star populations. * Russeil D., Adami C., Bouret J.C., Herve A., Parker Q.A., Zavagno A., * Motte F. * <Astron. Astrophys. 607, A86 (2017)> * =2017A&A...607A..86R (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Properties of the 109 O-B3 stars integer*4 nr__ parameter (nr__=109) ! Number of records character*123 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) integer*4 Seq ! Star identification number character*1 XFlag ! [*] Asterisk if X-Ray counterpart (1) integer*4 RAh ! (h) Right ascension (J2000.0) integer*4 RAm ! (min) Right ascension (J2000.0) real*4 RAs ! (s) Right ascension (J2000.0) character*1 DE_ ! Declination sign (J2000.0) integer*4 DEd ! (deg) Declination (J2000.0) integer*4 DEm ! (arcmin) Declination (J2000.0) real*4 DEs ! (arcsec) Declination (J2000.0) character*8 SpType ! Spectral type (2) real*4 Vmag ! (mag) Band V magnitude (3) real*4 e_Vmag ! (mag) Band V magnitude uncertainty real*4 Bmag ! (mag) Band B magnitude (3) real*4 e_Bmag ! (mag) Band B magnitude uncertainty real*4 Umag ! (mag) Band U magnitude (3) real*4 e_Umag ! (mag) Band U magnitude uncertainty real*4 AV ! (mag) Extinction real*4 e_AV ! (mag) Extinction uncertainty real*4 d ! (kpc) Distance real*4 e_d ! (kpc) Distance uncertainty real*4 Mass ! (Msun) Evaluated stellar Mass real*4 logAge ! ([yr]) Evaluated stellar age character*16 v2MASS ! 2MASS designation *Note (1): Stars marked with a "*" indicate they have an X-Ray counterpart. *Note (2): Stars with no luminosity class are classified from the red part of * their spectrum (we assume they are dwarf stars). *Note (3): The UBV photometry is from Russeil et al. (2012, Cat. J/A+A/538/A142). c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Additional information for the star sample integer*4 nr__1 parameter (nr__1=109) ! Number of records character*93 ar__1 ! Full-size record integer*4 Seq_1 ! Star identification number integer*8 GAIA ! ? GAIA designation integer*4 fl_GAIA ! [0/1]? GAIA duplicate flag real*4 Gmag ! (mag) ? GAIA mean g-band magnitude character*16 v2MASS_1 ! 2MASS designation real*4 fl_prox ! (arcsec) ? 2MASS prox. flag character*14 Region ! Region name character*23 Ident ! Other stellar name c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'list.dat' ! Spectra (3800-5000{AA}) of the O-B3 stars integer*4 nr__2 parameter (nr__2=99) ! Number of records character*41 ar__2 ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 Seq_2 ! Star identification number real*8 RAdeg_1 ! (deg) Right ascension (J2000) real*8 DEdeg_1 ! (deg) Declination (J2000) character*21 FileName ! Name of the FITS file in subdirectory sp C============================================================================= C Loading file 'table2.dat' ! Properties of the 109 O-B3 stars C Format for file interpretation 1 format( + I3,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,A8,1X, + F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.2,1X,F4.2, + 1X,F5.2,1X,F4.2,1X,F4.1,1X,F3.1,1X,A16) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,109 read(1,'(A123)')ar__ read(ar__,1) + Seq,XFlag,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpType,Vmag,e_Vmag,Bmag, + e_Bmag,Umag,e_Umag,AV,e_AV,d,e_d,Mass,logAge,v2MASS 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) + Seq,XFlag,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpType,Vmag,e_Vmag,Bmag, + e_Bmag,Umag,e_Umag,AV,e_AV,d,e_d,Mass,logAge,v2MASS write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea1.dat' ! Additional information for the star sample C Format for file interpretation 2 format(I3,1X,I19,1X,I1,1X,F6.3,1X,A16,1X,F4.1,1X,A14,1X,A23) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,109 read(1,'(A93)')ar__1 read(ar__1,2) + Seq_1,GAIA,fl_GAIA,Gmag,v2MASS_1,fl_prox,Region,Ident if(ar__1(5:23) .EQ. '') GAIA = iNULL__ if(ar__1(25:25) .EQ. '') fl_GAIA = iNULL__ if(ar__1(27:32) .EQ. '') Gmag = rNULL__ if(ar__1(51:54) .EQ. '') fl_prox = rNULL__ c ..............Just test output........... write(6,2) + Seq_1,GAIA,fl_GAIA,Gmag,v2MASS_1,fl_prox,Region,Ident c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'list.dat' ! Spectra (3800-5000{AA}) of the O-B3 stars C Format for file interpretation 3 format(I3,1X,F7.3,1X,F7.3,1X,A21) C Effective file loading open(unit=1,status='old',file= +'list.dat') write(6,*) '....Loading file: list.dat' do i__=1,99 read(1,'(A41)')ar__2 read(ar__2,3)Seq_2,RAdeg_1,DEdeg_1,FileName c ..............Just test output........... write(6,3)Seq_2,RAdeg_1,DEdeg_1,FileName c .......End.of.Just test output........... end do close(1) C============================================================================= stop end