Conversion of standardized ReadMe file for
file /./ftp/cats/II/300 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. II/300 JMMC Stellar Diameters Catalogue - JSDC (Lafrasse+, 2010) *================================================================================ *An all-sky catalogue of computed star diameters using the SearchCal webservice. * Lafrasse S., Mella G., Bonneau D., Duvert G., Delfosse X., Chelli A. * <SPIE Conf. on Astronomical Instrumentation 77344E (2010)> * =2010SPIE.7734E.140L C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'jsdc.dat' ! Stellar diameters catalogue integer*4 nr__ parameter (nr__=38472) ! Number of records character*189 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*16 Name ! Name: "HIP" HIP number (Cat. I/311) * or "TYC" TYCHO number (Cat. I/259/tyc2) integer*4 RAh ! (h) Right Ascension J2000 (hours) integer*4 RAm ! (min) Right Ascension J2000 (minutes) real*4 RAs ! (s) Right Ascension J2000 (seconds) character*1 DE_ ! Declination J2000 (sign) integer*4 DEd ! (deg) Declination J2000 (degrees) integer*4 DEm ! (arcmin) Declination J2000 (minutes) real*4 DEs ! (arcsec) Declination J2000 (seconds) real*8 pmRA ! (mas/yr) Proper motion in Right Ascension real*8 pmDE ! (mas/yr) Proper motion in Declination real*4 Bmag ! Johnson B magnitude (from ASCC-2.5, I/280) real*4 Vmag ! Johnson V magnitude (from ASCC-2.5, I/280) real*4 Rmag ! Johnson R magnitude (Cat. II/7A) integer*4 f_Rmag ! [0/1] Rmag is a measurement or estimation (1) real*4 Imag ! Johnson I magnitude (Cat. II/7) integer*4 f_Imag ! [0/1] Imag is a measurement or estimation (1) real*4 Jmag ! Johnson J magnitude (Cat. II/246, II/7) real*4 Hmag ! Johnson H magnitude (Cat. II/246, II/7) real*4 Kmag ! Johnson K magnitude (Cat. II/246, II/7) real*4 LDD ! (mas) Limb-Darkened Diameter real*4 e_LDD ! (mas) Error on Limb-Darkened Diameter (2) real*4 UDDB ! (mas) Uniform diameter at B band real*4 UDDV ! (mas) Uniform diameter at V band real*4 UDDR ! (mas) Uniform diameter at R band real*4 UDDI ! (mas) Uniform diameter at I band real*4 UDDJ ! (mas) Uniform diameter at J band real*4 UDDH ! (mas) Uniform diameter at H band real*4 UDDK ! (mas) Uniform diameter at K band real*4 plx ! (mas) Trigonometric parallax (from ASCC-2.5, I/280) real*4 e_plx ! (mas) Error on Parallax (from ASCC-2.5, I/280) character*16 SpType ! MK Spectral type (from ASCC-2.5, I/280) integer*4 Teff ! (K) Effective temperature adopted from SpType real*4 logg ! ([cm/s2]) Surface gravity adopted from SpType *Note (1): Magnitude flag as follows: * 1 = the corresponding magnitude is a measurement * 0 = the corresponding magnitude is an estimate based on the colors * deduced from the spectral type. In this case, due to the * discrete nature of the tables (SpType - color) used, a * discretization appears in the diagrams using the colors (V-I) * and (V-R) *Note (2): We provide only one error for all angular diameters, since the linear * corrections between Uniform Disk diameters and the Limb-Darkened * diameter lead to negligible corrections on the UDdiam errors. C============================================================================= C Loading file 'jsdc.dat' ! Stellar diameters catalogue C Format for file interpretation 1 format( + A16,I2,1X,I2,1X,F6.3,A1,I2,1X,I2,1X,F5.2,F7.2,F7.2,F6.3,F6.3, + F6.3,I1,F6.3,I1,F6.3,F6.3,F6.3,F6.3,F5.3,F6.3,F6.3,F6.3,F6.3, + F6.3,F6.3,F6.3,F6.2,F5.2,A16,I5,F6.3) C Effective file loading open(unit=1,status='old',file= +'jsdc.dat') write(6,*) '....Loading file: jsdc.dat' do i__=1,38472 read(1,'(A189)')ar__ read(ar__,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,pmDE,Bmag,Vmag,Rmag, + f_Rmag,Imag,f_Imag,Jmag,Hmag,Kmag,LDD,e_LDD,UDDB,UDDV,UDDR, + UDDI,UDDJ,UDDH,UDDK,plx,e_plx,SpType,Teff,logg 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) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pmRA,pmDE,Bmag,Vmag,Rmag, + f_Rmag,Imag,f_Imag,Jmag,Hmag,Kmag,LDD,e_LDD,UDDB,UDDV,UDDR, + UDDI,UDDJ,UDDH,UDDK,plx,e_plx,SpType,Teff,logg write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= stop end