Changeset 748 for trunk/UTIL


Ignore:
Timestamp:
Jul 31, 2012, 1:31:28 AM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON : minor changes (HTML movie speed, help for tiles, bug corrected with time_counter

Location:
trunk/UTIL/PYTHON
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/body.html

    r451 r748  
    66theImages = new Array();      //holds the images
    77imageNum = new Array();       //keeps track of which images to omit from loop
    8 normal_delay = 1000;
     8normal_delay = 200;
    99delay = normal_delay;         //delay between frames in 1/100 seconds
    10 delay_step = 50;
    11 delay_max = 6000;
    12 delay_min = 50;
     10delay_step = 20;
     11delay_max = 2000;
     12delay_min = 20;
    1313dwell_multipler = 3;
    1414dwell_step = 1;
  • trunk/UTIL/PYTHON/myscript.py

    r721 r748  
    3232    parser.add_option('--div',          action='store',dest='ndiv',      type="int",     default=10,    help='number of divisions in colorbar [10]')
    3333    parser.add_option('--title',        action='store',dest='zetitle',   type="string",  default="fill",help='customize the whole title')
    34     parser.add_option('-T', '--tiled',  action='store_true',dest='tile',                 default=False, help='draw a tiled plot (no blank zone)')
     34    parser.add_option('-T', '--tiled',  action='store_true',dest='tile',                 default=False, help='draw a tiled plot (3D) or add crosses (1D)')
    3535    parser.add_option('--res',          action='store',dest='res',       type="float",   default=200.,  help='resolution for png outputs. --save png needed. [200.]')
    3636    parser.add_option('--trans',        action='store',dest='trans',     type="float",   default=1.,    help='shaded plot transparency, 0 to 1 (=opaque) [1]')
  • trunk/UTIL/PYTHON/planetoplot.py

    r735 r748  
    145145    ### we explore the variables in the file
    146146      varinfile = nc.variables.keys()
    147       if seevar: print varinfile ; exit()
     147      if seevar: print varinfile ; exit() 
    148148    ### we define the type of file we have (gcm, meso, etc...)
    149149      typefile = whatkindfile(nc)
     
    218218      ### we define time vector. either it is referenced or it is guessed based on last variable's dimensions.
    219219          if "Time" in nc.variables:            time = nc.variables["Time"][:]
     220          elif "time_counter" in nc.variables:  time = nc.variables["time_counter"][:]/86400. #### convert from s to days
    220221          elif "time" in nc.variables:          time = nc.variables["time"][:]
    221           elif "time_counter" in nc.variables:  time = nc.variables["time_counter"][:]/86400. #### convert from s to days
    222222          ### --> add a line here if your reference is not present
    223223          else:
     
    665665                        zelevels = np.linspace(zevminc,zevmaxc,ticks/2) #20)
    666666                        ### another dirty specific stuff in the wall
    667                         if var2 == 'HGT':        zelevels = np.arange(-10000.,30000.,1000.)
     667                        if var2 == 'HGT':        zelevels = np.arange(-10000.,30000.,500.) #1000.)
    668668                        elif var2 == 'tpot':     zelevels = np.arange(270,370,5)
    669669                        elif var2 == 'tk':       zelevels = np.arange(150,250,5)
Note: See TracChangeset for help on using the changeset viewer.