Changeset 1077 for trunk/UTIL/PYTHON
- Timestamp:
- Oct 18, 2013, 6:33:56 PM (11 years ago)
- Location:
- trunk/UTIL/PYTHON/mcd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/mcd/mcd.py
r1075 r1077 133 133 94: "W-E wind component (m/s)", \ 134 134 95: "S-N wind component (m/s)", \ 135 96: "Horizontal wind speed (m/s)", \ 135 136 1: "Radial distance from planet center (m)",\ 136 137 2: "Altitude above areoid (Mars geoid) (m)",\ … … 246 247 elif num == "u": num = 94 247 248 elif num == "v": num = 95 249 elif num == "wind": num = 96 248 250 elif num == "tsurf": num = 15 249 251 elif num == "topo": num = 4 … … 379 381 self.extvar[90] = self.pres ; self.extvar[91] = self.dens 380 382 self.extvar[92] = self.temp ; self.extvar[93] = self.zonwind ; self.extvar[94] = self.merwind 383 self.extvar[95] = np.sqrt(self.extvar[93]**2 + self.extvar[94]**2) # calculate wind modulus 381 384 ## treat missing values 382 385 if self.temp == -999: self.extvar[:] = np.NaN ; self.meanvar[:] = np.NaN -
trunk/UTIL/PYTHON/mcd/proto/cgi-bin/mcdcgi.py
r1075 r1077 92 92 isloctfree, query.loct, query.locts, query.locte = gethtmlcoord( form.getvalue("localtime"), 0., 24. ) 93 93 isaltfree, query.xz, query.xzs, query.xze = gethtmlcoord( form.getvalue("altitude"), minxz, maxxz) 94 if minxz < 0.1: minxz=0.1 # otherwise bug with values smaller than 0.1m 95 96 94 97 95 98 try: query.datekey = int(form.getvalue("datekeyhtml")) … … 168 171 except: query.max2d = None 169 172 170 try: query.dpi = form.getvalue("dpi") 171 except: query.dpi = 80. 172 if query.dpi == "eps": yeaheps = True ; query.dpi = 300. 173 else: yeaheps = False ; query.dpi = float(query.dpi) 173 try: 174 query.dpi = form.getvalue("dpi") 175 if query.dpi == "eps": yeaheps = True ; query.dpi = 300. 176 else: yeaheps = False ; query.dpi = float(query.dpi) 177 except: 178 query.dpi = 80 179 yeaheps = False 174 180 175 181 # Get variables to plot -
trunk/UTIL/PYTHON/mcd/proto/index5.html
r1075 r1077 132 132 <b>4) INTEREST</b> 133 133 <input type="radio" name="yeah" value="Atmosphere" onClick="PlaceVar('t','p','none','none');ChooseColor('jet')" checked>Atmosphere<br /> 134 <input type="radio" name="yeah" value="Winds" onClick="PlaceVar(' u','v','none','none');ChooseColor('RdBu_r')">Winds134 <input type="radio" name="yeah" value="Winds" onClick="PlaceVar('wind','w','u','v');ChooseColor('RdBu_r')">Winds 135 135 <input type="radio" name="yeah" value="Weather" onClick="PlaceVar('ps_ddv','rho_ddv','none','none');ChooseColor('RdBu_r')">Weather<br /> 136 136 <input type="radio" name="yeah" value="Water cycle" onClick="PlaceVar('h2ovap','mtot','h2oice','icetot');ChooseColor('Blues')">Water cycle … … 148 148 <option value="p" >Pressure (Pa)</option> 149 149 <option value="rho" >Density (kg/m3)</option> 150 <option value="wind" >Horizontal wind (m/s)</option> 151 <option value="w" >Vertical wind (m/s, pos. when downward)</option> 150 152 <option value="u" >W-E wind component (m/s)</option> 151 153 <option value="v" >S-N wind component (m/s)</option> 152 <option value="w" >Vertical wind (m/s, pos. when downward)</option>153 154 <option value="tsurf" >Surface temperature (K)</option> 154 155 <option value="ps" >Surface pressure (Pa)</option> … … 202 203 <option value="p" >Pressure (Pa)</option> 203 204 <option value="rho" >Density (kg/m3)</option> 205 <option value="wind" >Horizontal wind (m/s)</option> 206 <option value="w" >Vertical wind (m/s, pos. when downward)</option> 204 207 <option value="u" >W-E wind component (m/s)</option> 205 208 <option value="v" >S-N wind component (m/s)</option> 206 <option value="w" >Vertical wind (m/s, pos. when downward)</option>207 209 <option value="tsurf" >Surface temperature (K)</option> 208 210 <option value="ps" >Surface pressure (Pa)</option> … … 256 258 <option value="p" >Pressure (Pa)</option> 257 259 <option value="rho" >Density (kg/m3)</option> 260 <option value="wind" >Horizontal wind (m/s)</option> 261 <option value="w" >Vertical wind (m/s, pos. when downward)</option> 258 262 <option value="u" >W-E wind component (m/s)</option> 259 263 <option value="v" >S-N wind component (m/s)</option> 260 <option value="w" >Vertical wind (m/s, pos. when downward)</option>261 264 <option value="tsurf" >Surface temperature (K)</option> 262 265 <option value="ps" >Surface pressure (Pa)</option> … … 310 313 <option value="p" >Pressure (Pa)</option> 311 314 <option value="rho" >Density (kg/m3)</option> 315 <option value="wind" >Horizontal wind (m/s)</option> 316 <option value="w" >Vertical wind (m/s, pos. when downward)</option> 312 317 <option value="u" >W-E wind component (m/s)</option> 313 318 <option value="v" >S-N wind component (m/s)</option> 314 <option value="w" >Vertical wind (m/s, pos. when downward)</option>315 319 <option value="tsurf" >Surface temperature (K)</option> 316 320 <option value="ps" >Surface pressure (Pa)</option>
Note: See TracChangeset
for help on using the changeset viewer.