FORTRAN Generation
(/./ftp/cats/J/A_A/496/153)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/496/153 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-Mar-28
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/496/153       Molecular hydrogen flows along Ori A cloud (Davis+, 2009)
*================================================================================
*A census of molecular hydrogen outflows and their sources along the Orion A
*molecular ridge. Characteristics and overall distribution.
*    Davis C.J., Froebrich D., Stanke T., Megeath S.T., Kumar M.S.N.,
*    Adamson A., Eisloeffel J., Gredel R., Khanzadyan T., Lucas P., Smith M.D.,
*    Varricatt W.P.
*   <Astron. Astrophys., 496, 153-176 (2009)>
*   =2009A&A...496..153D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! H2 jets and outflows in Orion A, from the catalogue
                             of Stanke et al., 2002, Cat. J/A+A/392/239

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

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

      integer*4     SMZ        (nr__) ! Sequential number
      integer*4     SMZ2       (nr__) ! ? Second SMZ number when association
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000) (1)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000) (1)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000) (1)
      character*1   DE_        (nr__) ! Declination sign (J2000) (1)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000) (1)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000) (1)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000) (1)
      character*1   n_DEs      (nr__) ! [)] ) if position of the brightest knot in
*                                       the flow (1)
      character*11  Outflow    (nr__) ! Outflow source name (2)
      real*4        alpha      (nr__) ! ? Spectral index of Outflow (2)
      character*15  N850       (nr__) ! 850um dust core coincident with the
*                                    H_2_ outflow source (3)
      integer*4     a850       (nr__) ! (arcsec) ? Major axis of the core size at 850um (3)
      integer*4     b850       (nr__) ! (arcsec) ? Minor axis of the core size at 850um (3)
      real*4        I850       (nr__) ! (Jy) ? Integrated flux at 850um (3)
      real*4        F850       (nr__) ! (Jy) ? Flux at 850um (in Jy/beam) (3)
      character*11  N1200      (nr__) ! 1200um dust core coincident with the
*                                    H_2_ outflow source (4)
      integer*4     a1200      (nr__) ! (arcsec) ? Major axis of the core size at 1200um (4)
      integer*4     b1200      (nr__) ! (arcsec) ? Minor axis of the core size at 1200um  (4)
      integer*4     O1200      (nr__) ! (deg) ? Orientation of the core major axis
      real*4        I1200      (nr__) ! (Jy) ? Integrated flux at 1200um (4)
      real*4        F1200      (nr__) ! (Jy) ? Flux at 1200um (in Jy/beam) (4)
      character*1   l_L        (nr__) ! [~>] Limit flag on L
      real*4        L          (nr__) ! (arcmin) ? Entire length (5)
      integer*4     theta      (nr__) ! (deg) ? Opening angle measured from a cone centred
*                                    on the outflow source that includes all
*                                    H_2_ features in the flow
      character*1   l_PA       (nr__) ! [~] Limit flag on PA
      integer*4     PA         (nr__) ! (deg) ? Position angle measured east of north
      character*8   HH         (nr__) ! Associated HH objects, if any are known
*Note (1): Position of the H_2_ outflow source if one is listed in "Outflow"
*     column. Otherwise, the position of the brightest knot in the flow is
*     given (bracket). Note that the well-known sources of the HH 1/2, HH 83
*     and V380-Ori-NE flows were not identified in our tables of Spitzer
*     protostars or disc-excess sources.
*Note (2): Most likely H_2_ outflow source from the Spitzer photometry
*     together with the spectral index, {alpha}. Just a question mark means
*     there is no obvious H_2_ flow source candidate.
*Note (3): 850um dust core coincident with the H_2_ outflow source (from
*     Nutter & Ward-Thompson, 2007, Cat. J/MNRAS/374/1413). The source must
*     lie within a 14" radius (the JCMT beam at 850um) of the core position
*     given by Nutter & Ward-Thompson in their Table A.1. "Emission" or
*     "undetected" means that no core appears in their table. However,
*     "emission" means that the source identified in Col. "Outflow" is
*     associated with diffuse 850um emission (surface brightness
*     >100mJy/beam, which is roughly equivalent to 5{sigma}); a question
*     mark means there are cores (or emission) in the vicinity which could
*     be associated with the outflow or its source; "no obs" means that the
*     outflow is outside the bounds of the SCUBA map. The flux is measured
*     towards each IRS source (not necessarily the peak flux of the
*     associated core).
*Note (4): Same as for the 850um cores, but for cores identified from our
*     analysis of the 1200 observations of Stanke et al. (in prep.). In this
*     case the source must lie within 11" of the core centroid; "emission"
*     corresponds to a surface brightness >75mJy/beam^-1^ (~5{sigma}).
*Note (5): Entire length of all H_2_ knots (in both lobes), or the distance
*     from the source to the most distant H_2_ knot if only one flow lobe is
*     identified

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

