*-----------------------------------------------------------------------
*     Copyright (C) 2000-2016 GFD Dennou Club. All rights reserved.
*-----------------------------------------------------------------------
      SUBROUTINE VRFNA1(RX,RY,N,JX,JY,RFNA)

      REAL      RX(*),RY(*)

      REAL      RFNA
      EXTERNAL  RFNA


      CALL GLRGET('RMISS',RMISS)
      KX=1-JX
      KY=1-JY
      DO 10 J=1,N
        KX=KX+JX
        KY=KY+JY
        IF (RX(KX).NE.RMISS) THEN
          RY(KY)=RFNA(RX(KX))
        ELSE
          RY(KY)=RMISS
        END IF
   10 CONTINUE

      END
