Conversion of standardized ReadMe file for
file /./ftp/cats/I/34 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. I/34 Second Greenwich Catalog of Stars for 1925.0 (London 1935) *================================================================================ *Second Greenwich Catalog of Stars for 1925.0 (in Two Parts) *Fundamental Stars and Stars in the Zone +32d.0 to +64d.0 * Royal Greenwich Obs. * <London (1935)> C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'greenw2a.dat' ! Part I. Fundamental Stars reduced with proper motion to the epoch 1925.0 integer*4 nr__ parameter (nr__=2111) ! Number of records character*110 ar__ ! Full-size record C 1925.0 position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=1925.0) real*8 RAdeg ! (deg) Right Ascension 1925.0, Epoch=1925.0 real*8 DEdeg ! (deg) Declination 1925.0, Epoch=1925.0 C ---------------------------------- ! (position vector(s) in degrees) integer*4 No_ ! Running number with the catalog. integer*4 PGC ! ? Preliminary General Catalog Number. real*4 vmag ! (mag) ?=-9.99 Visual Magnitude (1) character*1 varFlag ! [-] A minus sign if star is variable (1) character*3 SpType ! Spectral type (2) integer*4 RAh ! (h) Right Ascension 1925.0, Ep=1925.0 (hours). integer*4 RAm ! (min) Right Ascension (minutes). real*4 RAs ! (s) Right Ascension (seconds). real*8 AvarRA ! (s/yr) Annual Variation in RA (precession) real*8 SvarRA ! (s/hyr) Secular Variation in RA (2nd term precess.) character*1 DE_ ! Sign of the declination. integer*4 DEd ! (deg) Declination 1925.0, Ep=1925.0 (degrees). integer*4 DEm ! (arcmin) Declination (arcminutes). real*4 DEs ! (arcsec) Declination (seconds). real*8 AvarDE ! (arcsec/yr) Annual Variation in DEC (precession) real*8 SvarDE ! (arcsec/hyr) Secular Variation in DE (2nd term precess.) integer*4 epRA ! (0.1yr) Mean Epoch of RA - 1900.0. integer*4 epDE ! (0.1yr) Mean Epoch of DE - 1900.0. integer*4 o_RAs ! No. of Observations of RA. integer*4 o_DEs ! No. of Observations of DE. character*1 Note ! [12349JQ0-] Notes (3) integer*4 pmRA ! (.1ms/yr) Proper motion in RA. integer*4 pmDE ! (mas/yr) Proper motion in DE. *Note (1): When variable, only the brightest magnitude is given. * The published catalog gives the range in brightness and period. *Note (2): a * in the third byte means more than one spectral type has * been given for this star. *Note (3): The symbols used are: * 1 = Brighter Star; * 2 = Fainter Star; * 3 = First Star; * 4 = Second Star; * 9 = Observed as one star; * J = Brighter Star, Reduction to center of gravity; * Q = Position is for center of gravity; * - = Double Star System; * O = Triple Star System. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'greenw2b.dat' ! Part II. Catalogue of Stars reduced without proper motions to the epoch 1925.0 integer*4 nr__1 parameter (nr__1=10587) ! Number of records character*112 ar__1 ! Full-size record C 1925.0 position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=1925.0) real*8 RAdeg_1 ! (deg) Right Ascension 1925.0, Epoch=1925.0 real*8 DEdeg_1 ! (deg) Declination 1925.0, Epoch=1925.0 C ---------------------------------- ! (position vector(s) in degrees) integer*4 No__1 ! Running number with the catalog. character*1 dflag ! [a] 'a' for supplementary star character*9 BD ! Bonner Durchmusterung designation real*4 vmag_1 ! (mag) ?=-9.99 Visual Magnitude. (1) character*1 vFlag ! [-] A minus sign if star is variable. (1) character*3 SpType_1 ! Spectral type. (2) integer*4 RAh_1 ! (h) Right Ascension 1925.0 (hours) integer*4 RAm_1 ! (min) Right Ascension (minutes). real*4 RAs_1 ! (s) Right Ascension (seconds). real*8 AvarRA_1 ! (s/yr) Annual Variation in RA (precession) real*8 SvarRA_1 ! (s/hyr) Secular Variation in RA (2nd term precess.) character*1 DE__1 ! Sign of the declination. integer*4 DEd_1 ! (deg) Declination 1925.0 (degrees). integer*4 DEm_1 ! (arcmin) Declination (arcminutes). real*4 DEs_1 ! (arcsec) Declination (seconds). real*8 AvarDE_1 ! (arcsec/yr) Annual Variation in DE (precession) real*4 SvarDE_1 ! (arcsec/hyr) Secular Variation in DE (2nd term precess.) integer*4 EpRA_1900 ! (0.1yr) Mean Epoch of RA - 1900.0. integer*4 EpDE_1900 ! (0.1yr) Mean Epoch of DE - 1900.0. integer*4 o_RAs_1 ! No. of Observations of RA. integer*4 o_DEs_1 ! No. of Observations of DE. character*1 Note_1 ! [1234679JLM0RQ] Note (3) integer*4 pmRA_1 ! (0.1ms/yr) Proper motion in RA. integer*4 pmDE_1 ! (mas/yr) Proper motion in DE. *Note (1): When variable only the brightest magnitude is given. * The published catalog gives the range in brightness and period. *Note (2): a * in the third byte means more than one spectral type has * been given for this star. *Note (3): The symbols used are: * 1 = Brighter Star; * 2 = Fainter Star; * 3 = First Star; * 4 = Second Star; * 6 = South Star; * 7 = Mean of the two stars was observed; * 9 = Observed as one star; * J = Brighter Star, Reduction to center of gravity; * L = First star. Reduction to center of gravity * M = Second star. Reduction to center of gravity * 0 = Triple Star System * R = Observed as one star in some observations. * Q = Position is for center of gravity; -=Double Star System; C============================================================================= C Loading file 'greenw2a.dat' ! Part I. Fundamental Stars reduced with * proper motion to the epoch 1925.0 C Format for file interpretation 1 format( + 1X,I4,1X,I4,F5.2,A1,1X,A3,1X,I2,1X,I2,1X,F6.3,1X,F8.4,1X,F8.4, + 1X,A1,I2,1X,I2,1X,F5.2,1X,F7.3,1X,F7.3,1X,I3,1X,I3,1X,I3,1X, + I3,1X,A1,1X,I5,1X,I5) C Effective file loading open(unit=1,status='old',file= +'greenw2a.dat') write(6,*) '....Loading file: greenw2a.dat' do i__=1,2111 read(1,'(A110)')ar__ read(ar__,1) + No_,PGC,vmag,varFlag,SpType,RAh,RAm,RAs,AvarRA,SvarRA,DE_,DEd, + DEm,DEs,AvarDE,SvarDE,epRA,epDE,o_RAs,o_DEs,Note,pmRA,pmDE if(ar__(7:10) .EQ. '') PGC = iNULL__ 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) + No_,PGC,vmag,varFlag,SpType,RAh,RAm,RAs,AvarRA,SvarRA,DE_,DEd, + DEm,DEs,AvarDE,SvarDE,epRA,epDE,o_RAs,o_DEs,Note,pmRA,pmDE write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'greenw2b.dat' ! Part II. Catalogue of Stars reduced without * proper motions to the epoch 1925.0 C Format for file interpretation 2 format( + 1X,I5,A1,1X,A9,F5.2,A1,1X,A3,1X,I2,1X,I2,1X,F5.2,1X,F7.4,1X, + F7.4,1X,A1,I2,1X,I2,1X,F4.1,1X,F7.3,1X,F6.3,1X,I3,1X,I3,1X,I3, + 1X,I3,1X,A1,1X,I5,1X,I5) C Effective file loading open(unit=1,status='old',file= +'greenw2b.dat') write(6,*) '....Loading file: greenw2b.dat' do i__=1,10587 read(1,'(A112)')ar__1 read(ar__1,2) + No__1,dflag,BD,vmag_1,vFlag,SpType_1,RAh_1,RAm_1,RAs_1, + AvarRA_1,SvarRA_1,DE__1,DEd_1,DEm_1,DEs_1,AvarDE_1,SvarDE_1, + EpRA_1900,EpDE_1900,o_RAs_1,o_DEs_1,Note_1,pmRA_1,pmDE_1 RAdeg_1 = rNULL__ DEdeg_1 = rNULL__ c Derive coordinates RAdeg_1 and DEdeg_1 from input data c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown) if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15. if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4. if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240. if(DEd_1 .GE. 0) DEdeg_1=DEd_1 if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60. if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600. if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1 c ..............Just test output........... write(6,2) + No__1,dflag,BD,vmag_1,vFlag,SpType_1,RAh_1,RAm_1,RAs_1, + AvarRA_1,SvarRA_1,DE__1,DEd_1,DEm_1,DEs_1,AvarDE_1,SvarDE_1, + EpRA_1900,EpDE_1900,o_RAs_1,o_DEs_1,Note_1,pmRA_1,pmDE_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end