Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/602/A100 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-Oct-05
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/602/A100 Merging groups and clusters from the SDSS data (Tempel+, 2017)
*================================================================================
*Merging groups and clusters of galaxies from the SDSS data.
*The catalogue of groups and potentially merging systems.
* Tempel E., Tuvikene T., Kipper R., Libeskind N.I.
* <Astron. Astrophys. 602, A100 (2017)>
* =2017A&A...602A.100T (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Catalog of galaxies
integer*4 nr__
parameter (nr__=584449) ! Number of records
character*659 ar__ ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 GalID ! [1/584449] Unique galaxy identification
integer*8 specID ! ?=0 SDSS DR10 spectroscopic objectID
* (0=missing)
integer*8 objID ! SDSS DR10 photometric objectID
integer*4 GroupID ! [0/88662] Group/cluster id
* (0=isolated galaxy)
integer*4 Ngal ! [1/254] Richness of group galaxy belongs
integer*4 Rank ! [1/254] Luminosity rank within its group
real*8 Dist_g ! (Mpc) Comoving distance to group centre (G1)
real*8 zobs ! [-0.01/0.21] Observed redshift
real*8 zcmb ! [0/0.2] Redshift (CMB rest frame)
real*8 e_zobs ! Uncertainty of the redshift
real*8 Dist ! (Mpc) Comoving distance (G1)
real*8 Distcor ! (Mpc) Comoving distance, after suppressing the
* "finger-of-god" effect (G1)
real*8 RAdeg ! (deg) Right ascension (J2000)
real*8 DEdeg ! (deg) Declination (J2000)
real*8 GLON ! (deg) Galactic longitude
real*8 GLAT ! (deg) Galactic latitude
real*8 SGLON ! (deg) Supergalactic longitude
real*8 SGLAT ! (deg) Supergalactic latitude
real*8 lambda ! (deg) SDSS survey coordinate, {lambda}
real*8 eta ! (deg) SDSS survey coordinate, {eta}
real*8 Xpos ! (Mpc) Cartesian x coordinate (G1)
real*8 Ypos ! (Mpc) Cartesian y coordinate (G1)
real*8 Zpos ! (Mpc) Cartesian z coordinate (G1)
real*8 umag ! (mag) Extinction corrected Petrosian u magnitude
real*8 gmag ! (mag) Extinction corrected Petrosian g magnitude
real*8 rmag ! (mag) Extinction corrected Petrosian r magnitude
real*8 imag ! (mag) Extinction corrected Petrosian i magnitude
real*8 zmag ! (mag) Extinction corrected Petrosian z magnitude
real*8 uMAG_1 ! (mag) Absolute magnitude u-band, k+e-corrected (G1)
real*8 gMAG_1 ! (mag) Absolute magnitude g-band, k+e-corrected (G1)
real*8 rMAG_1 ! (mag) Absolute magnitude r-band, k+e-corrected (G1)
real*8 iMAG_1 ! (mag) Absolute magnitude i-band, k+e-corrected (G1)
real*8 zMAG_1 ! (mag) Absolute magnitude z-band, k+e-corrected (G1)
real*8 k_e_u ! (mag) k+e-correction (u filter)
real*8 k_e_g ! (mag) k+e-correction (g filter)
real*8 k_e_r ! (mag) k+e-correction (r filter)
real*8 k_e_i ! (mag) k+e-correction (i filter)
real*8 k_e_z ! (mag) k+e-correction (z filter)
real*8 ext_u ! (mag) Galactic extinction (u filter)
real*8 ext_g ! (mag) Galactic extinction (g filter)
real*8 ext_r ! (mag) Galactic extinction (r filter)
real*8 ext_i ! (mag) Galactic extinction (i filter)
real*8 ext_z ! (mag) Galactic extinction (z filter)
real*4 Lr ! (10+10Lsun) Observed luminosity in the r-band (G1)
real*8 w ! [1/9.1] Weight factor for the galaxy (1)
real*8 pE ! [0/1] Probability of early-type (2)
real*8 pS0 ! [0/1] Probability of S0 galaxy
real*8 pSa ! [0/1] Probability of Sab galaxy
real*8 pSc ! [0/1] Probability of Scd galaxy
real*8 Dist_e ! (Mpc) Distance from survey mask border (G1)
real*8 Den1 ! Environmental density at scale=1.5Mpc (G2)
real*8 Den2 ! Environmental density at scale=3Mpc (G2)
real*8 Den4 ! Environmental density at scale=6Mpc (G2)
real*8 Den8 ! Environmental density at scale=10Mpc (G2)
*Note (1): times Lr was used to calculate the luminosity density field
*Note (2): Data is taken from Huertas-Company et al., 2011, Cat. J/A+A/525/A157.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Catalog of galaxy groups
integer*4 nr__1
parameter (nr__1=88662) ! Number of records
character*295 ar__1 ! Full-size record
C J2000 position composed of: RAdeg DEdeg
integer*4 GroupID_1 ! [1/88662] Group/cluster ID
integer*4 Ngal_1 ! [2/254] Richness
real*8 RAdeg_1 ! (deg) Right ascension (J2000)
real*8 DEdeg_1 ! (deg) Declination (J2000)
real*8 lambda_1 ! (deg) SDSS survey coordinate, {lambda}
real*8 eta_1 ! (deg) SDSS survey coordinate, {eta}
real*8 Xpos_1 ! (Mpc) Cartesian x coordinate (G1)
real*8 Ypos_1 ! (Mpc) Cartesian y coordinate (G1)
real*8 Zpos_1 ! (Mpc) Cartesian z coordinate (G1)
real*8 zcmb_1 ! [0/0.2] Redshift (CMB rest frame)
real*8 Dist_c ! (Mpc) Comoving distance to group center (G1)
real*8 sig_v ! (km/s) rms radial velocity deviation {sigma}_V_
real*8 sig_sky ! (Mpc) rms deviation of the distance in plane of
* sky from group center {sigma}_sky_ (G1)
real*8 Rmax ! (Mpc) Maximum radius of the group (G1)
real*4 M200 ! (10+12Msun) Estimated mass of the NFW profile group
real*4 R200 ! (Mpc) Radius, where mean density is 200 the
* Universe average density
real*4 Lrgroup ! (10+10Lsun) Observed luminosity (G1)
real*8 w_1 ! [1/9.1] Weight factor for the group
real*8 Den1_1 ! Environment density: 1.5Mpc (G2)
real*8 Den2_1 ! Environment density: 3Mpc (G2)
real*8 Den4_1 ! Environment density: 6Mpc (G2)
real*8 Den8_1 ! Environment density: 10Mpc (G2)
real*8 DnearestCl ! (Mpc) Distance to the nearest cluster
integer*4 IDnearestCl ! ID of the nearest cluster
integer*4 IDmerger ! ID of the group in merger catalog
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Catalog of merging systems
integer*4 nr__2
parameter (nr__2=498) ! Number of records
character*50 ar__2 ! Full-size record
integer*4 ID ! Merging system ID
integer*4 N ! Number of mergers in the system
integer*4 IDgr1 ! The 1st ID of the merging group
integer*4 IDgr2 ! The 2nd ID of the merging group
integer*4 IDgr3 ! The 3rd ID of the merging group
integer*4 IDgr4 ! The 4th ID of the merging group
integer*4 IDgr5 ! The 5th ID of the merging group
integer*4 IDgr6 ! The 6th ID of the merging group
C=============================================================================
C Loading file 'table1.dat' ! Catalog of galaxies
C Format for file interpretation
1 format(
+ I6,1X,I19,1X,I19,1X,I6,3X,I3,3X,I3,1X,F10.6,1X,F12.9,1X,F12.9,
+ 1X,F12.9,1X,F10.6,1X,F10.6,1X,F14.9,1X,F14.9,1X,F14.9,1X,
+ F14.9,1X,F14.9,1X,F14.9,1X,F14.9,1X,F14.9,1X,F11.6,1X,F11.6,
+ 1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,
+ F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,
+ 1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,F11.6,1X,
+ F11.6,1X,F11.6,2X,E11.6,1X,F9.6,1X,F8.5,1X,F8.5,1X,F8.5,1X,
+ F8.5,1X,F10.6,1X,F13.8,1X,F13.8,1X,F13.8,1X,F13.8)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,584449
read(1,'(A659)')ar__
read(ar__,1)
+ GalID,specID,objID,GroupID,Ngal,Rank,Dist_g,zobs,zcmb,e_zobs,
+ Dist,Distcor,RAdeg,DEdeg,GLON,GLAT,SGLON,SGLAT,lambda,eta,
+ Xpos,Ypos,Zpos,umag,gmag,rmag,imag,zmag,uMAG_1,gMAG_1,rMAG_1,
+ iMAG_1,zMAG_1,k_e_u,k_e_g,k_e_r,k_e_i,k_e_z,ext_u,ext_g,ext_r,
+ ext_i,ext_z,Lr,w,pE,pS0,pSa,pSc,Dist_e,Den1,Den2,Den4,Den8
c ..............Just test output...........
write(6,1)
+ GalID,specID,objID,GroupID,Ngal,Rank,Dist_g,zobs,zcmb,e_zobs,
+ Dist,Distcor,RAdeg,DEdeg,GLON,GLAT,SGLON,SGLAT,lambda,eta,
+ Xpos,Ypos,Zpos,umag,gmag,rmag,imag,zmag,uMAG_1,gMAG_1,rMAG_1,
+ iMAG_1,zMAG_1,k_e_u,k_e_g,k_e_r,k_e_i,k_e_z,ext_u,ext_g,ext_r,
+ ext_i,ext_z,Lr,w,pE,pS0,pSa,pSc,Dist_e,Den1,Den2,Den4,Den8
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Catalog of galaxy groups
C Format for file interpretation
2 format(
+ I6,1X,I5,1X,F14.9,1X,F14.9,1X,F14.9,1X,F14.9,1X,F11.6,1X,
+ F11.6,1X,F11.6,1X,F11.8,1X,F10.6,1X,F12.6,1X,F10.6,1X,F10.6,
+ 1X,E12.5,1X,E12.5,1X,E12.5,1X,F10.6,1X,F13.8,1X,F13.8,1X,
+ F13.8,1X,F13.8,1X,F10.6,1X,I6,1X,I4)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,88662
read(1,'(A295)')ar__1
read(ar__1,2)
+ GroupID_1,Ngal_1,RAdeg_1,DEdeg_1,lambda_1,eta_1,Xpos_1,Ypos_1,
+ Zpos_1,zcmb_1,Dist_c,sig_v,sig_sky,Rmax,M200,R200,Lrgroup,w_1,
+ Den1_1,Den2_1,Den4_1,Den8_1,DnearestCl,IDnearestCl,IDmerger
c ..............Just test output...........
write(6,2)
+ GroupID_1,Ngal_1,RAdeg_1,DEdeg_1,lambda_1,eta_1,Xpos_1,Ypos_1,
+ Zpos_1,zcmb_1,Dist_c,sig_v,sig_sky,Rmax,M200,R200,Lrgroup,w_1,
+ Den1_1,Den2_1,Den4_1,Den8_1,DnearestCl,IDnearestCl,IDmerger
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Catalog of merging systems
C Format for file interpretation
3 format(I5,1X,I2,1X,I6,1X,I6,1X,I6,1X,I6,1X,I6,1X,I6)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,498
read(1,'(A50)')ar__2
read(ar__2,3)ID,N,IDgr1,IDgr2,IDgr3,IDgr4,IDgr5,IDgr6
c ..............Just test output...........
write(6,3)ID,N,IDgr1,IDgr2,IDgr3,IDgr4,IDgr5,IDgr6
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end