FORTRAN Generation
(/./ftp/cats/J/PASP/128/L4401)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASP/128/L4401 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 2024-Mar-29
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/PASP/128/L4401    K2 Campaign 9 added events               (Henderson+, 2016)
*================================================================================
*Campaign 9 of the K2 mission: observational parameters, scientific drivers,
*and community involvement for a simultaneous space- and ground-based
*microlensing survey.
*    Henderson C.B., Poleski R., Penny M., Street R.A., Bennett D.P., Hogg D.W.,
*    Gaudi B.S. (K2 Campaign 9 Microlensing Science Team), Zhu W., Barclay
*    T., Barentsen G., Howell S.B., Mullally F., Udalski A., Szymanski
*    M.K., Skowron J., Mroz P., Kozlowski S., Wyrzykowski L., Pietrukowicz
*    P., Soszynski I., Ulaczyk K., Pawlak M. (The OGLE Project), Sumi T.,
*    Abe F., Asakura Y., Barry R.K., Bhattacharya A., Bond I.A., Donachie
*    M., Freeman M., Fukui A., Hirao Y., Itow Y., Koshimoto N., Li M.C.A.,
*    Ling C.H., Masuda K., Matsubara Y., Muraki Y., Nagakane M., Ohnishi
*    K., Oyokawa H., Rattenbury N., Saito T., Sharan A., Sullivan D.J.,
*    Tristram P.J., Yonehara A., (the Moa Collaboration), Bachelet E.,
*    Bramich D.M., Cassan A., Dominik M., Jaimes R.F., Horne K.,
*    Hundertmark M., Mao S., Ranc C., Schmidt R., Snodgrass C., Steele
*    I.A., Tsapras Y., Wambsganss J. (The RoboNet Project), Bozza V.,
*    Burgdorf M.J., Jorgensen U.G., Novati S.C., Ciceri S., D'ago G., Evans
*    D.F., Hessman F.V., Hinse T.C., Husser T.-O., Mancini L., Popovas A.,
*    Rabus M., Rahvar S., Scarpetta G., Skottfelt J., Southworth J.,
*    Unda-Sanzana E. (The MiNDSTEp Team), Bryson S.T., Caldwell D.A., Haas
*    M.R., Larson K., McCalmont K., Packard M., Peterson C., Putnam D.,
*    Reedy L., Ross S., Van Cleve J.E. (K2C9 Engineering Team), Akeson R.,
*    Batista V., Beaulieu J.-P., Beichman C.A., Bryden G., Ciardi D., Cole
*    A., Coutures C., Foreman-Mackey D., Fouque P., Friedmann M., Gelino
*    C., Kaspi S., Kerins E., Korhonen H., Lang D., Lee C.-H., Lineweaver
*    C.H., Maoz D., Marquette J.-B., Mogavero F., Morales J.C., Nataf D.,
*    Pogge R.W., Santerne A., Shvartzvald Y., Suzuki D., Tamura M.,
*    Tisserand P., Wang D.
*    <Publ. Astron. Soc. Pac., 128, part no 12, 4401 (2016)>
*    =2016PASP..128l4401H (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! Ongoing Events Added to K2C9 Target List

      integer*4 nr__
      parameter (nr__=70)	! Number of records
      character*73 ar__   	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*37  Event       ! OGLE/MOA event designation (1)
      integer*4     RAh         ! (h) Right ascension (J2000) (2)
      integer*4     RAm         ! (min) Right ascension (J2000) (2)
      real*4        RAs         ! (s) Right ascension (J2000) (2)
      character*1   DE_         ! Declination sign (J2000) (2)
      integer*4     DEd         ! (deg) Declination (J2000) (2)
      integer*4     DEm         ! (arcmin) Declination (J2000) (2)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        Imag        ! (mag) Baseline I-band magnitude (2) (3)
      character*5   Camp        ! Campaign Half
*Note (1): Events are named according to the following convention:
*  Survey-Year-Field-Index, where the field designation "BLG" refers to the
*  Galactic bulge.
*  For events discovered by multiple surveys, the event is named according to
*  which survey alerted it first.
*Note (2): Coordinates and magnitudes are taken from the OGLE Early Warning
*   System (see Section 5.1).
*Note (3): This includes the flux of the source as well as any blended stars.

C=============================================================================

C  Loading file 'table2.dat'	! Ongoing Events Added to K2C9 Target List

C  Format for file interpretation

    1 format(
     +  A37,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.1,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,70
        read(1,'(A73)')ar__
        read(ar__,1)Event,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Imag,Camp
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)Event,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Imag,Camp
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end