FORTRAN Generation
(/./ftp/cats/J/A_A/584/A104)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/584/A104 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-18
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/584/A104 Luhman 16AB Lucky imaging photometry & astrometry (Mancini+ 2015)
*================================================================================
*Rotation periods and astrometric motions of the Luhman 16AB brown dwarfs by
*high-resolution lucky-imaging monitoring.
*    Mancini L., Giacobbe P., Littlefair S.P., Southworth J., Bozza V.,
*    Damasso M., Dominik M., Hundertmark M., Jorgensen U.G., Juncher D.,
*    Popovas A., Rabus M., Rahvar S., Schmidt R.W., Skottfelt J., Snodgrass C.,
*    Sozzetti A., Alsubai K., Bramich D.M., Calchi Novati S., Ciceri S.,
*    D'Ago G., Figuera Jaimes R., Galianni P., Gu S.-H., Harpsoe K.,
*    Haugbolle T., Henning T., Hinse T.C., Kains N., Korhonen H., Scarpetta G.,
*    Starkey D., Surdej J., Wang X.-B., Wertz O.
*    <Astron. Astrophys. 584, A104 (2015)>
*    =2015A&A...584A.104M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'astrom.dat'	! Astrometry of Luhman 16A and  Luhman 16B

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

      real*8        JD         (nr__) ! (d) Julian Date (JD-2456000.0)
      real*8        Xi16A      (nr__) ! (deg) Measured Xi standard coordinate of Luhman 16A (1)
      real*8        Eta16A     (nr__) ! (deg) Measured Eta standard coordinate of Luhman 16A (1)
      real*4        e_Xi16A    (nr__) ! (deg) Uncertainty on Xi16A
      real*4        e_Eta16A   (nr__) ! (deg) Uncertainty Eta16A
      real*8        Xi16B      (nr__) ! (deg) Measured Xi standard coordinate of Luhman 16B (1)
      real*8        Eta16B     (nr__) ! (deg) Measured Eta standard coordinate of Luhman 16B (1)
      real*4        e_Xi16B    (nr__) ! (deg) Uncertainty on Xi16B
      real*4        e_Eta16B   (nr__) ! (deg) Uncertainty Eta16B
*Note (1): see equations in Sec 3.2.

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

C  Declarations for 'luh16a.dat'	! Photometric light curves of Luhman 16A

      integer*4 nr__1
      parameter (nr__1=708)	! Number of records
      character*39 ar__1  	! Full-size record

      real*8        BJD        (nr__1) ! (d) Barycentric JD for the midpoint of observation
*                                   (TDB, BJD-2400000)
      real*8        izmag      (nr__1) ! (mag) PSF photometry i+z mag of Luhman 16 A
      real*8        e_izmag    (nr__1) ! (mag) Measurement error of the i+z band magnitude

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

C  Declarations for 'luh16b.dat'	! Photometric light curves of Luhman 16B

      integer*4 nr__2
      parameter (nr__2=708)	! Number of records
      character*39 ar__2  	! Full-size record

      real*8        BJD_1      (nr__2) ! (d) Barycentric JD for the midpoint of observation
*                                   (TDB, BJD-2400000)
      real*8        izmag_1    (nr__2) ! (mag) PSF photometry i+z mag of Luhman 16 A
      real*8        e_izmag_1  (nr__2) ! (mag) Measurement error of the i+z band magnitude

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

C  Loading file 'astrom.dat'	! Astrometry of Luhman 16A and  Luhman 16B

C  Format for file interpretation

    1 format(
     +  F9.5,1X,F12.10,1X,F13.10,1X,E13.8,1X,E13.8,1X,F12.10,1X,
     +  F13.10,1X,E13.8,1X,E13.8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'astrom.dat')
      write(6,*) '....Loading file: astrom.dat'
      do i__=1,24
        read(1,'(A119)')ar__
        read(ar__,1)
     +  JD(i__),Xi16A(i__),Eta16A(i__),e_Xi16A(i__),e_Eta16A(i__),
     +  Xi16B(i__),Eta16B(i__),e_Xi16B(i__),e_Eta16B(i__)
c    ..............Just test output...........
        write(6,1)
     +  JD(i__),Xi16A(i__),Eta16A(i__),e_Xi16A(i__),e_Eta16A(i__),
     +  Xi16B(i__),Eta16B(i__),e_Xi16B(i__),e_Eta16B(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'luh16a.dat'	! Photometric light curves of Luhman 16A

C  Format for file interpretation

    2 format(2X,F13.7,2X,F10.7,3X,F9.7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'luh16a.dat')
      write(6,*) '....Loading file: luh16a.dat'
      do i__=1,708
        read(1,'(A39)')ar__1
        read(ar__1,2)BJD(i__),izmag(i__),e_izmag(i__)
c    ..............Just test output...........
        write(6,2)BJD(i__),izmag(i__),e_izmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'luh16b.dat'	! Photometric light curves of Luhman 16B

C  Format for file interpretation

    3 format(2X,F13.7,2X,F10.7,3X,F9.7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'luh16b.dat')
      write(6,*) '....Loading file: luh16b.dat'
      do i__=1,708
        read(1,'(A39)')ar__2
        read(ar__2,3)BJD_1(i__),izmag_1(i__),e_izmag_1(i__)
c    ..............Just test output...........
        write(6,3)BJD_1(i__),izmag_1(i__),e_izmag_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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