Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/608/A148 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 2024-Apr-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. J/A+A/608/A148 Stellar populations towards Orion with Gaia DR1 (Zari+, 2017) *================================================================================ *Mapping young stellar populations towards Orion with Gaia DR1. * Zari E., Brown A.G.A., de Bruijne J., Manara C.F., de Zeeuw P.T. * <Astron. Astrophys. 608, A148 (2017)> * =2017A&A...608A.148Z (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'origaia.dat' ! Gaia DR1 sources in the Orion field integer*4 nr__ parameter (nr__=9926756) ! Number of records character*156 ar__ ! Full-size record C Position composed of: RAdeg DEdeg (Epoch=2015.0) integer*8 Source (nr__) ! Source ID (source_id) real*8 RAdeg (nr__) ! (deg) Gaia right ascension (ICRS) at epoch 2015.0 (ra) real*8 DEdeg (nr__) ! (deg) Gaia declination (ICRS) at epoch 2015.0 (dec) real*8 GLON (nr__) ! (deg) Gaia Galactic longitude at epoch 2015.0 (l) real*8 GLAT (nr__) ! (deg) Gaia Galactic latitude at epoch 2015.0 (b) real*4 v_Gmag_ (nr__) ! (mag) Gaia G-band mean magnitude (phot_g_mean_mag) real*4 v_FG_ (nr__) ! (e-/s) Gaia G-band mean flux (phot_g_mean_flux) real*4 e__FG_ (nr__) ! (e-/s) Error on G-band mean flux * (phot_g_mean_flux_error) real*8 pmRA (nr__) ! (mas/yr) ?=- Gaia proper motion in right ascension * direction (pmra) real*8 pmDE (nr__) ! (mas/yr) ?=- Gaia proper motion in declination direction * (pmdec) real*4 Plx (nr__) ! (mas) ?=- Gaia Absolute barycentric stellar parallax * (parallax) real*4 e_pmRA (nr__) ! (mas/yr) ?=- Standard error of pmRA (pmra_error) real*4 e_pmDE (nr__) ! (mas/yr) ?=- Standard error of pmDE (pmdec_error) real*4 e_Plx (nr__) ! (mas) ?=- Standard error of Plx (parallax_error) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'x2mass.dat' ! Gaia DR1 sources cross-matched with the 2MASS catalogue, with separation < 1" integer*4 nr__1 parameter (nr__1=5059068) ! Number of records character*124 ar__1 ! Full-size record C Position composed of: GLON GLAT (Epoch=2015.0) integer*8 Source_1 (nr__1) ! Gaia Source ID (source_id) real*8 GLON_1 (nr__1) ! (deg) Gaia Galactic longitude at epoch 2015.0 (l) real*8 GLAT_1 (nr__1) ! (deg) Gaia Galactic latitude at epoch 2015.0 (b) real*4 v_Gmag__1 (nr__1) ! (mag) Gaia G-band mean magnitude (phot_g_mean_mag) real*4 e__FG__1 (nr__1) ! (e-/s) Error on G-band mean flux * (phot_g_mean_flux_error) real*4 v_FG__1 (nr__1) ! (e-/s) Gaia G-band mean flux (phot_g_mean_flux) real*4 Jmag (nr__1) ! (mag) 2MASS J magnitude (j_m) real*4 e_Jmag (nr__1) ! (mag) ? Error on Jmag (j_msigcom) real*4 Hmag (nr__1) ! (mag) ? 2MASS H magnitude (h_m) real*4 e_Hmag (nr__1) ! (mag) ? Error on Hmag (h_msigcom) real*8 Ksmag (nr__1) ! (mag) ? 2MASS Ks magnitude (ks_m) real*4 e_Ksmag (nr__1) ! (mag) ? Error on Ksmag (ks_msigcom) character*3 Qual (nr__1) ! 2MASS quality flags (ph_qual) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'oritgas.dat' ! TGAS sources in the Orion field integer*4 nr__2 parameter (nr__2=34829) ! Number of records character*162 ar__2 ! Full-size record C Position composed of: RAdeg DEdeg (Epoch=2015.0) integer*4 HIP (nr__2) ! ?=- HIP number (hip) integer*8 Source_2 (nr__2) ! Gaia Source ID (source_id) real*8 RAdeg_1 (nr__2) ! (deg) Gaia right ascension (ICRS) at epoch 2015.0 (ra) real*8 DEdeg_1 (nr__2) ! (deg) Gaia declination (ICRS) at epoch 2015.0 (dec) real*8 GLON_2 (nr__2) ! (deg) Gaia Galactic longitude at epoch 2015.0 (l) real*8 GLAT_2 (nr__2) ! (deg) Gaia Galactic latitude at epoch 2015.0 (b) real*4 v_Gmag__2 (nr__2) ! (mag) Gaia G-band mean magnitude (phot_g_mean_mag) real*4 v_FG__2 (nr__2) ! (e-/s) Gaia G-band mean flux (phot_g_mean_flux) real*4 e__FG__2 (nr__2) ! (e-/s) Error on G-band mean flux * (phot_g_mean_flux_error) real*8 pmRA_1 (nr__2) ! (mas/yr) Gaia proper motion in right ascension direction * (pmra) real*8 pmDE_1 (nr__2) ! (mas/yr) Gaia proper motion in declination direction * (pmdec) real*4 Plx_1 (nr__2) ! (mas) Gaia Absolute barycentric stellar parallax * (parallax) real*4 e_pmRA_1 (nr__2) ! (mas/yr) Standard error of pmRA (pmra_error) real*4 e_pmDE_1 (nr__2) ! (mas/yr) Standard error of pmDE (pmdec_error) real*4 e_Plx_1 (nr__2) ! (mas) Standard error of Plx (parallax_error) C============================================================================= C Loading file 'origaia.dat' ! Gaia DR1 sources in the Orion field C Format for file interpretation 1 format( + I19,1X,F14.10,1X,F14.10,1X,F14.10,1X,F14.10,1X,F6.3,1X,E11.5, + 1X,E11.5,1X,F9.3,1X,F9.3,1X,F6.2,1X,F6.3,1X,F6.3,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'origaia.dat') write(6,*) '....Loading file: origaia.dat' do i__=1,9926756 read(1,'(A156)')ar__ read(ar__,1) + Source(i__),RAdeg(i__),DEdeg(i__),GLON(i__),GLAT(i__), + v_Gmag_(i__),v_FG_(i__),e__FG_(i__),pmRA(i__),pmDE(i__), + Plx(i__),e_pmRA(i__),e_pmDE(i__),e_Plx(i__) if (idig(ar__(112:120)).EQ.0) pmRA(i__) = rNULL__ if (idig(ar__(122:130)).EQ.0) pmDE(i__) = rNULL__ if (idig(ar__(132:137)).EQ.0) Plx(i__) = rNULL__ if (idig(ar__(139:144)).EQ.0) e_pmRA(i__) = rNULL__ if (idig(ar__(146:151)).EQ.0) e_pmDE(i__) = rNULL__ if (idig(ar__(153:156)).EQ.0) e_Plx(i__) = rNULL__ c ..............Just test output........... write(6,1) + Source(i__),RAdeg(i__),DEdeg(i__),GLON(i__),GLAT(i__), + v_Gmag_(i__),v_FG_(i__),e__FG_(i__),pmRA(i__),pmDE(i__), + Plx(i__),e_pmRA(i__),e_pmDE(i__),e_Plx(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'x2mass.dat' ! Gaia DR1 sources cross-matched with the 2MASS * catalogue, with separation < 1" C Format for file interpretation 2 format( + I19,1X,F14.10,1X,F14.10,1X,F6.3,1X,E11.5,1X,E11.5,1X,F6.3,1X, + F5.3,1X,F6.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,A3) C Effective file loading open(unit=1,status='old',file= +'x2mass.dat') write(6,*) '....Loading file: x2mass.dat' do i__=1,5059068 read(1,'(A124)')ar__1 read(ar__1,2) + Source_1(i__),GLON_1(i__),GLAT_1(i__),v_Gmag__1(i__), + e__FG__1(i__),v_FG__1(i__),Jmag(i__),e_Jmag(i__),Hmag(i__), + e_Hmag(i__),Ksmag(i__),e_Ksmag(i__),Qual(i__) if(ar__1(89:93) .EQ. '') e_Jmag(i__) = rNULL__ if(ar__1(95:100) .EQ. '') Hmag(i__) = rNULL__ if(ar__1(102:106) .EQ. '') e_Hmag(i__) = rNULL__ if(ar__1(108:114) .EQ. '') Ksmag(i__) = rNULL__ if(ar__1(116:120) .EQ. '') e_Ksmag(i__) = rNULL__ c ..............Just test output........... write(6,2) + Source_1(i__),GLON_1(i__),GLAT_1(i__),v_Gmag__1(i__), + e__FG__1(i__),v_FG__1(i__),Jmag(i__),e_Jmag(i__),Hmag(i__), + e_Hmag(i__),Ksmag(i__),e_Ksmag(i__),Qual(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'oritgas.dat' ! TGAS sources in the Orion field C Format for file interpretation 3 format( + I5,1X,I19,1X,F14.10,1X,F14.10,1X,F14.10,1X,F14.10,1X,F6.3,1X, + E11.5,1X,E11.5,1X,F9.3,1X,F9.3,1X,F6.2,1X,F6.3,1X,F6.3,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'oritgas.dat') write(6,*) '....Loading file: oritgas.dat' do i__=1,34829 read(1,'(A162)')ar__2 read(ar__2,3) + HIP(i__),Source_2(i__),RAdeg_1(i__),DEdeg_1(i__),GLON_2(i__), + GLAT_2(i__),v_Gmag__2(i__),v_FG__2(i__),e__FG__2(i__), + pmRA_1(i__),pmDE_1(i__),Plx_1(i__),e_pmRA_1(i__), + e_pmDE_1(i__),e_Plx_1(i__) if (HIP(i__) .EQ. 45) HIP(i__) = iNULL__ c ..............Just test output........... write(6,3) + HIP(i__),Source_2(i__),RAdeg_1(i__),DEdeg_1(i__),GLON_2(i__), + GLAT_2(i__),v_Gmag__2(i__),v_FG__2(i__),e__FG__2(i__), + pmRA_1(i__),pmDE_1(i__),Plx_1(i__),e_pmRA_1(i__), + e_pmDE_1(i__),e_Plx_1(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end