Changeset 364 for trunk/UTIL


Ignore:
Timestamp:
Nov 9, 2011, 3:43:11 PM (13 years ago)
Author:
acolaitis
Message:

Correction for different convention of naming the time axis in different ncdf files...

Location:
trunk/UTIL/PYTHON
Files:
2 edited

Legend:

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

    r363 r364  
    114114          lat = nc.variables["latitude"][:]
    115115          lon = nc.variables["longitude"][:]
    116           time = nc.variables["time"][:]
    117 #          if errorTime is True:
    118 #             time = nc.variables["time"][:]
     116          if "Time" in nc.variables:
     117             time = nc.variables["Time"][:]
     118          elif "time" in nc.variables:
     119             time = nc.variables["time"][:]
     120          else:
     121             print "no time axis found."
     122             exit()
    119123          vert = nc.variables["altitude"][:]
    120124      elif typefile in ['meso','mesoapi']:
  • trunk/UTIL/PYTHON/zrecast_wrapper.py

    r363 r364  
    22### A. Colaitis -- LMD -- 08/11/2011
    33
    4 def call_zrecast (  interp_mode   = '3', \
     4def call_zrecast (  interp_mode   = '4', \
    55                    input_name      = None, \
    66                    fields  = 'all'):
     
    2828             system("echo 1 >> zrecast.auto.def")
    2929             system("echo yes >> zrecast.auto.def")
    30              system("echo 0.0001 6. >> zrecast.auto.def")  #I put that randomly! (a.c.)
     30             system("echo 16.58 0.11 >> zrecast.auto.def")  #I put that randomly! (a.c.)
    3131             system("echo 32 >> zrecast.auto.def")
    3232        else:
Note: See TracChangeset for help on using the changeset viewer.