C  Declarations for 'table3.dat'	! New H2 jets in Orion A (additions to the catalogue
                             of Stanke et al., 2002, Cat. J/A+A/392/239)

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

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

      integer*4     SMZ_1      (nr__1) ! Sequential number
      integer*4     SMZ2_1     (nr__1) ! ? Second SMZ number when association
      integer*4     RAh_1      (nr__1) ! (h) Right ascension (J2000) (1)
      integer*4     RAm_1      (nr__1) ! (min) Right ascension (J2000) (1)
      real*4        RAs_1      (nr__1) ! (s) Right ascension (J2000) (1)
      character*1   DE__1      (nr__1) ! Declination sign (J2000) (1)
      integer*4     DEd_1      (nr__1) ! (deg) Declination (J2000) (1)
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (J2000) (1)
      integer*4     DEs_1      (nr__1) ! (arcsec) Declination (J2000) (1)
      character*1   n_DEs_1    (nr__1) ! [)] ) if position of the brightest knot in
*                                       the flow (1)
      character*11  Outflow_1  (nr__1) ! Outflow source name (2)
      real*4        alpha_1    (nr__1) ! ? Spectral index of Outflow (2)
      character*15  N850_1     (nr__1) ! 850um dust core coincident with the
*                                    H_2_ outflow source (3)
      integer*4     a850_1     (nr__1) ! (arcsec) ? Major axis of the core size at 850um (3)
      integer*4     b850_1     (nr__1) ! (arcsec) ? Minor axis of the core size at 850um (3)
      real*4        I850_1     (nr__1) ! (Jy) ? Integrated flux at 850um (3)
      real*4        F850_1     (nr__1) ! (Jy) ? Flux at 850um (in Jy/beam) (3)
      character*11  N1200_1    (nr__1) ! 1200um dust core coincident with the
*                                    H_2_ outflow source (4)
      integer*4     a1200_1    (nr__1) ! (arcsec) ? Major axis of the core size at 1200um (4)
      integer*4     b1200_1    (nr__1) ! (arcsec) ? Minor axis of the core size at 1200um  (4)
      integer*4     O1200_1    (nr__1) ! (deg) ? Orientation of the core major axis
      real*4        I1200_1    (nr__1) ! (Jy) ? Integrated flux at 1200um (4)
      real*4        F1200_1    (nr__1) ! (Jy) ? Flux at 1200um (in Jy/beam) (4)
      character*1   l_L_1      (nr__1) ! [~>] Limit flag on L
      real*4        L_1        (nr__1) ! (arcmin) ? Entire length (5)
      integer*4     theta_1    (nr__1) ! (deg) ? Opening angle measured from a cone centred
*                                    on the outflow source that includes all
*                                    H_2_ features in the flow
      character*1   l_PA_1     (nr__1) ! [~] Limit flag on PA
      integer*4     PA_1       (nr__1) ! (deg) ? Position angle measured east of north
      character*8   HH_1       (nr__1) ! Associated HH objects, if any are known
*Note (1): Position of the H_2_ outflow source if one is listed in "Outflow"
*     column. Otherwise, the position of the brightest knot in the flow is
*     given (bracket). Note that the well-known sources of the HH 1/2, HH 83
*     and V380-Ori-NE flows were not identified in our tables of Spitzer
*     protostars or disc-excess sources.
*Note (2): Most likely H_2_ outflow source from the Spitzer photometry
*     together with the spectral index, {alpha}. Just a question mark means
*     there is no obvious H_2_ flow source candidate.
*Note (3): 850um dust core coincident with the H_2_ outflow source (from
*     Nutter & Ward-Thompson, 2007, Cat. J/MNRAS/374/1413). The source must
*     lie within a 14" radius (the JCMT beam at 850um) of the core position
*     given by Nutter & Ward-Thompson in their Table A.1. "Emission" or
*     "undetected" means that no core appears in their table. However,
*     "emission" means that the source identified in Col. "Outflow" is
*     associated with diffuse 850um emission (surface brightness
*     >100mJy/beam, which is roughly equivalent to 5{sigma}); a question
*     mark means there are cores (or emission) in the vicinity which could
*     be associated with the outflow or its source; "no obs" means that the
*     outflow is outside the bounds of the SCUBA map. The flux is measured
*     towards each IRS source (not necessarily the peak flux of the
*     associated core).
*Note (4): Same as for the 850um cores, but for cores identified from our
*     analysis of the 1200 observations of Stanke et al. (in prep.). In this
*     case the source must lie within 11" of the core centroid; "emission"
*     corresponds to a surface brightness >75mJy/beam^-1^ (~5{sigma}).
*Note (5): Entire length of all H_2_ knots (in both lobes), or the distance
*     from the source to the most distant H_2_ knot if only one flow lobe is
*     identified

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

