CDAT / dv3d

1 stars 0 forks source link

debug statement dumped to console #13

Open doutriaux1 opened 7 years ago

doutriaux1 commented 7 years ago
import vcs
a=vcs.init()
dv3=a.get3d_vector() # default 3d_vector
import cdms2 # Need cdms2 to create a slab
f = cdms2.open(vcs.sample_data+'/clt.nc') # get data file
s = f('u') # use data file to create a cdms2 slab
s2 = f('v') # need two slabs, so get another
a.vector3d(dv3,s,s2) # Plot slabs

leads to:

doutriaux1@sofia:[wget-1.18]:[travis_mac]:[8628]> python it.py 
Warning, can't open data file 'None'
 Can't get Metadata for var __zeros__!
Sample rate: 6 
Sample rate: 6 
 Update Text Display:  Level: 0.00 
initCamera: Camera => ((0.0, 0.0, 540.0), (0.0, 0.0, 0.0), (0.0, 1.0, 0.0)) 

thanks @embrown for reporting this.

ghost commented 7 years ago

https://github.com/UV-CDAT/dv3d/ is to blame for all of these.

Warning, can't open data file 'None' : https://github.com/UV-CDAT/dv3d/blob/master/StructuredVariableReader.py#L121

Can't get Metadata for var __zeros__! : https://github.com/UV-CDAT/dv3d/blob/master/ConfigurationFunctions.py#L1390

Sample rate: 6 : https://github.com/UV-CDAT/dv3d/blob/master/ImagePlaneWidget.py#L1807

Update Text Display: Level: 0.00 : https://github.com/UV-CDAT/dv3d/blob/master/ImagePlaneAxisAlignedWidget.py#L768

initCamera: Camera => ((0.0, 0.0, 540.0), (0.0, 0.0, 0.0), (0.0, 1.0, 0.0)) : https://github.com/UV-CDAT/dv3d/blob/master/DV3DPlot.py#L1342

aashish24 commented 7 years ago

Roger that @doutriaux1 @embrown

@danlipsa should I look into it or you want to make a first pass on it?