FORTRAN Generation
(/./ftp/cats/J/ApJ/793/L4)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/793/L4 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-16
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/ApJ/793/L4   Polar network index for the solar cycle studies   (Priyal+, 2014)
*================================================================================
*Polar network index as a magnetic proxy for the solar cycle studies.
*    Priyal M., Banerjee D., Karak B.B., Munoz-Jaramillo A., Ravindra B.,
*    Choudhuri A.R., Singh J.
*   <Astrophys. J., 793, L4 (2014)>
*   =2014ApJ...793L...4P    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'fig2.dat'	! Scatter plot of KKL PNI values with the Wilcox
                                Solar Observatory (WSO) polar field
                                measurements for the period of 1977-1990.

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

      integer*4     Obs_Y      (nr__) ! (yr) Year of the observation
      character*1   f_Obs_Y    (nr__) ! [m] Flag on Obs.Y (1)
      real*8        KKL_PNI_N  (nr__) ! KKL Polar Network Index North
      real*8        e_KKL_PNI_N(nr__) ! Error in KKL-PNI-N
      real*8        KKL_PNI_S  (nr__) ! KKL Polar Network Index South
      real*4        e_KKL_PNI_S(nr__) ! Error in KKL-PNI-S
      real*8        WSO_PF_N   (nr__) ! WSO Polar Network Index North
      real*8        e_WSO_PF_N (nr__) ! Error in WSO-PF-N
      real*8        WSO_PF_S   (nr__) ! WSO Polar Network Index South
      real*8        e_WSO_PF_S (nr__) ! Error in WSO-PF-S
*Note (1): Flag as follows:
*  m = Indicates a solar minimum year, red symbols in the figure.

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

C  Declarations for 'fig3ab.dat'	! PNI and MWO facular counts for the years
                                1909-1990.

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

      integer*4     Obs_Y_1    (nr__1) ! (yr) Year of the observation
      real*8        KKL_N      (nr__1) ! KKL Polar Network Index North
      real*8        KKL_S      (nr__1) ! KKL Polar Network Index South
      real*8        MWO_N      (nr__1) ! MWO polar facular count North
      real*8        MWO_S      (nr__1) ! ? MWO polar facular count South (1)
      real*8        SA_N       (nr__1) ! Northern hemisphere sunspot area
      real*8        SA_S       (nr__1) ! Southern hemisphere sunspot area
*Note (1): Blank values indicate NaN values.

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

C  Declarations for 'fig3c.dat'	! A correlation plot between the strengths of
                                solar cycles and the PNI values at the
                                preceding minima.

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

      real*4        Obs_Y_2    (nr__2) ! (yr) Year of the solar minima (1)
      real*4        Rmax       (nr__2) ! Maximum sunspot number of the cycle n+1
      real*8        PNI        (nr__2) ! KKL Polar Network Index value at end of cycle n
      integer*4     Cycle      (nr__2) ! [15/22] Solar cycle number
*Note (1): The last data point corresponding to solar cycle 22 was not included
*  in the figure as the analysis was restricted up to 1990 and cycle 22 includes
*  the years 1985-1995.

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

C  Declarations for 'fig4.dat'	! PNI asymmetry of the nth cycle minimum phase is
                                plotted against the sunspot area asymmetry of
                                the (n+1)th cycle.

      integer*4 nr__3
      parameter (nr__3=8)	! Number of records
      character*57 ar__3  	! Full-size record

      integer*4     Cycle_1    (nr__3) ! [15/22] Solar cycle number
      real*8        SA_N_1     (nr__3) ! Northern hemisphere sunspot area
      real*8        SA_S_1     (nr__3) ! Southern hemisphere sunspot area
      real*8        SAA        (nr__3) ! Sunspot area asymmetry (1)
      real*8        KKL_PNI_N_1(nr__3) ! ? KKL Polar Network Index North
      real*8        KKL_PNI_S_1(nr__3) ! ? KKL Polar Network Index South
      real*8        KKL_A      (nr__3) ! ? KKL Polar Network Index asymmetry (2)
*Note (1): Calculated as (SA-N - SA-S)/(SA-N + SA-S).
*Note (2): Calculated as (KKL-PNI-N - KKL-PNI-S)/(KKL-PNI-N + KKL-PNI-S).

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

C  Loading file 'fig2.dat'	! Scatter plot of KKL PNI values with the Wilcox
*                                Solar Observatory (WSO) polar field
*                                measurements for the period of 1977-1990.

C  Format for file interpretation

    1 format(
     +  I4,A1,1X,F9.3,1X,F7.3,1X,F8.3,1X,F6.3,1X,F11.8,1X,F11.9,1X,
     +  F11.8,1X,F11.9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig2.dat')
      write(6,*) '....Loading file: fig2.dat'
      do i__=1,14
        read(1,'(A87)')ar__
        read(ar__,1)
     +  Obs_Y(i__),f_Obs_Y(i__),KKL_PNI_N(i__),e_KKL_PNI_N(i__),
     +  KKL_PNI_S(i__),e_KKL_PNI_S(i__),WSO_PF_N(i__),e_WSO_PF_N(i__),
     +  WSO_PF_S(i__),e_WSO_PF_S(i__)
c    ..............Just test output...........
        write(6,1)
     +  Obs_Y(i__),f_Obs_Y(i__),KKL_PNI_N(i__),e_KKL_PNI_N(i__),
     +  KKL_PNI_S(i__),e_KKL_PNI_S(i__),WSO_PF_N(i__),e_WSO_PF_N(i__),
     +  WSO_PF_S(i__),e_WSO_PF_S(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig3ab.dat'	! PNI and MWO facular counts for the years
*                                1909-1990.

C  Format for file interpretation

    2 format(I4,1X,F9.3,1X,F9.3,1X,F9.5,1X,F8.4,1X,F8.3,1X,F8.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig3ab.dat')
      write(6,*) '....Loading file: fig3ab.dat'
      do i__=1,82
        read(1,'(A61)')ar__1
        read(ar__1,2)
     +  Obs_Y_1(i__),KKL_N(i__),KKL_S(i__),MWO_N(i__),MWO_S(i__),
     +  SA_N(i__),SA_S(i__)
        if(ar__1(36:43) .EQ. '') MWO_S(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Obs_Y_1(i__),KKL_N(i__),KKL_S(i__),MWO_N(i__),MWO_S(i__),
     +  SA_N(i__),SA_S(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig3c.dat'	! A correlation plot between the strengths of
*                                solar cycles and the PNI values at the
*                                preceding minima.

C  Format for file interpretation

    3 format(F6.1,1X,F5.1,1X,F9.4,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig3c.dat')
      write(6,*) '....Loading file: fig3c.dat'
      do i__=1,8
        read(1,'(A25)')ar__2
        read(ar__2,3)Obs_Y_2(i__),Rmax(i__),PNI(i__),Cycle(i__)
c    ..............Just test output...........
        write(6,3)Obs_Y_2(i__),Rmax(i__),PNI(i__),Cycle(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'fig4.dat'	! PNI asymmetry of the nth cycle minimum phase is
*                                plotted against the sunspot area asymmetry of
*                                the (n+1)th cycle.

C  Format for file interpretation

    4 format(I2,1X,F8.4,1X,F8.4,1X,F8.5,1X,F9.4,1X,F8.3,1X,F8.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig4.dat')
      write(6,*) '....Loading file: fig4.dat'
      do i__=1,8
        read(1,'(A57)')ar__3
        read(ar__3,4)
     +  Cycle_1(i__),SA_N_1(i__),SA_S_1(i__),SAA(i__),
     +  KKL_PNI_N_1(i__),KKL_PNI_S_1(i__),KKL_A(i__)
        if(ar__3(31:39) .EQ. '') KKL_PNI_N_1(i__) = rNULL__
        if(ar__3(41:48) .EQ. '') KKL_PNI_S_1(i__) = rNULL__
        if(ar__3(50:57) .EQ. '') KKL_A(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Cycle_1(i__),SA_N_1(i__),SA_S_1(i__),SAA(i__),
     +  KKL_PNI_N_1(i__),KKL_PNI_S_1(i__),KKL_A(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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