Ignore:
Timestamp:
Oct 18, 2013, 6:33:56 PM (11 years ago)
Author:
aslmd
Message:

UTIL PYTHON MCD ONLINE. various improvements and bug fixes: notably altitude 0, wind modulus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/mcd/mcd.py

    r1075 r1077  
    133133        94: "W-E wind component (m/s)", \
    134134        95: "S-N wind component (m/s)", \
     135        96: "Horizontal wind speed (m/s)", \
    135136        1: "Radial distance from planet center (m)",\
    136137        2: "Altitude above areoid (Mars geoid) (m)",\
     
    246247        elif num == "u": num = 94
    247248        elif num == "v": num = 95
     249        elif num == "wind": num = 96
    248250        elif num == "tsurf": num = 15
    249251        elif num == "topo": num = 4
     
    379381        self.extvar[90] = self.pres ; self.extvar[91] = self.dens
    380382        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
    381384        ## treat missing values
    382385        if self.temp == -999: self.extvar[:] = np.NaN ; self.meanvar[:] = np.NaN
Note: See TracChangeset for help on using the changeset viewer.