Conversion of standardized ReadMe file for
file /./ftp/cats/J/BaltA/18/141 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/BaltA/18/141 North America/Pelican red clump giants ugriJHK (Straizys+, 2009) *================================================================================ *Extinctions and distances of dark clouds from ugriJHK photometry of red clump *giants: the North America and Pelican nebulae complex. * Straizys V., Laugalys V. * <Baltic Astron., 18, 141-159 (2009)> * =2009BaltA..18..141S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Stars in the NAP area with photometric properties of red clump giants in the 2MASS, IPHAS (r, i) and MegaCam (u, g) systems. integer*4 nr__ parameter (nr__=104) ! Number of records character*66 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg integer*4 Seq ! [1/104] Sequential number character*1 n_Seq ! [*] Note on [SL2009] (1) real*8 RAdeg ! (deg) Right ascension in decimal degrees (J2000) real*4 DEdeg ! (deg) Declination in decimal degrees (J2000) real*4 Ksmag ! (mag) 2MASS Ks magnitude real*4 J_H ! (mag) 2MASS J-H colour index real*4 H_Ks ! (mag) H-Ks colour index real*4 u_g ! (mag) MegaCam u-g colour index real*4 g_r ! (mag) MegaCam-IPHAS g-r colour index real*4 r_i ! (mag) IPHAS r-i colour index real*4 AV ! (mag) ? Absorption in V-band real*4 Dist ! (kpc) ? Distance *Note (1): 17 stars with the numbers flagged with asterisks probably have * luminosities lower than those of RCGs. For these stars the extinction * and distance values are not given. C============================================================================= C Loading file 'table2.dat' ! Stars in the NAP area with photometric * properties of red clump giants in the 2MASS, * IPHAS (r, i) and MegaCam (u, g) systems. C Format for file interpretation 1 format( + I3,A1,1X,F7.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3, + 1X,F5.3,1X,F4.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,104 read(1,'(A66)')ar__ read(ar__,1) + Seq,n_Seq,RAdeg,DEdeg,Ksmag,J_H,H_Ks,u_g,g_r,r_i,AV,Dist if(ar__(58:61) .EQ. '') AV = rNULL__ if(ar__(63:66) .EQ. '') Dist = rNULL__ c ..............Just test output........... write(6,1) + Seq,n_Seq,RAdeg,DEdeg,Ksmag,J_H,H_Ks,u_g,g_r,r_i,AV,Dist c .......End.of.Just test output........... end do close(1) C============================================================================= stop end