Ignore:
Timestamp:
Mar 25, 2013, 12:11:07 AM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. options were missing in pp.py.

Location:
trunk/UTIL/PYTHON/planetoplot_v2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/dev/todo.txt

    r910 r912  
    1111
    1212- more complicated computations: derivatives, histograms, spectra, etc...
     13
     14- implement the operator 'and' to concatenate files over time
     15
  • trunk/UTIL/PYTHON/planetoplot_v2/pp.py

    r910 r912  
    66from optparse import OptionParser ### TBR by argparse
    77from ppclass import pp, inspect
     8import sys
    89##############################################
    910
     
    3233parser.add_option('-m','--mult',action='store',dest='mult',type="float",default=None,help='')
    3334parser.add_option('-a','--add',action='store',dest='add',type="float",default=None,help='')
     35parser.add_option('-o','--output',action='store',dest='filename',type="string",default="myplot",help='')
     36parser.add_option('-d','--directory',action='store',dest='folder',type="string",default=None,help='')
    3437# plot --> upper case
    3538# -- generic
     
    3942parser.add_option('-D','--div',action='store',dest='div',type="int",default=20,help='')
    4043parser.add_option('-H','--trans',action='store',dest='trans',type="float",default=1.0,help='')
    41 parser.add_option('-O','--logy',action='store_true',dest='logy',default=False,help='')
     44parser.add_option('-Z','--logy',action='store_true',dest='logy',default=False,help='')
     45parser.add_option('-O','--save',action='store',dest='out',type="string",default="gui",help='')
    4246# -- 1D plot
    4347parser.add_option('-L','--lstyle',action='append',dest='lstyle',type="string",default=None,help='')
     
    8488if opt.add is not None: user = user + opt.add
    8589if opt.mult is not None: user = user * opt.mult
     90# get some options
     91user.superpose = opt.superpose
     92user.filename = opt.filename
     93user.folder = opt.folder
     94user.out = opt.out
    8695# define plot
    8796user.defineplot()
     
    9099# make plot
    91100user.makeplot()
     101
     102####################################
     103# save a .sh file with the command #
     104####################################
     105command = ""
     106for arg in sys.argv: command = command + arg + ' '
     107f = open(opt.filename+'.sh', 'w')
     108f.write(command)
  • trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py

    r911 r912  
    748748    ###########################################################
    749749    def getopt(self,opt):
    750         self.superpose = opt.superpose
    751750        # -- if only one, or less than the number of plots --> we take the first one
    752751        # -- if as many as number of plots --> OK, each plot has its own setting
Note: See TracChangeset for help on using the changeset viewer.