Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/461/669 into FORTRAN code for loading all data files into arrays.
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-Mar-29 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/461/669 XMM observations of Cha I dark cloud (Robrade+, 2007) *================================================================================ *A deep XMM-Newton X-ray observation of the Chamaeleon I dark cloud. * Robrade J., Schmitt J.H.M.M. * <Astron. Astrophys., 461, 669-678 (2007)> * =2007A&A...461..669R C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! X-ray source list in Cha I dark cloud integer*4 nr__ parameter (nr__=71) ! Number of records character*149 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension J2000 real*8 DEdeg (nr__) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) integer*4 CHXX (nr__) ! [1/71]+ Sequential number integer*4 RAh (nr__) ! (h) Right ascension (J2000) integer*4 RAm (nr__) ! (min) Right ascension (J2000) real*4 RAs (nr__) ! (s) Right ascension (J2000) character*1 DE_ (nr__) ! Declination sign (J2000) integer*4 DEd (nr__) ! (deg) Declination (J2000) integer*4 DEm (nr__) ! (arcmin) Declination (J2000) real*4 DEs (nr__) ! (arcsec) Declination (J2000) integer*4 e_Pos (nr__) ! (arcsec) Positional error real*4 CRPN (nr__) ! (0.1ct/s) ?=- PN count-rate in 0.5-7.5keV band (1) character*1 n_CRPN (nr__) ! [P] P if source without useful data by * the detector PN real*4 CRPNs (nr__) ! (ct/s) ? PN count-rate in 0.5-1.0keV band real*4 CRPNm (nr__) ! (ct/s) ? PN count-rate in 1.0-2.0keV band real*4 CRPNh (nr__) ! (ct/s) ? PN count-rate in 2.0-7.5keV band real*4 CRMOS1 (nr__) ! (0.1ct/s) ?=- MOS1 count-rate in 0.5-7.5keV band (1) character*2 n_CRMOS1 (nr__) ! [M1 ] M1 if source without useful data by * the detector M1 real*4 CRMOS1s (nr__) ! (ct/s) ? MOS1 count-rate in 0.5-1.0keV band real*4 CRMOS1m (nr__) ! (ct/s) ? MOS1 count-rate in 1.0-2.0keV band real*4 CRMOS1h (nr__) ! (ct/s) ? MOS1 count-rate in 2.0-7.5keV band real*4 CRMOS2 (nr__) ! (0.1ct/s) ?=- MOS2 count-rate in 0.5-7.5keV band (1) real*4 CRMOS2s (nr__) ! (ct/s) ? MOS2 count-rate in 0.5-1.0keV band real*4 CRMOS2m (nr__) ! (ct/s) ? MOS2 count-rate in 1.0-2.0keV band real*4 CRMOS2h (nr__) ! (ct/s) ? MOS2 count-rate in 2.0-7.5keV band character*19 v2M_D_ID (nr__) ! 2MASS (2M) or DENIS (D) identification (2) character*17 Names (nr__) ! Other names (3) *Note (1): Sources that are not present in a detector are marked by dashes. *Note (2): 2M for 2MASS J, D for DENIS database 3rd release *Note (3): Other names use the prefixes: * CHXR = Feigelson et al. (1993ApJ...416..623F) * Hn = Hartigan (1993AJ....105.1511H) * Sz = Schwartz (1977ApJS...35..161S) * CCE = Cambresy et al. (1998A&A...338..977C), [CCE98] N-NNN in Simbad * ChaI = Lopez Marti et al. (2004, Cat. <J/A+A/416/555>), * [LES2004] ChaI NNN in Simbad * U = USNO-B1.0 catalog, Cat. <I/284> C============================================================================= C Loading file 'table4.dat' ! X-ray source list in Cha I dark cloud C Format for file interpretation 1 format( + I2,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,I1,1X,F6.3, + A1,E6.2,1X,E6.2,1X,E6.2,1X,F5.3,A2,E6.2,1X,E6.2,1X,E6.2,1X, + F5.3,1X,E7.3,1X,E6.2,1X,E6.2,1X,A19,1X,A17) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,71 read(1,'(A149)')ar__ read(ar__,1) + CHXX(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),e_Pos(i__),CRPN(i__),n_CRPN(i__),CRPNs(i__), + CRPNm(i__),CRPNh(i__),CRMOS1(i__),n_CRMOS1(i__),CRMOS1s(i__), + CRMOS1m(i__),CRMOS1h(i__),CRMOS2(i__),CRMOS2s(i__), + CRMOS2m(i__),CRMOS2h(i__),v2M_D_ID(i__),Names(i__) if (idig(ar__(29:34)).EQ.0) CRPN(i__) = rNULL__ if(ar__(36:41) .EQ. '') CRPNs(i__) = rNULL__ if(ar__(43:48) .EQ. '') CRPNm(i__) = rNULL__ if(ar__(50:55) .EQ. '') CRPNh(i__) = rNULL__ if (idig(ar__(57:61)).EQ.0) CRMOS1(i__) = rNULL__ if(ar__(64:69) .EQ. '') CRMOS1s(i__) = rNULL__ if(ar__(71:76) .EQ. '') CRMOS1m(i__) = rNULL__ if(ar__(78:83) .EQ. '') CRMOS1h(i__) = rNULL__ if (idig(ar__(85:89)).EQ.0) CRMOS2(i__) = rNULL__ if(ar__(91:97) .EQ. '') CRMOS2s(i__) = rNULL__ if(ar__(99:104) .EQ. '') CRMOS2m(i__) = rNULL__ if(ar__(106:111) .EQ. '') CRMOS2h(i__) = rNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + CHXX(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),e_Pos(i__),CRPN(i__),n_CRPN(i__),CRPNs(i__), + CRPNm(i__),CRPNh(i__),CRMOS1(i__),n_CRMOS1(i__),CRMOS1s(i__), + CRMOS1m(i__),CRMOS1h(i__),CRMOS2(i__),CRMOS2s(i__), + CRMOS2m(i__),CRMOS2h(i__),v2M_D_ID(i__),Names(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end