Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/696/729 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/ApJ/696/729 Fluxes and abundances of PNe in M33 (Magrini+, 2009) *================================================================================ *The planetary nebula population of M33 and its metallicity gradient: *a look into the galaxy's distant past. * Magrini L., Stanghellini L., Villaver E. * <Astrophys. J., 696, 729-740 (2009)> * =2009ApJ...696..729M C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Observed PNe integer*4 nr__ parameter (nr__=102) ! Number of records character*36 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 Seq (nr__) ! Identification number (G1) integer*4 RAh (nr__) ! (h) Hour of Right Ascension (J2000) integer*4 RAm (nr__) ! (min) Minute of Right Ascension (J2000) real*4 RAs (nr__) ! (s) Second of Right Ascension (J2000) character*1 DE_ (nr__) ! Declination sign (J2000) integer*4 DEd (nr__) ! (deg) Degree of Declination (J2000) integer*4 DEm (nr__) ! (arcmin) Arcminute of Declination (J2000) real*4 DEs (nr__) ! (arcsec) Arcsecond of Declination (J2000) real*4 OIIImag (nr__) ! (mag) ? The [OIII] magnitude from Ciardullo, 2004, * Cat. J/ApJ/614/167 (1) *Note (1): Following the definitions by Jacoby (1989ApJ...339...39J). c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Observed and de-reddened fluxes integer*4 nr__1 parameter (nr__1=3686) ! Number of records character*53 ar__1 ! Full-size record integer*4 Seq_1 (nr__1) ! Identificaiton number (G1) real*4 cHb (nr__1) ! ? Nebular extinction coefficient real*4 e_cHb (nr__1) ! ? Error in cHb character*10 Ion (nr__1) ! Ion identification integer*4 lambda (nr__1) ! (0.1nm) Wavelength in Angstroms real*4 Flambda (nr__1) ! ? Measured line flux (1) real*4 e_Flambda (nr__1) ! ? Absolute error in Flambda real*4 Ilambda (nr__1) ! ? Extinction corrected line flux (1) *Note (1): Expressed on a scale where H{beta}=100. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! *Plasma diagnostics and abundances of 93 PNe integer*4 nr__2 parameter (nr__2=93) ! Number of records character*223 ar__2 ! Full-size record integer*4 Seq_2 (nr__2) ! Identification number (G1) real*4 Ar_H (nr__2) ! ?=- Ar/H abundance real*4 ArIII_H (nr__2) ! ?=- ArIII/H abundance real*4 He_H (nr__2) ! ?=- He/H abundance real*4 HeI_H (nr__2) ! ?=- HeI/H abundance real*4 HeII_H (nr__2) ! ?=- HeII/H abundance real*4 ICF_Ar (nr__2) ! ?=- Ar ionization correction factor real*8 ICF_N (nr__2) ! ? N ionization correction factor real*4 ICF_Ne (nr__2) ! ?=- Ne ionization correction factor real*4 ICF_O (nr__2) ! ? O ionization correction factor real*4 ICF_S (nr__2) ! ?=- S ionization correction factor real*4 N_H (nr__2) ! ?=- N/H abundance real*4 NII_H (nr__2) ! ?=- NII/H abundance real*4 Ne_H (nr__2) ! ?=- Ne/H abundance real*4 NeIII_H (nr__2) ! ?=- NeIII/H abundance real*4 O_H (nr__2) ! ? O/H abundance real*4 OI_H (nr__2) ! ?=- OI/H abundance real*4 OII_H (nr__2) ! ?=- OII/H abundance real*4 OIII_H (nr__2) ! ? OIII/H abundance real*4 S_H (nr__2) ! ?=- S/H abundance real*4 SII_H (nr__2) ! ?=- SII/H abundance real*4 SIII_H (nr__2) ! ?=- SIII/H abundance integer*4 Te_NII__a (nr__2) ! (K) ?=- [NII] electron temperature computed from * diagnostic line integer*4 Te_NII__b (nr__2) ! (K) ? Electron temperature for [NII] (1) real*8 Te_OIII__a (nr__2) ! (K) ?=- [OIII] electron temperature computed from * diagnostic line real*8 Te_OIII__b (nr__2) ! (K) ? Electron temperature for [OIII] (1) real*8 Ne_SII (nr__2) ! (cm-3) ? Electron density from [SII] *Note (1): Temperatures derived from the relations in section 3.1: * For I{lambda}4686>0, T_e_[OIII]=(63+/-8)I_{lambda}4686_+(11000+/-200) * where T_e_[OIII] is given in K and I4686 is scaled to H{beta}=100. * T_e_[NII]=(11700+/-2800)-(2800+/-4000)log(I_3727-29_/I_4959_+I_5007_) C============================================================================= C Loading file 'table1.dat' ! Observed PNe C Format for file interpretation 1 format(2X,I3,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F6.3,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,102 read(1,'(A36)')ar__ read(ar__,1) + Seq(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),OIIImag(i__) if(ar__(32:36) .EQ. '') OIIImag(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) + Seq(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),OIIImag(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Observed and de-reddened fluxes C Format for file interpretation 2 format( + 2X,I3,1X,F5.3,1X,F5.3,1X,A10,1X,I4,1X,F6.1,1X,F5.1,1X,F6.1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,3686 read(1,'(A53)')ar__1 read(ar__1,2) + Seq_1(i__),cHb(i__),e_cHb(i__),Ion(i__),lambda(i__), + Flambda(i__),e_Flambda(i__),Ilambda(i__) if(ar__1(7:11) .EQ. '') cHb(i__) = rNULL__ if(ar__1(13:17) .EQ. '') e_cHb(i__) = rNULL__ if(ar__1(35:40) .EQ. '') Flambda(i__) = rNULL__ if(ar__1(42:46) .EQ. '') e_Flambda(i__) = rNULL__ if(ar__1(48:53) .EQ. '') Ilambda(i__) = rNULL__ c ..............Just test output........... write(6,2) + Seq_1(i__),cHb(i__),e_cHb(i__),Ion(i__),lambda(i__), + Flambda(i__),e_Flambda(i__),Ilambda(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! *Plasma diagnostics and abundances of 93 PNe C Format for file interpretation 3 format( + 2X,I3,1X,E9.4,1X,E9.4,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F7.3, + 1X,F5.3,1X,F5.3,1X,F5.3,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X, + E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,E9.4,1X,I5,1X, + I5,1X,F8.2,1X,F7.1,1X,F8.3) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,93 read(1,'(A223)')ar__2 read(ar__2,3) + Seq_2(i__),Ar_H(i__),ArIII_H(i__),He_H(i__),HeI_H(i__), + HeII_H(i__),ICF_Ar(i__),ICF_N(i__),ICF_Ne(i__),ICF_O(i__), + ICF_S(i__),N_H(i__),NII_H(i__),Ne_H(i__),NeIII_H(i__), + O_H(i__),OI_H(i__),OII_H(i__),OIII_H(i__),S_H(i__),SII_H(i__), + SIII_H(i__),Te_NII__a(i__),Te_NII__b(i__),Te_OIII__a(i__), + Te_OIII__b(i__),Ne_SII(i__) if (idig(ar__2(7:15)).EQ.0) Ar_H(i__) = rNULL__ if (idig(ar__2(17:25)).EQ.0) ArIII_H(i__) = rNULL__ if (idig(ar__2(27:31)).EQ.0) He_H(i__) = rNULL__ if (idig(ar__2(33:37)).EQ.0) HeI_H(i__) = rNULL__ if (idig(ar__2(39:43)).EQ.0) HeII_H(i__) = rNULL__ if (idig(ar__2(45:49)).EQ.0) ICF_Ar(i__) = rNULL__ if(ar__2(51:57) .EQ. '') ICF_N(i__) = rNULL__ if (idig(ar__2(59:63)).EQ.0) ICF_Ne(i__) = rNULL__ if(ar__2(65:69) .EQ. '') ICF_O(i__) = rNULL__ if (idig(ar__2(71:75)).EQ.0) ICF_S(i__) = rNULL__ if (idig(ar__2(77:85)).EQ.0) N_H(i__) = rNULL__ if (idig(ar__2(87:95)).EQ.0) NII_H(i__) = rNULL__ if (idig(ar__2(97:105)).EQ.0) Ne_H(i__) = rNULL__ if (idig(ar__2(107:115)).EQ.0) NeIII_H(i__) = rNULL__ if(ar__2(117:125) .EQ. '') O_H(i__) = rNULL__ if (idig(ar__2(127:135)).EQ.0) OI_H(i__) = rNULL__ if (idig(ar__2(137:145)).EQ.0) OII_H(i__) = rNULL__ if(ar__2(147:155) .EQ. '') OIII_H(i__) = rNULL__ if (idig(ar__2(157:165)).EQ.0) S_H(i__) = rNULL__ if (idig(ar__2(167:175)).EQ.0) SII_H(i__) = rNULL__ if (idig(ar__2(177:185)).EQ.0) SIII_H(i__) = rNULL__ if (Te_NII__a(i__) .EQ. 45) Te_NII__a(i__) = iNULL__ if(ar__2(193:197) .EQ. '') Te_NII__b(i__) = iNULL__ if (idig(ar__2(199:206)).EQ.0) Te_OIII__a(i__) = rNULL__ if(ar__2(208:214) .EQ. '') Te_OIII__b(i__) = rNULL__ if(ar__2(216:223) .EQ. '') Ne_SII(i__) = rNULL__ c ..............Just test output........... write(6,3) + Seq_2(i__),Ar_H(i__),ArIII_H(i__),He_H(i__),HeI_H(i__), + HeII_H(i__),ICF_Ar(i__),ICF_N(i__),ICF_Ne(i__),ICF_O(i__), + ICF_S(i__),N_H(i__),NII_H(i__),Ne_H(i__),NeIII_H(i__), + O_H(i__),OI_H(i__),OII_H(i__),OIII_H(i__),S_H(i__),SII_H(i__), + SIII_H(i__),Te_NII__a(i__),Te_NII__b(i__),Te_OIII__a(i__), + Te_OIII__b(i__),Ne_SII(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