Changeset 748 for trunk/UTIL
- Timestamp:
- Jul 31, 2012, 1:31:28 AM (12 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/body.html
r451 r748 6 6 theImages = new Array(); //holds the images 7 7 imageNum = new Array(); //keeps track of which images to omit from loop 8 normal_delay = 1000;8 normal_delay = 200; 9 9 delay = normal_delay; //delay between frames in 1/100 seconds 10 delay_step = 50;11 delay_max = 6000;12 delay_min = 50;10 delay_step = 20; 11 delay_max = 2000; 12 delay_min = 20; 13 13 dwell_multipler = 3; 14 14 dwell_step = 1; -
trunk/UTIL/PYTHON/myscript.py
r721 r748 32 32 parser.add_option('--div', action='store',dest='ndiv', type="int", default=10, help='number of divisions in colorbar [10]') 33 33 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)') 35 35 parser.add_option('--res', action='store',dest='res', type="float", default=200., help='resolution for png outputs. --save png needed. [200.]') 36 36 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 145 145 ### we explore the variables in the file 146 146 varinfile = nc.variables.keys() 147 if seevar: print varinfile ; exit() 147 if seevar: print varinfile ; exit() 148 148 ### we define the type of file we have (gcm, meso, etc...) 149 149 typefile = whatkindfile(nc) … … 218 218 ### we define time vector. either it is referenced or it is guessed based on last variable's dimensions. 219 219 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 220 221 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 days222 222 ### --> add a line here if your reference is not present 223 223 else: … … 665 665 zelevels = np.linspace(zevminc,zevmaxc,ticks/2) #20) 666 666 ### 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.) 668 668 elif var2 == 'tpot': zelevels = np.arange(270,370,5) 669 669 elif var2 == 'tk': zelevels = np.arange(150,250,5)
Note: See TracChangeset
for help on using the changeset viewer.