1 C-----------------------------------------------------------------------
2 SUBROUTINE FPARSER
(CARG
,MARG
,RARG
)
3 C$$$ SUBPROGRAM DOCUMENTATION BLOCK
5 C SUBPROGRAM: FPARSER PARSE REAL NUMBERS FROM A CHARACTER STRING
6 C PRGMMR: IREDELL ORG: NP23 DATE:1998-09-03
8 C ABSTRACT: THIS SUBPROGRAM EXTRACTS REAL NUMBERS FROM A FREE-FORMAT
9 C CHARACTER STRING. IT IS USEFUL FOR PARSING COMMAND ARGUMENTS.
11 C PROGRAM HISTORY LOG:
14 C USAGE: CALL FPARSER(CARG,MARG,RARG)
16 C INPUT ARGUMENT LIST:
17 C CARG - CHARACTER*(*) STRING OF ASCII DIGITS TO PARSE.
18 C REAL NUMBERS MAY BE SEPARATED BY A COMMA OR BY BLANKS.
19 C MARG - INTEGER MAXIMUM NUMBER OF REAL NUMBERS TO PARSE.
21 C OUTPUT ARGUMENT LIST:
22 C RARG - REAL (MARG) NUMBERS PARSED.
23 C (FROM 0 TO MARG VALUES MAY BE RETURNED.)
26 C TO DETERMINE THE ACTUAL NUMBER OF REAL NUMBERS FOUND IN THE STRING,
27 C RARG SHOULD BE SET TO FILL VALUES BEFORE THE CALL TO FPARSER AND
28 C THE NUMBER OF NON-FILL VALUES SHOULD BE COUNTED AFTER THE CALL.
31 C LANGUAGE: FORTRAN 90
36 C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
37 READ(CARG
,*,IOSTAT
=IOS
) RARG
38 C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -