#NEWLINE# def template( varlist ) : #NEWLINE# #INDENT# 'Returns string of VIC output template.' #NEWLINE# out = 'N_OUTFILES\t{0}\n' . format ( len ( out ) ) #NEWLINE# out += '\n' #NEWLINE# if ( 'eb' in varlist ) : #NEWLINE# #INDENT# out += ebTemplate #NEWLINE# #UNINDENT# if ( 'csp' in varlist ) : #NEWLINE# #INDENT# out += cspTemplate #NEWLINE# #UNINDENT# if ( 'wb' in varlist ) : #NEWLINE# #INDENT# out += wbTemplate #NEWLINE# #UNINDENT# if ( 'sur' in varlist ) : #NEWLINE# #INDENT# out += surTemplate #NEWLINE# #UNINDENT# if ( 'sub' in varlist ) : #NEWLINE# #INDENT# out += subTemplate #NEWLINE# #UNINDENT# if ( 'eva' in varlist ) : #NEWLINE# #INDENT# out += evaTemplate #NEWLINE# #UNINDENT# return out