Hello,
First let me say thank you for all of the help it is very appreciated. Your
suggestion to use the command import "import mpl_toolkits.basemap" has
worked, but now a new problem has popped up.
Does the Netcdf file need to be in the same directory as the script I am
running to retrieve the file? I have moved the netcdf file to the same
location as the script and I get the following error.
Traceback (most recent call last):
File "/Users/interpott/Documents/trial.py", line 7, in <module>
mpl_toolkits.basemap.NetCDFFile(output.nc, mode='r', maskandscale=True,
cache=None, mmap=True, username=None, password=None, verbose=False)
NameError: name 'output' is not defined
Any thoughts?
Thanks,
Jon
Matthew Brett wrote:
>
> Hi,
>
> On Fri, Jun 12, 2009 at 10:52 AM, JPKay<[email protected]> wrote:
>> from mpl_toolkits.basemap import Basemap
>
> You have not so far imported mpl_toolkits into the namespace, only
> Basemap. You could do:
>
> import mpl_toolkits.basemap
>
> as another import line, or:
>
> from mpl_toolkits.basemap import Basemap, NetCDFFile
>
> followed by:
>
> ncfile = NetCDFFile(output.nc, ...)
>
> Best,
>
> Matthew
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
View this message in context:
http://www.nabble.com/Quiver-plot-of-a-netcdf-file-tp23986313p24005790.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users