Conversion of standardized ReadMe file for
file /./ftp/cats/I/125A 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.
++++Column 'RAh' at line 57: Right Ascension B1950 (hours) at Epoch position has no associated Epoch (last analysed word: '') program load_ReadMe C============================================================================= C F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2024-Mar-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/125A Combined Lick-Voyager Reference Star Catalogue (Dunham 1986) *================================================================================ *Combined Lick-Voyager Reference Star Catalogue. * Dunham D.W. * <Unpublished (1986)> C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! The Catalogue integer*4 nr__ parameter (nr__=25136) ! Number of records character*88 ar__ ! Full-size record C B1950 position composed of: RAh RAm RAms DE- DEd DEm DEcs real*8 RAdeg (nr__) ! (deg) Right Ascension B1950 real*8 DEdeg (nr__) ! (deg) Declination B1950 C ---------------------------------- ! (position vector(s) in degrees) character*1 DMsign (nr__) ! [-+CL] DM zone sign, or Lick indicator: * + or - : Bonner Durchmusterung * C : Cordoba Durchmusterung * L : Lick (non-DM) integer*4 DMzone (nr__) ! DM zone (without sign), or if Lick: * 1=Jupiter, 2=Saturn, 3=Uranus-pre, * 4=Uranus-post, 5=Neptune integer*4 DMnum (nr__) ! sequence number in DM (or Lick) zone integer*4 Vmag (nr__) ! (0.01mag) V magnitude (in unit of 0.01mag.) integer*4 RAh (nr__) ! (h) Right Ascension B1950 (hours) at Epoch integer*4 RAm (nr__) ! (min) Right Ascension B1950 (minutes) integer*4 RAms (nr__) ! (ms) Right Ascension B1950 (seconds) integer*4 pmRA (nr__) ! (0.01ms/a) proper motion in RA (0.001s/century) character*1 DE_ (nr__) ! Declination B1950 (sign) integer*4 DEd (nr__) ! (deg) Declination B1950 (degrees) at Epoch integer*4 DEm (nr__) ! (arcmin) Declination B1950 (minutes) integer*4 DEcs (nr__) ! (10mas) Declination B1950 (0.01 seconds) integer*4 pmDE (nr__) ! (0.1mas/a) proper motion in DE (0.01arcseconds/cent) integer*4 Bmag (nr__) ! (0.01mag) []?=9999 B magnitude (0.01mag.) integer*4 SCnum (nr__) ! Lick source number, see remarks below. integer*4 SAO (nr__) ! [1/258997]?=0 SAO number <I/131> character*3 SpType (nr__) ! spectral type (if given) integer*4 e_RAs (nr__) ! (10mas) error of RA (0.01arcseconds) integer*4 e_pmRA (nr__) ! (0.1mas/a) error of pmRA (0.01arcseconds/century) integer*4 e_DEs (nr__) ! (10mas) error of DE (0.01arcseconds) integer*4 e_pmDE (nr__) ! (0.1mas/a) error of pmDE (0.01arcseconds/century) integer*4 Ep_1900 (nr__) ! (0.01a) epoch of RA and DE, 0.01years since 1900. integer*4 plx (nr__) ! (0.1mas) parallax (0.0001arcseconds) character*8 AGK3 (nr__) ! AGK3 designation (zone in bytes 81-83, * number in bytes 85-88) C============================================================================= C Loading file 'catalog.dat' ! The Catalogue C Format for file interpretation 1 format( + A1,I2,I5,I4,I2,I2,I5,I6,A1,I2,I2,I4,I6,I4,I5,I6,A3,I3,I3,I3, + I3,I4,I4,A8) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,25136 read(1,'(A88)')ar__ read(ar__,1) + DMsign(i__),DMzone(i__),DMnum(i__),Vmag(i__),RAh(i__), + RAm(i__),RAms(i__),pmRA(i__),DE_(i__),DEd(i__),DEm(i__), + DEcs(i__),pmDE(i__),Bmag(i__),SCnum(i__),SAO(i__),SpType(i__), + e_RAs(i__),e_pmRA(i__),e_DEs(i__),e_pmDE(i__),Ep_1900(i__), + plx(i__),AGK3(i__) 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(RAms(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAms(i__)/240000. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEcs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEcs(i__)/360000. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + DMsign(i__),DMzone(i__),DMnum(i__),Vmag(i__),RAh(i__), + RAm(i__),RAms(i__),pmRA(i__),DE_(i__),DEd(i__),DEm(i__), + DEcs(i__),pmDE(i__),Bmag(i__),SCnum(i__),SAO(i__),SpType(i__), + e_RAs(i__),e_pmRA(i__),e_DEs(i__),e_pmDE(i__),Ep_1900(i__), + plx(i__),AGK3(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end