Conversion of standardized ReadMe file for
file /./ftp/cats/I/99 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.
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 (nr__) ! (deg) Right Ascension 1950.0
real*8 DEdeg (nr__) ! (deg) Declination 1950.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 ID (nr__) ! Internal number
character*7 BD (nr__) ! BD designation
character*1 m_BD (nr__) ! [ A-DPS] BD suffix
character*7 AGK3 (nr__) ! AGK3 designation (Cat. <I/61>)
character*1 m_AGK3 (nr__) ! [ MA] AGK3 suffix
integer*4 FK4 (nr__) ! *? FK4 or NPZT number
integer*4 GC (nr__) ! ? GC number
integer*4 Vmag (nr__) ! (10-2mag) Approximate visual magnitude
character*2 Sp (nr__) ! Spectral Type
integer*4 RAh (nr__) ! (h) Right Ascension (1950.0) hours
integer*4 RAm (nr__) ! (min) Right Ascension (1950.0) minutes
real*4 RAs (nr__) ! (s) Right Ascension (1950.0) seconds
integer*4 o_RAs (nr__) ! Number of observations in Right Ascension
real*4 EpRA_1900 (nr__) ! (a) Epoch - 1900 for RA
integer*4 plxRA (nr__) ! ?=0 Parallax factor in RA * 100
character*1 DE_ (nr__) ! Declination (1950.0) sign
integer*4 DEd (nr__) ! (deg) ? Declination (1950.0) degrees
integer*4 DEm (nr__) ! (arcmin) ? Declination (1950.0) arcminutes
real*4 DEs (nr__) ! (arcsec) ? Declination (1950.0) arcseconds
integer*4 o_DEs (nr__) ! Number of observations in Declination
real*4 EpDE_1900 (nr__) ! (a) ? Epoch - 1900 for Dec
integer*4 plxDE (nr__) ! ?=0 Parallax factor in Dec * 100
character*8 ADS (nr__) ! *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 (nr__1) ! (deg) Right Ascension 1950.0
real*8 DEdeg_1 (nr__1) ! (deg) Declination 1950.0
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 cat (nr__1) ! *Catalogue identification
integer*4 ID1 (nr__1) ! Identification number within catalogue
integer*4 ID2 (nr__1) ! Internal identification
integer*4 RAh_1 (nr__1) ! (h) Right Ascension (1950.0) hours
integer*4 RAm_1 (nr__1) ! (min) Right Ascension (1950.0) minutes
real*4 RAs_1 (nr__1) ! (s) Right Ascension (1950.0) seconds
integer*4 o_RAs_1 (nr__1) ! Number of observations in RA
real*4 EpRA_1900_1(nr__1) ! (a) Epoch of observation for RA
character*1 DE__1 (nr__1) ! Declination (1950.0) sign
integer*4 DEd_1 (nr__1) ! (deg) Declination (1950.0) degrees
integer*4 DEm_1 (nr__1) ! (arcmin) Declination (1950.0) arcminutes
real*4 DEs_1 (nr__1) ! (arcsec) Declination (1950.0) arcseconds
integer*4 o_DEs_1 (nr__1) ! Number of observations in Dec
real*4 EpDE_1900_1(nr__1) ! (a) Epoch of observations in Dec
real*4 Vmag_1 (nr__1) ! (mag) Observed magnitude
integer*4 o_mag (nr__1) ! Number of observations in mag
character*2 Sp_1 (nr__1) ! Spectral type
character*8 DM (nr__1) ! Durchmusterung (BD, CD, CPD) designation
character*1 m_DM (nr__1) ! [ ABPS] Durchmusterung suffix
character*8 AGK3_1 (nr__1) ! AGK3 (Cat. <I/61>) designation
integer*4 SAO (nr__1) ! ? SAOC number
integer*4 HD (nr__1) ! ? HD number
character*6 GC_1 (nr__1) ! ? GC number
integer*4 FK4_1 (nr__1) ! ? FK4 or FK4 Sup number
character*1 n_FK4 (nr__1) ! [ *] * = program star
character*7 Gliese (nr__1) ! Gliese number (Cat. <V/70>)
integer*4 ADS_1 (nr__1) ! ? ADS (Aitken Double Star) number
character*3 m_ADS (nr__1) ! [ 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(i__),BD(i__),m_BD(i__),AGK3(i__),m_AGK3(i__),FK4(i__),
+ GC(i__),Vmag(i__),Sp(i__),RAh(i__),RAm(i__),RAs(i__),
+ o_RAs(i__),EpRA_1900(i__),plxRA(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),o_DEs(i__),EpDE_1900(i__),plxDE(i__),
+ ADS(i__)
if(ar__(22:25) .EQ. '') FK4(i__) = iNULL__
if(ar__(26:30) .EQ. '') GC(i__) = iNULL__
if(ar__(65:66) .EQ. '') DEd(i__) = iNULL__
if(ar__(68:69) .EQ. '') DEm(i__) = iNULL__
if(ar__(71:75) .EQ. '') DEs(i__) = rNULL__
if(ar__(80:84) .EQ. '') EpDE_1900(i__) = rNULL__
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(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,1)
+ ID(i__),BD(i__),m_BD(i__),AGK3(i__),m_AGK3(i__),FK4(i__),
+ GC(i__),Vmag(i__),Sp(i__),RAh(i__),RAm(i__),RAs(i__),
+ o_RAs(i__),EpRA_1900(i__),plxRA(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__),o_DEs(i__),EpDE_1900(i__),plxDE(i__),
+ ADS(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),ID1(i__),ID2(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
+ o_RAs_1(i__),EpRA_1900_1(i__),DE__1(i__),DEd_1(i__),
+ DEm_1(i__),DEs_1(i__),o_DEs_1(i__),EpDE_1900_1(i__),
+ Vmag_1(i__),o_mag(i__),Sp_1(i__),DM(i__),m_DM(i__),
+ AGK3_1(i__),SAO(i__),HD(i__),GC_1(i__),FK4_1(i__),n_FK4(i__),
+ Gliese(i__),ADS_1(i__),m_ADS(i__)
if(ar__1(92:97) .EQ. '') SAO(i__) = iNULL__
if(ar__1(99:104) .EQ. '') HD(i__) = iNULL__
if(ar__1(112:115) .EQ. '') FK4_1(i__) = iNULL__
if(ar__1(124:128) .EQ. '') ADS_1(i__) = iNULL__
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,2)
+ cat(i__),ID1(i__),ID2(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
+ o_RAs_1(i__),EpRA_1900_1(i__),DE__1(i__),DEd_1(i__),
+ DEm_1(i__),DEs_1(i__),o_DEs_1(i__),EpDE_1900_1(i__),
+ Vmag_1(i__),o_mag(i__),Sp_1(i__),DM(i__),m_DM(i__),
+ AGK3_1(i__),SAO(i__),HD(i__),GC_1(i__),FK4_1(i__),n_FK4(i__),
+ Gliese(i__),ADS_1(i__),m_ADS(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end