#NEWLINE# def _parse_6a( line , option ) : #NEWLINE# #INDENT# 'Parse Data Set 6a for SFR2 package.\n    See http://water.usgs.gov/nrp/gwsoftware/modflow2000/MFDOC/index.html?sfr.htm for more info\n\n    Parameters\n    ----------\n    line : str\n        line read from SFR package input file\n\n    Returns\n    -------\n        a list of length 13 containing all variables for Data Set 6a\n    ' #NEWLINE# line = line_parse ( line ) #NEWLINE# xyz = [ ] #NEWLINE# for ( i , s ) in enumerate ( line ) : #NEWLINE# #INDENT# if ( s . lower ( ) in option ) : #NEWLINE# #INDENT# xyz . append ( s . lower ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# na = 0 #NEWLINE# nvalues = sum ( [ _isnumeric ( s ) for s in line ] ) #NEWLINE# nseg = int ( line . pop ( 0 ) ) #NEWLINE# icalc = int ( line . pop ( 0 ) ) #NEWLINE# outseg = int ( line . pop ( 0 ) ) #NEWLINE# iupseg = int ( line . pop ( 0 ) ) #NEWLINE# iprior = na #NEWLINE# nstrpts = na #NEWLINE# if ( iupseg > 0 ) : #NEWLINE# #INDENT# iprior = int ( line . pop ( 0 ) ) #NEWLINE# #UNINDENT# if ( icalc == 4 ) : #NEWLINE# #INDENT# nstrpts = int ( line . pop ( 0 ) ) #NEWLINE# #UNINDENT# flow = float ( line . pop ( 0 ) ) #NEWLINE# runoff = float ( line . pop ( 0 ) ) #NEWLINE# etsw = float ( line . pop ( 0 ) ) #NEWLINE# pptsw = float ( line . pop ( 0 ) ) #NEWLINE# roughch = na #NEWLINE# roughbk = na #NEWLINE# if ( icalc in [ 1 , 2 ] ) : #NEWLINE# #INDENT# roughch = float ( line . pop ( 0 ) ) #NEWLINE# #UNINDENT# if ( icalc == 2 ) : #NEWLINE# #INDENT# roughbk = float ( line . pop ( 0 ) ) #NEWLINE# #UNINDENT# ( cdpth , fdpth , awdth , bwdth ) = ( na , na , na , na ) #NEWLINE# if ( icalc == 3 ) : #NEWLINE# #INDENT# ( cdpth , fdpth , awdth , bwdth ) = map ( float , line ) #NEWLINE# #UNINDENT# return ( nseg , icalc , outseg , iupseg , iprior , nstrpts , flow , runoff , etsw , pptsw , roughch , roughbk , cdpth , fdpth , awdth , bwdth , xyz )