C  Declarations for 'tableb1.dat'	! Proper motions of H2 features

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

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

      integer*4     SMZ_2      (nr__2) ! Sequential number
      integer*4     SMZ2_2     (nr__2) ! ? Second SMZ number when association
      character*1   n_SMZ2     (nr__2) ! [*] Note (1)
      character*7   Knot       (nr__2) ! Knot designation
      integer*4     RAh_2      (nr__2) ! (h) Right ascension (J2000)
      integer*4     RAm_2      (nr__2) ! (min) Right ascension (J2000)
      real*4        RAs_2      (nr__2) ! (s) Right ascension (J2000)
      character*1   DE__2      (nr__2) ! Declination sign (J2000)
      integer*4     DEd_2      (nr__2) ! (deg) Declination (J2000)
      integer*4     DEm_2      (nr__2) ! (arcmin) Declination (J2000)
      integer*4     DEs_2      (nr__2) ! (arcsec) Declination (J2000)
      real*4        shift_x    (nr__2) ! (pix) Shift along x axis
      real*4        shift_y    (nr__2) ! (pix) Shift along y axis
      real*4        shiftpix   (nr__2) ! (pix) Total shift in pixel
      real*4        shift      (nr__2) ! (arcsec) Total shift in arcsec
      real*4        Vel        (nr__2) ! (km/s) Tangential velocity (2)
      real*4        Position   (nr__2) ! (deg) Angle of the PM vector, measured E of N
      integer*4     Flag       (nr__2) ! Status Flag. Those with value 2 are uncertain
*Note (1): In these objects clusters of knots are labelled A, B, etc., with
*     the individual knots themselves labelled A1, A2, etc. and B1, B2, etc.
*     The PM of 5-23 G, for example, is for all knots G1-G5 measured together.
*Note (2): A nominal error of 21km/s has been adopted (see text for details).

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

C  Loading file 'table2.dat'	! H2 jets and outflows in Orion A, from the catalogue
*                             of Stanke et al., 2002, Cat. J/A+A/392/239

