Conversion of standardized ReadMe file for
file /./ftp/cats/I/99 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 2026-May-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/99 Brorfelde Meridian Catalogues 1964-1976 (Brorfelde Obs. 1968-1984)
*================================================================================
*Meridian Observations made in Brorfelde Copenhagen University Observatory
*1964-1967 Photographic
* Laustsen S.
* <Publ. Mindre Medd. Kbh. Obs. No. 197 (1968)>
*1967-1969 Photographic
* Fogh Olsen H.J.
* <Astron. Astrophys. Suppl., 9, 1 (1973)>
* =1973A&AS....9....1O
*1975-1976 Photographic
* Fogh Olsen H.J., Helmer V.
* <Astron. Astrophys. Suppl., 30, 349 (1977)>
* =1977A&AS...30..349O
*1969-1975 Photographic
* Helmer V., Fogh Olsen H.J.
* <Astron. Astrophys. Suppl., 49, 13 (1982)>
* =1982A&AS...49...13H
*1981-1982 Photoelectric
* Helmer L., Fabricius C., Einicke O.H., Thoburn C.
* <Astron. Astrophys. Suppl. 53, 223 (1983)>
* =1983A&AS...53..223H
*1982-1983 Photoelectric
* Helmer L., Fabricius C., Einicke O.H., Thoburn C., Morrison L.V.
* <Astron. Astrophys. Suppl. 55, 87 (1984)>
* =1984A&AS...55...87H
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'phtgrpc.dat' ! Brorfelde Photographic Meridian Catalogues
integer*4 nr__
parameter (nr__=10614) ! Number of records
character*96 ar__ ! Full-size record
C 1950.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension 1950.0
real*8 DEdeg ! (deg) Declination 1950.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 ID ! Internal number
character*7 BD ! BD designation
character*1 m_BD ! [ A-DPS] BD suffix
character*7 AGK3 ! AGK3 designation (Cat. <I/61>)
character*1 m_AGK3 ! [ MA] AGK3 suffix
integer*4 FK4 ! *? FK4 or NPZT number
integer*4 GC ! ? GC number
integer*4 Vmag ! (10-2mag) Approximate visual magnitude
character*2 Sp ! Spectral Type
integer*4 RAh ! (h) Right Ascension (1950.0) hours
integer*4 RAm ! (min) Right Ascension (1950.0) minutes
real*4 RAs ! (s) Right Ascension (1950.0) seconds
integer*4 o_RAs ! Number of observations in Right Ascension
real*4 EpRA_1900 ! (a) Epoch - 1900 for RA
integer*4 plxRA ! ?=0 Parallax factor in RA * 100
character*1 DE_ ! Declination (1950.0) sign
integer*4 DEd ! (deg) ? Declination (1950.0) degrees
integer*4 DEm ! (arcmin) ? Declination (1950.0) arcminutes
real*4 DEs ! (arcsec) ? Declination (1950.0) arcseconds
integer*4 o_DEs ! Number of observations in Declination
real*4 EpDE_1900 ! (a) ? Epoch - 1900 for Dec
integer*4 plxDE ! ?=0 Parallax factor in Dec * 100
character*8 ADS ! *ADS or BDS number
*Note on FK4:
* For FK4 no other reference is given.
*Note on ADS:
* 0 = neither ADS nor BDS number given
* AY = ABC
* AX = A'
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'phtelec.dat' ! Brorfelde Photoelectric Meridian Catalogues
integer*4 nr__1
parameter (nr__1=3163) ! Number of records
character*132 ar__1 ! Full-size record
C 1950.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension 1950.0
real*8 DEdeg_1 ! (deg) Declination 1950.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 cat ! *Catalogue identification
integer*4 ID1 ! Identification number within catalogue
integer*4 ID2 ! Internal identification
integer*4 RAh_1 ! (h) Right Ascension (1950.0) hours
integer*4 RAm_1 ! (min) Right Ascension (1950.0) minutes
real*4 RAs_1 ! (s) Right Ascension (1950.0) seconds
integer*4 o_RAs_1 ! Number of observations in RA
real*4 EpRA_1900_1 ! (a) Epoch of observation for RA
character*1 DE__1 ! Declination (1950.0) sign
integer*4 DEd_1 ! (deg) Declination (1950.0) degrees
integer*4 DEm_1 ! (arcmin) Declination (1950.0) arcminutes
real*4 DEs_1 ! (arcsec) Declination (1950.0) arcseconds
integer*4 o_DEs_1 ! Number of observations in Dec
real*4 EpDE_1900_1 ! (a) Epoch of observations in Dec
real*4 Vmag_1 ! (mag) Observed magnitude
integer*4 o_mag ! Number of observations in mag
character*2 Sp_1 ! Spectral type
character*8 DM ! Durchmusterung (BD, CD, CPD) designation
character*1 m_DM ! [ ABPS] Durchmusterung suffix
character*8 AGK3_1 ! AGK3 (Cat. <I/61>) designation
integer*4 SAO ! ? SAOC number
integer*4 HD ! ? HD number
character*6 GC_1 ! ? GC number
integer*4 FK4_1 ! ? FK4 or FK4 Sup number
character*1 n_FK4 ! [ *] * = program star
character*7 Gliese ! Gliese number (Cat. <V/70>)
integer*4 ADS_1 ! ? ADS (Aitken Double Star) number
character*3 m_ADS ! [ A-D] ADS suffix
*Note on cat:
* 001 = Helmer et al. =1983A&AS...53..223H
* 002 = Helmer at al. =1994A&AS...55...87H program stars
* 003 = Ibid. FK4 stars (no cross references are given)
C=============================================================================
C Loading file 'phtgrpc.dat' ! Brorfelde Photographic Meridian Catalogues
C Format for file interpretation
1 format(
+ I5,A7,A1,A7,A1,I4,I5,I4,A2,1X,I2,1X,I2,1X,F6.3,1X,I2,1X,F5.2,
+ 1X,I3,1X,A1,I2,1X,I2,1X,F5.2,1X,I2,1X,F5.2,I3,1X,A8)
C Effective file loading
open(unit=1,status='old',file=
+'phtgrpc.dat')
write(6,*) '....Loading file: phtgrpc.dat'
do i__=1,10614
read(1,'(A96)')ar__
read(ar__,1)
+ ID,BD,m_BD,AGK3,m_AGK3,FK4,GC,Vmag,Sp,RAh,RAm,RAs,o_RAs,
+ EpRA_1900,plxRA,DE_,DEd,DEm,DEs,o_DEs,EpDE_1900,plxDE,ADS
if(ar__(22:25) .EQ. '') FK4 = iNULL__
if(ar__(26:30) .EQ. '') GC = iNULL__
if(ar__(65:66) .EQ. '') DEd = iNULL__
if(ar__(68:69) .EQ. '') DEm = iNULL__
if(ar__(71:75) .EQ. '') DEs = rNULL__
if(ar__(80:84) .EQ. '') EpDE_1900 = 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)
+ ID,BD,m_BD,AGK3,m_AGK3,FK4,GC,Vmag,Sp,RAh,RAm,RAs,o_RAs,
+ EpRA_1900,plxRA,DE_,DEd,DEm,DEs,o_DEs,EpDE_1900,plxDE,ADS
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'phtelec.dat' ! Brorfelde Photoelectric Meridian Catalogues
C Format for file interpretation
2 format(
+ I3,2X,I4,3X,I8,1X,I2,I2,F6.3,1X,I2,1X,F5.2,1X,A1,I2,I2,F5.2,
+ 1X,I2,1X,F5.2,1X,F5.2,1X,I2,1X,A2,1X,A8,A1,A8,1X,I6,1X,I6,A6,
+ 1X,I4,A1,A7,I5,A3)
C Effective file loading
open(unit=1,status='old',file=
+'phtelec.dat')
write(6,*) '....Loading file: phtelec.dat'
do i__=1,3163
read(1,'(A132)')ar__1
read(ar__1,2)
+ cat,ID1,ID2,RAh_1,RAm_1,RAs_1,o_RAs_1,EpRA_1900_1,DE__1,DEd_1,
+ DEm_1,DEs_1,o_DEs_1,EpDE_1900_1,Vmag_1,o_mag,Sp_1,DM,m_DM,
+ AGK3_1,SAO,HD,GC_1,FK4_1,n_FK4,Gliese,ADS_1,m_ADS
if(ar__1(92:97) .EQ. '') SAO = iNULL__
if(ar__1(99:104) .EQ. '') HD = iNULL__
if(ar__1(112:115) .EQ. '') FK4_1 = iNULL__
if(ar__1(124:128) .EQ. '') ADS_1 = iNULL__
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)
+ cat,ID1,ID2,RAh_1,RAm_1,RAs_1,o_RAs_1,EpRA_1900_1,DE__1,DEd_1,
+ DEm_1,DEs_1,o_DEs_1,EpDE_1900_1,Vmag_1,o_mag,Sp_1,DM,m_DM,
+ AGK3_1,SAO,HD,GC_1,FK4_1,n_FK4,Gliese,ADS_1,m_ADS
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end