Changeset 582 for trunk


Ignore:
Timestamp:
Mar 14, 2012, 12:11:16 PM (13 years ago)
Author:
acolaitis
Message:

Python. Bug correction (another one, yay \! )

File:
1 edited

Legend:

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

    r580 r582  
    9999### we initialize a few variables
    100100    initime=-1 ; sslon = None ; sslat = None
     101    if slon is not None: sslon = np.zeros([1,2])
     102    if slat is not None: sslat = np.zeros([1,2])
    101103    k = 0 ; firstfile = True ; count = 0
    102104### we avoid specific cases not yet implemented
     
    200202          ###### principle: calculate correct indices then repopulate slon and slat
    201203          if slon is not None or slat is not None:
    202               if slon is not None: sslon = np.zeros([1,2])
    203               if slat is not None: sslat = np.zeros([1,2])
    204 
    205204              if firstfile and save == 'png' and typefile == 'meso' and "HGT" in varinfile:   iwantawhereplot = nc     #show a topo map with a cross on the chosen point
    206205              else:                                                                           iwantawhereplot = None   #do not show anything, just select indices
Note: See TracChangeset for help on using the changeset viewer.