Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/540/A58 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-19 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/540/A58 CT1T2 photometry of 26 LMC cluster (Piatti, 2012) *================================================================================ *Washington photometry of 26 moderately young small angular size clusters in the *Large Magellanic Cloud. * Piatti A.E. * <Astron. Astrophys. 540, A58 (2012)> * =2012A&A...540A..58P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Star clusters in the LMC integer*4 nr__ parameter (nr__=26) ! Number of records character*97 ar__ ! 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*10 Cluster ! Star Cluster integer*4 RAh ! (h) Right ascension (J2000) integer*4 RAm ! (min) Right ascension (J2000) integer*4 RAs ! (s) Right ascension (J2000) character*1 DE_ ! Declination sign (J2000) integer*4 DEd ! (deg) Declination (J2000) integer*4 DEm ! (arcmin) Declination (J2000) integer*4 DEs ! (arcsec) Declination (J2000) real*4 GLON ! (deg) Galactic longitude real*4 GLAT ! (deg) Galactic latitude character*10 Date ! ("YYYY/MM/DD") Observation date integer*4 ExpC ! (s) Exposure time in C band integer*4 ExpR ! (s) Exposure time in R band integer*4 ExpI ! (s) Exposure time in I band real*4 Air_C ! Airmass in C band real*4 Air_R ! Airmass in R band real*4 Air_I ! Airmass in I band real*4 See_C ! (arcsec) Seeing in C band real*4 See_R ! (arcsec) Seeing in R band real*4 See_I ! (arcsec) Seeing in I band c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! CT1T2 data of stars in the field of NGC 2093 integer*4 nr__1 parameter (nr__1=90396) ! Number of records character*79 ar__1 ! Full-size record integer*4 Seq ! [102814/440803] Sequential number real*8 Xpos ! (pix) X position (scale and orientation unspecified) real*8 Ypos ! (pix) Y position (scale and orientation unspecified) real*4 T1mag ! (mag) Washington T1 magnitude real*4 e_T1mag ! (mag) rms uncertainty on T1mag real*4 C_T1 ! (mag) Washington C-T1 colour index real*4 e_C_T1 ! (mag) rms uncertainty on C-T1 real*4 T1_T2 ! (mag) Washington T1-T2 colour index real*4 e_T1_T2 ! (mag) rms uncertainty on T1-T2 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Fundamental parameters of LMC clusters integer*4 nr__2 parameter (nr__2=26) ! Number of records character*48 ar__2 ! Full-size record character*10 Cluster_1 ! Star Cluster integer*4 Xpos_1 ! (pix) X position of cluster centre integer*4 Ypos_1 ! (pix) Y position of cluster centre integer*4 r ! (arcsec) Radius of cluster (2) integer*4 e_r ! (arcsec) rms uncertainty on r real*4 E_B_V ! (mag) Redenning real*4 logt ! ([yr]) Age real*4 e_logt ! ([yr]) rms uncertainty on Age real*4 logtl ! ([yr]) ? Age from literature integer*4 r_logtl ! [1/2]? Reference for logtl (1) *Note (1): References as follows: * 1 = Pietrzynski & Udalski (2000, Cat. J/AcA/50/337) * 2 = Glatt et al. (2010, Cat. J/A+A/517/A50) *Note (2): the cluster radius is defined as the distance from the cluster * centre where the number of stars equals that of the background. C============================================================================= C Loading file 'table1.dat' ! Star clusters in the LMC C Format for file interpretation 1 format( + A10,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F6.2,1X,F6.2,1X, + A10,1X,I4,1X,I3,1X,I3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F3.1,1X,F3.1, + 1X,F3.1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,26 read(1,'(A97)')ar__ read(ar__,1) + Cluster,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,Date,ExpC,ExpR, + ExpI,Air_C,Air_R,Air_I,See_C,See_R,See_I 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,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,Date,ExpC,ExpR, + ExpI,Air_C,Air_R,Air_I,See_C,See_R,See_I write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! CT1T2 data of stars in the field of NGC 2093 C Format for file interpretation 2 format( + 1X,I6,1X,F8.3,1X,F8.3,2X,F6.3,4X,F5.3,3X,F6.3,4X,F5.3,3X,F6.3, + 4X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,90396 read(1,'(A79)')ar__1 read(ar__1,2) + Seq,Xpos,Ypos,T1mag,e_T1mag,C_T1,e_C_T1,T1_T2,e_T1_T2 c ..............Just test output........... write(6,2) + Seq,Xpos,Ypos,T1mag,e_T1mag,C_T1,e_C_T1,T1_T2,e_T1_T2 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Fundamental parameters of LMC clusters C Format for file interpretation 3 format( + A10,1X,I4,1X,I4,1X,I2,1X,I2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2, + 1X,I1) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,26 read(1,'(A48)')ar__2 read(ar__2,3) + Cluster_1,Xpos_1,Ypos_1,r,e_r,E_B_V,logt,e_logt,logtl,r_logtl if(ar__2(43:46) .EQ. '') logtl = rNULL__ if(ar__2(48:48) .EQ. '') r_logtl = iNULL__ c ..............Just test output........... write(6,3) + Cluster_1,Xpos_1,Ypos_1,r,e_r,E_B_V,logt,e_logt,logtl,r_logtl c .......End.of.Just test output........... end do close(1) C============================================================================= stop end