Changeset 477 for trunk/UTIL
- Timestamp:
- Dec 16, 2011, 10:10:27 AM (13 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r475 r477 1011 1011 what_I_plot = array(what_I_plot) 1012 1012 shape = what_I_plot.shape 1013 if indextime is None :1013 if indextime is None and len(time) > 1: 1014 1014 print "AXIS is time" 1015 1015 x = time 1016 1016 count = count+1 1017 if indexlon is None :1017 if indexlon is None and len(lon) > 1: 1018 1018 print "AXIS is lon" 1019 1019 if count == 0: x = lon 1020 1020 else: y = lon 1021 1021 count = count+1 1022 if indexlat is None :1022 if indexlat is None and len(lon) > 1: 1023 1023 print "AXIS is lat" 1024 1024 if count == 0: x = lat 1025 1025 else: y = lat 1026 1026 count = count+1 1027 if indexvert is None and dim0 is 4:1027 if indexvert is None and ((dim0 is 4) or (y is None)): 1028 1028 print "AXIS is vert" 1029 1029 if vertmode == 0: # vertical axis is as is (GCM grid) -
trunk/UTIL/PYTHON/planetoplot.py
r475 r477 96 96 if slon is not None: vlon = slon[0][0] 97 97 if slat is not None: vlat = slat[0][0] 98 if mapmode == 0: winds=False99 elif mapmode == 1:100 if svert is None: svert = readslices(str(level)) ; nvert=1101 if stime is None and mrate is None:102 stime = readslices(str(0)) ; ntime=1 ## this is a default choice103 print "WELL... nothing about time axis. I took default: first time reference stored in file."104 98 if mrate is not None and len(var) > 1: errormess("multivar not allowed in movies. should be fixed soon!") 105 99 zelen = len(namefiles)*len(var) … … 128 122 typefile = whatkindfile(nc) 129 123 if typefile in ['mesoideal']: mapmode=0;winds=False 124 elif typefile in ['gcm'] and len(nc.variables["longitude"][:]) is 1 and len(nc.variables["latitude"][:]) is 1: mapmode=0;winds=False 125 if mapmode == 0: winds=False 126 elif mapmode == 1: 127 if svert is None: svert = readslices(str(level)) ; nvert=1 128 if stime is None and mrate is None: 129 stime = readslices(str(0)) ; ntime=1 ## this is a default choice 130 print "WELL... nothing about time axis. I took default: first time reference stored in file." 131 130 132 if firstfile: print "********** MAPMODE: ", mapmode 131 133 if firstfile: typefile0 = typefile
Note: See TracChangeset
for help on using the changeset viewer.