Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/135/2496 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/AJ/135/2496 Near-IR survey of Class I protostars (Connelley+, 2008) *================================================================================ *The evolution of the multiplicity of embedded protostars. *I. Sample properties and binary detections. * Connelley M.S., Reipurth B., Tokunaga A.T. * <Astron. J., 135, 2496-2525 (2008)> * =2008AJ....135.2496C C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Source characteristics integer*4 nr__ parameter (nr__=242) ! Number of records character*128 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*13 IRAS ! IRAS identification character*43 Assoc ! Association(s) (1) integer*4 Dist ! (pc) ? Estimated heliocentric distance integer*4 r_Dist ! Reference for Dist, in refs.dat file real*8 Lbol ! (solLum) ? Bolometric luminosity integer*4 RAh ! (h) 2MASS Hour of Right Ascension (J2000) integer*4 RAm ! (min) 2MASS Minute of Right Ascension (J2000) real*4 RAs ! (s) 2MASS Second of Right Ascension (J2000) character*1 pf ! [I*] Position flag (2) character*1 DE_ ! Sign of the the 2MASS Declination (J2000) integer*4 DEd ! (deg) 2MASS Degree of Declination (J2000) integer*4 DEm ! (arcmin) 2MASS Arcminute of Declination (J2000) real*4 DEs ! (arcsec) 2MASS Arcsecond of Declination (J2000) real*4 Jmag ! (mag) ? 2MASX J band magnitude real*4 Hmag ! (mag) ? 2MASX H band magnitude real*4 Kmag ! (mag) ? 2MASX Ks band magnitude real*4 alpha ! ? Lada (1991) source spectral index (3) *Note (1): RNO designates objects in "Red and Nebulous Objects in Dark * Clouds: a Survey". (Cohen, 1980AJ.....85...29C). *Note (2): Position flag as follows: * I = A near-IR counterpart could not be identified in the 2MASS * images so the coordinates are from IRAS * * = Not explicited in the paper *Note (3): Lada, 1991, The Physics of Star Formation and Early Stellar * Evolution, ed. C. J. Lada & N. D. Kylafis (Dordrecht: Kluwer), 329 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Target photometry integer*4 nr__1 parameter (nr__1=483) ! Number of records character*91 ar__1 ! Full-size record character*13 IRAS_1 ! IRAS identification character*2 m_IRAS ! Identifier number in L' source finder chart character*1 f_Hmag ! Limit or approximate flag on Hmag real*4 Hmag_1 ! (mag) ? The H band magnitude character*1 n_Hmag ! [*] confused Hmag (1) real*4 e_Hmag ! (mag) ? Uncertainty in Hmag; see Section 3.5 character*10 HObs ! ("D/M/Y") Date of the H band observation character*1 n_HObs ! [2]? 2 if 2MASS observation character*1 f_Kmag ! Limit flag on Kmag real*4 Kmag_1 ! (mag) ? The K band magnitude character*1 n_Kmag ! [*] confused Kmag (1) real*4 e_Kmag ! (mag) ? Uncertainty in Kmag; see Section 3.5 character*10 KObs ! ("D/M/Y") Date Day of the K band observation character*1 n_KObs ! [2]? 2 if 2MASS observation real*4 Lmag ! (mag) ? The L band magnitude character*1 n_Lmag ! [*] confused Lmag (1) real*4 e_Lmag ! (mag) ? Uncertainty in Lmag; see Section 3.5 character*10 LObs ! ("D/M/Y") Date Day of the L' band observation *Note (1): * indicates that the photometry includes flux from this source * and an adjacent source, which were not resolved in this wavelength c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table5.dat' ! Binary properties integer*4 nr__2 parameter (nr__2=89) ! Number of records character*78 ar__2 ! Full-size record character*13 IRAS_2 ! IRAS identification integer*4 m_IRAS_1 ! ? Primary star number in finding chart (1) integer*4 Dist_1 ! (pc) ?=- Estimated heliocentric distance real*4 DelL ! (mag) L' magnitude difference (2) real*4 Sep ! (arcsec) Angular separation (2) real*4 PA ! (deg) Position angle of secondary star character*39 Disc ! Discoverer *Note (1): If there is more than one primary object per IRAS source. *Note (2): Between primary and secondary stars. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table6.dat' ! Binary detection limits integer*4 nr__3 parameter (nr__3=189) ! Number of records character*73 ar__3 ! Full-size record character*13 IRAS_3 ! IRAS identification integer*4 m_IRAS_2 ! ? Primary star number in finding chart (1) integer*4 Dist_2 ! (pc) ? Estimated heliocentric distance (2) real*4 inL1 ! (arcsec) ? {Delta}L'=1mag inner detection limit (3) real*4 inL2 ! (arcsec) ? {Delta}L'=2mag inner detection limit (3) real*4 inL3 ! (arcsec) ? {Delta}L'=3mag inner detection limit (3) real*4 inL4 ! (arcsec) ? {Delta}L'=4mag inner detection limit (3) real*4 outL1 ! (arcsec) {Delta}L'=1mag outer detection limit (4) real*4 outL2 ! (arcsec) {Delta}L'=2mag outer detection limit (4) real*4 outL3 ! (arcsec) {Delta}L'=3mag outer detection limit (4) real*4 outL4 ! (arcsec) {Delta}L'=4mag outer detection limit (4) *Note (1): If there is more than one primary object per IRAS source. *Note (2): A blank indicates that a distance estimate was searched for but * one couldn't be found. *Note (3): The closest distance from the primary star that a fake companion * star of the stated magnitude difference could be detected. If inner * detection limit is 999., then a companion of that contrast cannot be * detected at any separation. *Note (4): The farthest that a binary companion could be accepted. This is * limited by our 5000AU separation limit or the 5% contamination * criterion. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__4 parameter (nr__4=53) ! Number of records character*124 ar__4 ! Full-size record integer*4 Ref ! Reference code character*19 BibCode ! BibCode character*29 Aut ! Author's name character*71 Com ! Comments C============================================================================= C Loading file 'table1.dat' ! Source characteristics C Format for file interpretation 1 format( + A13,1X,A43,1X,I5,1X,I2,1X,F8.1,1X,I2,1X,I2,1X,F5.2,1X,A1,1X, + A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F6.3,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,242 read(1,'(A128)')ar__ read(ar__,1) + IRAS,Assoc,Dist,r_Dist,Lbol,RAh,RAm,RAs,pf,DE_,DEd,DEm,DEs, + Jmag,Hmag,Kmag,alpha if(ar__(59:63) .EQ. '') Dist = iNULL__ if(ar__(68:75) .EQ. '') Lbol = rNULL__ if(ar__(103:108) .EQ. '') Jmag = rNULL__ if(ar__(110:115) .EQ. '') Hmag = rNULL__ if(ar__(117:122) .EQ. '') Kmag = rNULL__ if(ar__(124:128) .EQ. '') alpha = rNULL__ 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) + IRAS,Assoc,Dist,r_Dist,Lbol,RAh,RAm,RAs,pf,DE_,DEd,DEm,DEs, + Jmag,Hmag,Kmag,alpha write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Target photometry C Format for file interpretation 2 format( + A13,1X,A2,1X,A1,F6.3,A1,1X,F4.2,1X,A10,A1,A1,F6.3,A1,1X,F4.2, + 1X,A10,A1,1X,F6.3,A1,1X,F4.2,1X,A10) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,483 read(1,'(A91)')ar__1 read(ar__1,2) + IRAS_1,m_IRAS,f_Hmag,Hmag_1,n_Hmag,e_Hmag,HObs,n_HObs,f_Kmag, + Kmag_1,n_Kmag,e_Kmag,KObs,n_KObs,Lmag,n_Lmag,e_Lmag,LObs if(ar__1(19:24) .EQ. '') Hmag_1 = rNULL__ if(ar__1(27:30) .EQ. '') e_Hmag = rNULL__ if(ar__1(44:49) .EQ. '') Kmag_1 = rNULL__ if(ar__1(52:55) .EQ. '') e_Kmag = rNULL__ if(ar__1(69:74) .EQ. '') Lmag = rNULL__ if(ar__1(77:80) .EQ. '') e_Lmag = rNULL__ c ..............Just test output........... write(6,2) + IRAS_1,m_IRAS,f_Hmag,Hmag_1,n_Hmag,e_Hmag,HObs,n_HObs,f_Kmag, + Kmag_1,n_Kmag,e_Kmag,KObs,n_KObs,Lmag,n_Lmag,e_Lmag,LObs c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table5.dat' ! Binary properties C Format for file interpretation 3 format(A13,1X,I2,1X,I4,1X,F4.2,1X,F5.2,1X,F5.1,1X,A39) C Effective file loading open(unit=1,status='old',file= +'table5.dat') write(6,*) '....Loading file: table5.dat' do i__=1,89 read(1,'(A78)')ar__2 read(ar__2,3)IRAS_2,m_IRAS_1,Dist_1,DelL,Sep,PA,Disc if(ar__2(15:16) .EQ. '') m_IRAS_1 = iNULL__ if (Dist_1 .EQ. 45) Dist_1 = iNULL__ c ..............Just test output........... write(6,3)IRAS_2,m_IRAS_1,Dist_1,DelL,Sep,PA,Disc c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table6.dat' ! Binary detection limits C Format for file interpretation 4 format( + A13,1X,I2,1X,I4,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F5.2,1X, + F5.2,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table6.dat') write(6,*) '....Loading file: table6.dat' do i__=1,189 read(1,'(A73)')ar__3 read(ar__3,4) + IRAS_3,m_IRAS_2,Dist_2,inL1,inL2,inL3,inL4,outL1,outL2,outL3, + outL4 if(ar__3(15:16) .EQ. '') m_IRAS_2 = iNULL__ if(ar__3(18:21) .EQ. '') Dist_2 = iNULL__ if(ar__3(23:28) .EQ. '') inL1 = rNULL__ if(ar__3(30:35) .EQ. '') inL2 = rNULL__ if(ar__3(37:42) .EQ. '') inL3 = rNULL__ if(ar__3(44:49) .EQ. '') inL4 = rNULL__ c ..............Just test output........... write(6,4) + IRAS_3,m_IRAS_2,Dist_2,inL1,inL2,inL3,inL4,outL1,outL2,outL3, + outL4 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 5 format(I2,1X,A19,1X,A29,1X,A71) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,53 read(1,'(A124)')ar__4 read(ar__4,5)Ref,BibCode,Aut,Com c ..............Just test output........... write(6,5)Ref,BibCode,Aut,Com c .......End.of.Just test output........... end do close(1) C============================================================================= stop end