visualize WWIII data using bokeh

I am using from scipy.io import netcdf to read the .nc file, but it throws error. I have attached my python file with this email. The .nc file I have taken from Scipy 2015 presentation by Christine.

map-netcdf.py (730 Bytes)

What error? This doesn't seem like a Bokeh problem, per se.

Bryan

···

On Feb 2, 2016, at 11:59 AM, [email protected] wrote:

I am using from scipy.io import netcdf to read the .nc file, but it throws error. I have attached my python file with this email. The .nc file I have taken from Scipy 2015 presentation by Christine.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/a433a8ed-02a6-4954-bd69-6e76d72de609%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<map-netcdf.py>

Hey Kavit,

I notice two things. You use Scipy to open the NetCDF file. But i think (?) Scipy only handles NetCDF3. The file from Christine’s repo is a NetCDF4 file. I recommend using the NetCDF4 module for this, is there a reason why you don’t want to use it?

Secondly, the name of the palette you pass to the colormapper is typed wrong. You use ‘RGBAColorMapper(-6, -6, RdBull)’, it should be ‘RdBu11’. That’s Red-Blue-Eleven, not RedBull. :wink:

Changing those two things makes the script work for me.

Regards,
Rutger

···

On Tuesday, February 2, 2016 at 6:59:39 PM UTC+1, Kavit Mehta wrote:

I am using from scipy.io import netcdf to read the .nc file, but it throws error. I have attached my python file with this email. The .nc file I have taken from Scipy 2015 presentation by Christine.