Conversion of standardized ReadMe file for
file /./ftp/cats/J/AcA/58/41 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.5, on 2013-May-26
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/AcA/58/41 ISM polarization towards NGC 1502 (Weitenbeck+, 2008)
*================================================================================
*ISM polarization towards NGC 1502.
* Weitenbeck A.J., Halstead E.A., Carver A.J.
* <Acta Astron. 58, 41 (2008)>
* =2008AcA....58...41W
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Stellar data
integer*4 nr__
parameter (nr__=28) ! Number of records
character*60 ar__ ! Full-size record
character*1 n_Name (nr__) ! [FC] F for field stars or C for Cluster stars
character*12 Name (nr__) ! Star name
real*4 Vmag (nr__) ! (mag) V magnitude (from Simbad)
real*4 B_V (nr__) ! (mag) ? B-V colour index (from Simbad)
character*12 SpType (nr__) ! MK Spectral type
integer*4 Ref (nr__) ! References (1)
integer*4 Dist (nr__) ! (pc) Distance (2)
character*10 OName (nr__) ! Other name
character*1 Note (nr__) ! [*] indicates a note in notes.dat file
*Note (1): References are numbered as follows:
* 1 = HPOL
* 2 = Abt and Cardona, 1983ApJ...272..182A
* 3 = Dombrovskii and Hagen-Thorn, 1964TrLen..20...75D
* 4 = Guetter, 1968PASP...80..197G
* 5 = Harris, 1976ApJS...30..451H
* 6 = Hoag and Applequist, 1965ApJS...12..215H
* 7 = Morgan, Code and Whitford, 1955ApJS....2...41M
* 8 = Henry Draper Catalog, Cat. <III/135>
* 9 = Lorenz et al., 1998A&A...332..909L
* 10 = Cowley et al., 1969AJ.....74..375C
* 11 = Lesh, 1968ApJS...17..371L, Cat. <III/23>
*Note (2): Distances for HD24479, HD24866, HD25427, and HD26138 are from
* Hipparcos parallaxes; the others are spectroscopic parallaxes.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Polarization data
integer*4 nr__1
parameter (nr__1=120) ! Number of records
character*58 ar__1 ! Full-size record
character*12 Name_1 (nr__1) ! Star name
character*2 Filter (nr__1) ! [UX BVRI] Filter (1)
real*8 Q (nr__1) ! (%) Stokes parameter Q
real*8 U (nr__1) ! (%) Stokes parameter U
real*4 e_Q (nr__1) ! (%) Error on Q and U
real*4 Pol (nr__1) ! (%) Percentage polarization
real*4 PA (nr__1) ! (deg) Position angle of polarisation
character*7 Obs (nr__1) ! Type of observation (ccd or Reticon)
*Note (1): Normalized standard Johnson-Cousins passbands, UX, B, V, R and I
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Derived Serkowski Law Parameters
integer*4 nr__2
parameter (nr__2=8) ! Number of records
character*64 ar__2 ! Full-size record
character*12 Name_2 (nr__2) ! Star name
character*7 Obs_1 (nr__2) ! Type of observation (ccd or Reticon)
real*4 PA_1 (nr__2) ! (deg) Position angle
real*4 e_PA (nr__2) ! (deg) rms uncertainty on PA
real*4 Pmax (nr__2) ! (%) Maximim percentage polarisation
real*4 e_Pmax (nr__2) ! (%) rms uncertainty on Pmax
integer*4 lam_max (nr__2) ! (0.1nm) Wavelength of Pmax
integer*4 e_lam_max (nr__2) ! (0.1nm) rms uncertainty on lam.max
real*4 K (nr__2) ! K parameter (1)
real*4 e_K (nr__2) ! rms uncertainty on K
*Note (1): where P_{lambda}/Pmax=exp[-K*ln^2^({lambda}_max_/{lambda})]
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'notes.dat' ! Individual notes
integer*4 nr__3
parameter (nr__3=87) ! Number of records
character*80 ar__3 ! Full-size record
character*12 Name_3 (nr__3) ! Star name
character*67 Note_1 (nr__3) ! Text of the note
C=============================================================================
C Loading file 'table1.dat' ! Stellar data
C Format for file interpretation
1 format(
+ A1,1X,A12,1X,F5.2,1X,F4.2,1X,A12,2X,I2,1X,I4,1X,A10,1X,A1)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,28
read(1,'(A60)')ar__
read(ar__,1)
+ n_Name(i__),Name(i__),Vmag(i__),B_V(i__),SpType(i__),Ref(i__),
+ Dist(i__),OName(i__),Note(i__)
if(ar__(22:25) .EQ. '') B_V(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ n_Name(i__),Name(i__),Vmag(i__),B_V(i__),SpType(i__),Ref(i__),
+ Dist(i__),OName(i__),Note(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Polarization data
C Format for file interpretation
2 format(A12,2X,A2,1X,F7.4,1X,F7.4,1X,F6.4,1X,F4.2,1X,F5.1,1X,A7)
C Effective file loading
open(unit=1,file='table2.dat', status='old')
write(6,*) '....Loading file: table2.dat'
do i__=1,120
read(1,'(A58)')ar__1
read(ar__1,2)
+ Name_1(i__),Filter(i__),Q(i__),U(i__),e_Q(i__),Pol(i__),
+ PA(i__),Obs(i__)
c ..............Just test output...........
write(6,2)
+ Name_1(i__),Filter(i__),Q(i__),U(i__),e_Q(i__),Pol(i__),
+ PA(i__),Obs(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Derived Serkowski Law Parameters
C Format for file interpretation
3 format(
+ A12,1X,A7,1X,F6.2,1X,F3.2,1X,F5.3,1X,F4.3,2X,I4,1X,I3,2X,F5.3,
+ 1X,F4.3)
C Effective file loading
open(unit=1,file='table3.dat', status='old')
write(6,*) '....Loading file: table3.dat'
do i__=1,8
read(1,'(A64)')ar__2
read(ar__2,3)
+ Name_2(i__),Obs_1(i__),PA_1(i__),e_PA(i__),Pmax(i__),
+ e_Pmax(i__),lam_max(i__),e_lam_max(i__),K(i__),e_K(i__)
c ..............Just test output...........
write(6,3)
+ Name_2(i__),Obs_1(i__),PA_1(i__),e_PA(i__),Pmax(i__),
+ e_Pmax(i__),lam_max(i__),e_lam_max(i__),K(i__),e_K(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'notes.dat' ! Individual notes
C Format for file interpretation
4 format(A12,1X,A67)
C Effective file loading
open(unit=1,file='notes.dat', status='old')
write(6,*) '....Loading file: notes.dat'
do i__=1,87
read(1,'(A80)')ar__3
read(ar__3,4)Name_3(i__),Note_1(i__)
c ..............Just test output...........
write(6,4)Name_3(i__),Note_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end