Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/409/361 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-Sep-09
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. J/A+A/409/361 Extension of ICRF for selected areas down to V=16 (Camargo+, 2003)
*================================================================================
*Extension of the ICRF for selected areas down to the 16th magnitude - II.
* Camargo J.I.B., Ducourant C., Teixeira R., Le Campion J.-F., Rapaport M.,
* Benevides-Soares P.
* <Astron. Astrophys. 409, 361 (2003)>
* =2003A&A...409..361C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'catalog.dat' ! Bordeaux and Valinhos meridian circle catalogue
integer*4 nr__
parameter (nr__=546459) ! Number of records
character*172 ar__ ! Full-size record
C Position composed of: RAh RAm RAs DE- DEd DEm DEs
integer*4 RAh (nr__) ! (h) Right Ascension (hours) ICRS, epoch EpRA-1900
integer*4 RAm (nr__) ! (min) Right Ascension (minutes) ICRS
real*4 RAs (nr__) ! (s) Right Ascension (seconds) ICRS
character*1 DE_ (nr__) ! Declination (sign) ICRS, epoch EpDE-1900
integer*4 DEd (nr__) ! (deg) Declination (degrees) ICRS, epoch EpDE-1900
integer*4 DEm (nr__) ! (arcmin) Declination (minutes) ICRS
real*4 DEs (nr__) ! (arcsec) Declination (seconds) ICRS
integer*4 pmRA (nr__) ! (mas/yr) Proper motion mu_alpha*cos(dec) ICRS
integer*4 pmDE (nr__) ! (mas/yr) Proper motion mu_delta ICRS
real*4 VmagC (nr__) ! (mag) V magnitude as obtained from BMC (Bordeaux)
* or VMC (Valinhos)
real*8 BTmag (nr__) ! (mag) ? B magnitude as obtained from the Tycho-2
real*8 VTmag (nr__) ! (mag) ? V magnitude as obtained from the Tycho-2
real*8 Jmag (nr__) ! (mag) ?=-99.999 J magnitude from the 2MASS (1)
real*8 Hmag (nr__) ! (mag) ?=-99.999 H magnitude from the 2MASS (1)
real*8 Kmag (nr__) ! (mag) ?=-99.999 K magnitude from the 2MASS (1)
real*4 EpRA_1900 (nr__) ! (yr) RA epoch minus 1900
real*4 EpDE_1900 (nr__) ! (yr) DE epoch minus 1900
real*8 DT (nr__) ! (yr) Largest time interval for proper motion
* determination
integer*4 e_RAs (nr__) ! (mas) Standard error in RA*cos(dec) for EpRA
integer*4 e_DEs (nr__) ! (mas) Standard error in DE for EpDE
integer*4 e_pmRA (nr__) ! (mas/yr) Standard error in pmRA
integer*4 e_pmDE (nr__) ! (mas/yr) Standard error in pmDE
integer*4 Nobs (nr__) ! Number of meridian observations
integer*4 HIP (nr__) ! ? HIPPARCOS (Cat. <I/239>) Catalogue number
character*12 TYC (nr__) ! ? Tycho-2 number (see Note (1) in <I/259>)
character*1 f_TYC (nr__) ! [*] Presence in Tycho-1 catalogue (2)
integer*4 AC2000_2 (nr__) ! ? AC2000.2 (Cat. <I/275>) number
character*1 C1 (nr__) ! [BV] Current epoch catalogue:
* [B]ordeaux or [V]alinhos (3)
character*1 C2 (nr__) ! [A] A: use of AC2000.2 data, Cat. <I/275>
character*1 C3 (nr__) ! [U] U: use of USNO-A2.0 data, Cat. <I/252>
character*1 C4 (nr__) ! [P] P: use of PPM data,
* PPM North <I/146>, PPN South <I/1993>
character*1 C5 (nr__) ! [T] T: use of TAC-2 data, Zacharias &
* Zacharias, 1999AJ....118.2503Z
character*1 C6 (nr__) ! [C] C: use of CPC-2 data, Cat. <I/265>
character*1 C7 (nr__) ! [E] ESO plate measurements (4)
*Note (1): 2MASS 2nd Incremental Data Release
*Note (2): Presence in Tycho-1 catalogue:
* '*' = Object not present in Tycho-1 catalogue (Cat. <I/239>)
* ' ' = Object present in Tycho-1 catalogue
*Note (3): Example:
* The character sequence "V U E" indicates that proper motion and mean
* position for a given star was obtained from the Valinhos meridian
* circle, USNO-A2.0 and ESO plates
*Note (4): Measured with the MAMA measuring machine
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Approximate central coordinates of the meridian
strips
integer*4 nr__1
parameter (nr__1=242) ! Number of records
character*81 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*1 Zone (nr__1) ! [VB] V: Valinhos zones, B: Bordeaux zones
character*21 TARG (nr__1) ! ICRF name or other identifier of the target object
integer*4 Nobj (nr__1) ! Total number of selected objects in the region: 3 or
* more observations in each coordinate with
* {sigma}RA*cos(DE) and {sigma}DE<=250mas
integer*4 DaCd (nr__1) ! (mas) Mean, in units of milliarcseconds in RA*cos(DE),
* for the positional precision in RA of the objects
* computed in the column (Nobj)
integer*4 Dd (nr__1) ! (mas) Mean, in units of milliarcseconds, for the
* positional precision in DE for the objects computed
* in the column (Nobj)
integer*4 RAh_1 (nr__1) ! (h) Approximate strip central right ascension (J2000) (5)
integer*4 RAm_1 (nr__1) ! (min) Approximate strip central right ascension (J2000) (5)
real*4 RAs_1 (nr__1) ! (s) Approximate strip central right ascension (J2000) (5)
character*1 DE__1 (nr__1) ! Approximate strip central declination (J2000) (5)
integer*4 DEd_1 (nr__1) ! (deg) Approximate strip central declination (J2000) (5)
integer*4 DEm_1 (nr__1) ! (arcmin) Approximate strip central declination (J2000) (5)
integer*4 DEs_1 (nr__1) ! (arcsec) Approximate strip central declination (J2000) (5)
real*4 Vmag (nr__1) ! (mag) ? V magnitude as given in the ICRF (Cat. <I/251>)
integer*4 Nobs_1 (nr__1) ! ? Number of observations of the target region
*Note (5): Zones dimensions are typically 28' in declination and 80min in
* right ascension to the Bordeaux meridian circle strips and 13' in
* declination and 40min in right ascension to the Valinhos meridian
* circle strips.
C=============================================================================
C Loading file 'catalog.dat' ! Bordeaux and Valinhos meridian circle catalogue
C Format for file interpretation
1 format(
+ I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,I4,1X,I4,2X,F5.2,
+ 2X,F7.3,F7.3,1X,F7.3,1X,F7.3,1X,F7.3,4X,F6.3,3X,F6.3,2X,F7.3,
+ 3X,I2,2X,I2,1X,I2,1X,I2,4X,I2,2X,I6,1X,A12,A1,4X,I7,1X,A1,A1,
+ A1,A1,A1,A1,A1)
C Effective file loading
open(unit=1,status='old',file=
+'catalog.dat')
write(6,*) '....Loading file: catalog.dat'
do i__=1,546459
read(1,'(A172)')ar__
read(ar__,1)
+ RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
+ DEs(i__),pmRA(i__),pmDE(i__),VmagC(i__),BTmag(i__),VTmag(i__),
+ Jmag(i__),Hmag(i__),Kmag(i__),EpRA_1900(i__),EpDE_1900(i__),
+ DT(i__),e_RAs(i__),e_DEs(i__),e_pmRA(i__),e_pmDE(i__),
+ Nobs(i__),HIP(i__),TYC(i__),f_TYC(i__),AC2000_2(i__),C1(i__),
+ C2(i__),C3(i__),C4(i__),C5(i__),C6(i__),C7(i__)
if(ar__(45:51) .EQ. '') BTmag(i__) = rNULL__
if(ar__(52:58) .EQ. '') VTmag(i__) = rNULL__
if(ar__(134:139) .EQ. '') HIP(i__) = iNULL__
if(ar__(158:164) .EQ. '') AC2000_2(i__) = iNULL__
c ..............Just test output...........
write(6,1)
+ RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
+ DEs(i__),pmRA(i__),pmDE(i__),VmagC(i__),BTmag(i__),VTmag(i__),
+ Jmag(i__),Hmag(i__),Kmag(i__),EpRA_1900(i__),EpDE_1900(i__),
+ DT(i__),e_RAs(i__),e_DEs(i__),e_pmRA(i__),e_pmDE(i__),
+ Nobs(i__),HIP(i__),TYC(i__),f_TYC(i__),AC2000_2(i__),C1(i__),
+ C2(i__),C3(i__),C4(i__),C5(i__),C6(i__),C7(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table1.dat' ! Approximate central coordinates of the meridian
* strips
C Format for file interpretation
2 format(
+ A1,1X,A21,4X,I5,3X,I3,1X,I3,3X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,
+ I2,1X,I2,6X,F4.1,3X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,242
read(1,'(A81)')ar__1
read(ar__1,2)
+ Zone(i__),TARG(i__),Nobj(i__),DaCd(i__),Dd(i__),RAh_1(i__),
+ RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),
+ DEs_1(i__),Vmag(i__),Nobs_1(i__)
if(ar__1(72:75) .EQ. '') Vmag(i__) = rNULL__
if(ar__1(79:80) .EQ. '') Nobs_1(i__) = iNULL__
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_1(i__) .GT. -180) RAdeg(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,2)
+ Zone(i__),TARG(i__),Nobj(i__),DaCd(i__),Dd(i__),RAh_1(i__),
+ RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),
+ DEs_1(i__),Vmag(i__),Nobs_1(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end