Ignore:
Timestamp:
Mar 24, 2013, 6:46:08 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON planetoplot_v2. bug fix on automatic time indexing. added variables in set_var.txt

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

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py

    r910 r911  
    10201020             self.name_t = c
    10211021          try:
    1022             # speed up: only get first value, last one, and step.
     1022            # speed up: only get first value, last one.
    10231023            dafirst = self.f.variables[self.name_t][0]
    10241024            dalast = self.f.variables[self.name_t][self.dim_t-1]
    1025             step = self.f.variables[self.name_t][1] - dafirst
    1026             self.field_t = np.arange(dafirst,dalast,step)
     1025            self.field_t = np.linspace(dafirst,dalast,num=self.dim_t)
    10271026            if dafirst == dalast: self.field_t = np.array([dafirst])
    10281027          except:
  • trunk/UTIL/PYTHON/planetoplot_v2/set_var.txt

    r910 r911  
    5454DNUMBINTEMP ; %.0f ; gist_heat ; Temperature (K)
    5555NNUMBINTEMP ; %.0f ; gist_heat ; Temperature (K)
     56OLR ; %.0f ; gist_heat ; Outgoing Longwave Radiation (W m$^{-2}$)
     57ASR ; %.0f ; gist_heat ; Absorbed Solar Radiation (W m$^{-2}$)
     58ISR ; %.0f ; gist_heat ; Incoming Solar Radiation (W m$^{-2}$)
Note: See TracChangeset for help on using the changeset viewer.