Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/472/835 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/472/835 JHKs and GLIMPSE photometry of RCW 120 (Zavagno+, 2007) *================================================================================ *Triggered star formation on the borders of the Galactic HII region RCW 120. * Zavagno A., Pomares M., Deharveng L., Hosokawa T., Russeil D., Caplan J. * <Astron. Astrophys., 472, 835-846 (2007)> * =2007A&A...472..835Z C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Magnitudes of IR sources observed towards RCW 120 integer*4 nr__ parameter (nr__=135) ! Number of records character*128 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg character*3 Field ! Field (1) character*13 Object ! Object designation character*1 n_Object ! [*] Note for Object name corrected (2) real*8 RAdeg ! (deg) Right ascension in decimal degrees (J2000) real*8 DEdeg ! (deg) Declination in decimal degrees (J2000) real*4 Jmag ! (mag) ? 2MASS PSC J magnitude character*1 u_Jmag ! Uncertainty flag on Jmag real*4 Hmag ! (mag) ? 2MASS PSC H magnitude character*1 u_Hmag ! Uncertainty flag on Hmag real*4 Ksmag ! (mag) ? 2MASS PSC Ks magnitude character*1 u_Ksmag ! Uncertainty flag on Ksmag real*4 v3_6um ! (mag) ? GLIMPSE PSC 3.6um magnitude character*1 n_3_6um ! [*] when magnitude not from GLIMPSE PSC (3) real*4 v4_5um ! (mag) ? GLIMPSE PSC 4.5um magnitude character*1 n_4_5um ! [*] when magnitude not from GLIMPSE PSC (3) real*4 v5_8um ! (mag) ? GLIMPSE PSC 5.8um magnitude character*1 n_5_8um ! [*] when magnitude not from GLIMPSE PSC (3) real*4 v8_0um ! (mag) ? GLIMPSE PSC 8.0um magnitude character*1 n_8_0um ! [*] when magnitude not from GLIMPSE PSC (3) character*31 Com ! Comments about the nature of each source * (Class I, Class II, giant) *Note (1): Fields designations as follows: * CN = Condensation N * TIR = Towards the ionized region * OUT = Outside *Note (2): These two objects were identified as 25out in the first version of * the table (until 18-Jul-2008). * - 25out (258.047760 -38.266209) is renamed 46out * - 25out (258.225098 -38.365845) is renamed 47out *Note (3): When magnitudes where not available from the GLIMPSE PSC, * we measured the magnitudes (aperture photometry) using the * Basic Calibrated Data frames. C============================================================================= C Loading file 'table2.dat' ! Magnitudes of IR sources observed towards RCW 120 C Format for file interpretation 1 format( + A3,1X,A13,A1,1X,F10.6,1X,F10.6,1X,F6.3,A1,1X,F6.3,A1,1X,F6.3, + A1,1X,F6.3,A1,1X,F6.3,A1,1X,F6.3,A1,1X,F6.3,A1,1X,A31) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,135 read(1,'(A128)')ar__ read(ar__,1) + Field,Object,n_Object,RAdeg,DEdeg,Jmag,u_Jmag,Hmag,u_Hmag, + Ksmag,u_Ksmag,v3_6um,n_3_6um,v4_5um,n_4_5um,v5_8um,n_5_8um, + v8_0um,n_8_0um,Com if(ar__(42:47) .EQ. '') Jmag = rNULL__ if(ar__(50:55) .EQ. '') Hmag = rNULL__ if(ar__(58:63) .EQ. '') Ksmag = rNULL__ if(ar__(66:71) .EQ. '') v3_6um = rNULL__ if(ar__(74:79) .EQ. '') v4_5um = rNULL__ if(ar__(82:87) .EQ. '') v5_8um = rNULL__ if(ar__(90:95) .EQ. '') v8_0um = rNULL__ c ..............Just test output........... write(6,1) + Field,Object,n_Object,RAdeg,DEdeg,Jmag,u_Jmag,Hmag,u_Hmag, + Ksmag,u_Ksmag,v3_6um,n_3_6um,v4_5um,n_4_5um,v5_8um,n_5_8um, + v8_0um,n_8_0um,Com c .......End.of.Just test output........... end do close(1) C============================================================================= stop end