[SciPy-User] numpy.squeeze not squeezing

Bruce Ford bruce at clearscienceinc.com
Wed Sep 30 16:44:29 EDT 2009


Squeeze doesn't seem to be squeezing.  What am I missing?

An array extracted from a NetCDF3 file using NetCDF4 is shaped:  (248,1,181.360)

I want it to be shaped (248,181,360)

out = np.squeeze(in)
print out.shape

yeilds  ()

Am I missing a step?

Any assistance would be appreciated!

Bruce
---------------------------------------
Bruce W. Ford
Clear Science, Inc.
bruce at clearscienceinc.com



More information about the SciPy-User mailing list