<reponame>maxprop/dgbpy<gh_stars>1-10
"""
============================================================
Log crossplot GUI
============================================================

 Author:    <NAME> <<EMAIL>>
 Copyright: dGB Beheer BV
 Date:      March 2019
 License:   GPL v3
 Credits:   Based in parts on Crossfilter example of www.bokeh.org.

@author: paul
"""

import sys
import argparse
from dgbpy.bokehserver import StartBokehServer, DefineBokehArguments

parser = argparse.ArgumentParser(
            description='Dashboard for well log crossplotting')
parser.add_argument( '-v', '--version',
            action='version', version='%(prog)s 1.0' )
datagrp = parser.add_argument_group( 'Data' )
datagrp.add_argument( '--dataroot',
            dest='dtectdata', metavar='DIR', nargs=1,
            help='Survey Data Root' )
datagrp.add_argument( '--survey',
            dest='survey', nargs=1,
            help='Survey name' )
datagrp.add_argument( '--well',
            dest='wellid', action='append',
            help='Well ID' )
datagrp.add_argument( '--welllogs',
            dest='welllogs', action='append',
            help='Well log indices to display' )
loggrp = parser.add_argument_group( 'Logging' )
loggrp.add_argument( '--proclog',
            dest='logfile', metavar='file', nargs='?',
            type=argparse.FileType('w'), default=sys.stdout,
            help='Progress report output' )
loggrp.add_argument( '--syslog',
            dest='sysout', metavar='stdout', nargs='?',
            type=argparse.FileType('w'), default=sys.stdout,
            help='Standard output' )

parser = DefineBokehArguments(parser)

args = vars(parser.parse_args())

import odpy.common as odcommon
odcommon.initLogging( args )

from odpy import wellman
import bokeh_crossplot as bxp

reload = True
wellid = args['wellid'][0]
bxp.survargs = odcommon.getODArgs(args)
bxp.wellnm = wellman.getName(wellid, reload, args)
bxp.welllogs = args['welllogs'][0]
print(bxp.welllogs)
StartBokehServer({'/': bxp.crossplot_app}, args)


"""
============================================================
Log crossplot GUI
============================================================

 Author:    <NAME> <<EMAIL>>
 Copyright: dGB Beheer BV
 Date:      March 2019
 License:   GPL v3
 Credits:   Based in parts on Crossfilter example of www.bokeh.org.

@author: paul
"""

import sys
import argparse
from dgbpy.bokehserver import StartBokehServer, DefineBokehArguments

parser = argparse.ArgumentParser(
            description='Dashboard for well log crossplotting')
parser.add_argument( '-v', '--version',
            action='version', version='%(prog)s 1.0' )
datagrp = parser.add_argument_group( 'Data' )
datagrp.add_argument( '--dataroot',
            dest='dtectdata', metavar='DIR', nargs=1,
            help='Survey Data Root' )
datagrp.add_argument( '--survey',
            dest='survey', nargs=1,
            help='Survey name' )
datagrp.add_argument( '--well',
            dest='wellid', action='append',
            help='Well ID' )
datagrp.add_argument( '--welllogs',
            dest='welllogs', action='append',
            help='Well log indices to display' )
loggrp = parser.add_argument_group( 'Logging' )
loggrp.add_argument( '--proclog',
            dest='logfile', metavar='file', nargs='?',
            type=argparse.FileType('w'), default=sys.stdout,
            help='Progress report output' )
loggrp.add_argument( '--syslog',
            dest='sysout', metavar='stdout', nargs='?',
            type=argparse.FileType('w'), default=sys.stdout,
            help='Standard output' )

parser = DefineBokehArguments(parser)

args = vars(parser.parse_args())

import odpy.common as odcommon
odcommon.initLogging( args )

from odpy import wellman
import bokeh_crossplot as bxp

reload = True
wellid = args['wellid'][0]
bxp.survargs = odcommon.getODArgs(args)
bxp.wellnm = wellman.getName(wellid, reload, args)
bxp.welllogs = args['welllogs'][0]
print(bxp.welllogs)
StartBokehServer({'/': bxp.crossplot_app}, args)
============================================================ Log crossplot GUI ============================================================   Author:    <NAME> <<EMAIL>>  Copyright: dGB Beheer BV  Date:      March 2019  License:   GPL v3  Credits:   Based in parts on Crossfilter example of www.bokeh.org.  @author: paul