C  Format for file interpretation

    1 format(
     +  I3,1X,I3,1X,I1,1X,I2,1X,F4.1,1X,A1,I1,1X,I2,1X,I2,A1,1X,A11,
     +  1X,F5.2,1X,A15,2X,I2,1X,I2,1X,F4.1,1X,F4.2,1X,A11,I3,1X,I2,1X,
     +  I3,1X,F4.2,1X,F4.2,1X,A1,F5.2,1X,I2,1X,A1,I3,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,73
        read(1,'(A134)')ar__
        read(ar__,1)
     +  SMZ(i__),SMZ2(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),n_DEs(i__),Outflow(i__),alpha(i__),
     +  N850(i__),a850(i__),b850(i__),I850(i__),F850(i__),N1200(i__),
     +  a1200(i__),b1200(i__),O1200(i__),I1200(i__),F1200(i__),
     +  l_L(i__),L(i__),theta(i__),l_PA(i__),PA(i__),HH(i__)
        if(ar__(5:7) .EQ. '') SMZ2(i__) = iNULL__
        if(ar__(41:45) .EQ. '') alpha(i__) = rNULL__
        if(ar__(64:65) .EQ. '') a850(i__) = iNULL__
        if(ar__(67:68) .EQ. '') b850(i__) = iNULL__
        if(ar__(70:73) .EQ. '') I850(i__) = rNULL__
        if(ar__(75:78) .EQ. '') F850(i__) = rNULL__
        if(ar__(91:93) .EQ. '') a1200(i__) = iNULL__
        if(ar__(95:96) .EQ. '') b1200(i__) = iNULL__
        if(ar__(98:100) .EQ. '') O1200(i__) = iNULL__
        if(ar__(102:105) .EQ. '') I1200(i__) = rNULL__
        if(ar__(107:110) .EQ. '') F1200(i__) = rNULL__
        if(ar__(113:117) .EQ. '') L(i__) = rNULL__
        if(ar__(119:120) .EQ. '') theta(i__) = iNULL__
        if(ar__(123:125) .EQ. '') PA(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  SMZ(i__),SMZ2(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),n_DEs(i__),Outflow(i__),alpha(i__),
     +  N850(i__),a850(i__),b850(i__),I850(i__),F850(i__),N1200(i__),
     +  a1200(i__),b1200(i__),O1200(i__),I1200(i__),F1200(i__),
     +  l_L(i__),L(i__),theta(i__),l_PA(i__),PA(i__),HH(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! New H2 jets in Orion A (additions to the catalogue
*                             of Stanke et al., 2002, Cat. J/A+A/392/239)

C  Format for file interpretation

    2 format(
     +  I3,1X,I3,1X,I1,1X,I2,1X,F4.1,1X,A1,I1,1X,I2,1X,I2,A1,1X,A11,
     +  1X,F5.2,1X,A15,2X,I2,1X,I2,1X,F4.1,1X,F4.2,1X,A11,I3,1X,I2,1X,
     +  I3,1X,F4.2,1X,F4.2,1X,A1,F5.2,1X,I2,1X,A1,I3,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,43
        read(1,'(A134)')ar__1
        read(ar__1,2)
     +  SMZ_1(i__),SMZ2_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),n_DEs_1(i__),
     +  Outflow_1(i__),alpha_1(i__),N850_1(i__),a850_1(i__),
     +  b850_1(i__),I850_1(i__),F850_1(i__),N1200_1(i__),a1200_1(i__),
     +  b1200_1(i__),O1200_1(i__),I1200_1(i__),F1200_1(i__),
     +  l_L_1(i__),L_1(i__),theta_1(i__),l_PA_1(i__),PA_1(i__),
     +  HH_1(i__)
        if(ar__1(5:7) .EQ. '') SMZ2_1(i__) = iNULL__
        if(ar__1(41:45) .EQ. '') alpha_1(i__) = rNULL__
        if(ar__1(64:65) .EQ. '') a850_1(i__) = iNULL__
        if(ar__1(67:68) .EQ. '') b850_1(i__) = iNULL__
        if(ar__1(70:73) .EQ. '') I850_1(i__) = rNULL__
        if(ar__1(75:78) .EQ. '') F850_1(i__) = rNULL__
        if(ar__1(91:93) .EQ. '') a1200_1(i__) = iNULL__
        if(ar__1(95:96) .EQ. '') b1200_1(i__) = iNULL__
        if(ar__1(98:100) .EQ. '') O1200_1(i__) = iNULL__
        if(ar__1(102:105) .EQ. '') I1200_1(i__) = rNULL__
        if(ar__1(107:110) .EQ. '') F1200_1(i__) = rNULL__
        if(ar__1(113:117) .EQ. '') L_1(i__) = rNULL__
        if(ar__1(119:120) .EQ. '') theta_1(i__) = iNULL__
        if(ar__1(123:125) .EQ. '') PA_1(i__) = iNULL__
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  SMZ_1(i__),SMZ2_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),n_DEs_1(i__),
     +  Outflow_1(i__),alpha_1(i__),N850_1(i__),a850_1(i__),
     +  b850_1(i__),I850_1(i__),F850_1(i__),N1200_1(i__),a1200_1(i__),
     +  b1200_1(i__),O1200_1(i__),I1200_1(i__),F1200_1(i__),
     +  l_L_1(i__),L_1(i__),theta_1(i__),l_PA_1(i__),PA_1(i__),
     +  HH_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb1.dat'	! Proper motions of H2 features

C  Format for file interpretation

    3 format(
     +  I3,1X,I3,A1,2X,A7,2X,I1,1X,I2,1X,F4.1,1X,A1,I1,1X,I2,1X,I2,1X,
     +  F6.3,1X,F6.3,1X,F4.2,1X,F4.2,1X,F5.1,1X,F6.1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb1.dat')
      write(6,*) '....Loading file: tableb1.dat'
      do i__=1,147
        read(1,'(A76)')ar__2
        read(ar__2,3)
     +  SMZ_2(i__),SMZ2_2(i__),n_SMZ2(i__),Knot(i__),RAh_2(i__),
     +  RAm_2(i__),RAs_2(i__),DE__2(i__),DEd_2(i__),DEm_2(i__),
     +  DEs_2(i__),shift_x(i__),shift_y(i__),shiftpix(i__),shift(i__),
     +  Vel(i__),Position(i__),Flag(i__)
        if(ar__2(5:7) .EQ. '') SMZ2_2(i__) = iNULL__
        RAdeg_2(i__) = rNULL__
        DEdeg_2(i__) = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
        if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
        if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  SMZ_2(i__),SMZ2_2(i__),n_SMZ2(i__),Knot(i__),RAh_2(i__),
     +  RAm_2(i__),RAs_2(i__),DE__2(i__),DEd_2(i__),DEm_2(i__),
     +  DEs_2(i__),shift_x(i__),shift_y(i__),shiftpix(i__),shift(i__),
     +  Vel(i__),Position(i__),Flag(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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