----- Original Message -----
> From: Michael Rawlins <rawlin...@yahoo.com>
> To: Jeff Whitaker <jeffrey.s.whita...@noaa.gov>; Benjamin Root 
> <ben.r...@ou.edu>; Matplotlib Users <matplotlib-users@lists.sourceforge.net>
> Cc: 
> Sent: Wednesday, September 26, 2012 6:23 PM
> Subject: Re: [Matplotlib-users] error reading netcdf file
> 
> 
> 
>> ________________________________
>>  From: Jeff Whitaker <jeffrey.s.whita...@noaa.gov>
>> To: Benjamin Root <ben.r...@ou.edu>; Michael Rawlins 
> <rawl...@geo.umass.edu>; Matplotlib Users 
> <matplotlib-users@lists.sourceforge.net> 
>> Sent: Wednesday, September 26, 2012 5:10 PM
>> Subject: Re: [Matplotlib-users] error reading netcdf file
>> 
>> 
>> Michael:  You can't change an attribute in a read-only dataset.  It 
> should never have worked.
>> 
>> -Jeff
>> 
>> 
> 
> 
> Thanks Jeff and Ben.
> 
> Below is a complete version of one such program I use. I was give the program 
> by 
> a colleague and I do not know who wrote that code.  My previous post showed 
> only 
> as far as the missing data statement.
> 


<snip>

I've gotten my script to work by setting the missing value another way. I'm 
showing lines commented out as well.

#data.missing_value=-9.99
#try:
#    mval=data.missing_value
#    print " using specified missing value =",mval
#except:
    mval=-9.99
#    print " faking missing value=",mval
# make a masked array: using missing value(s) in mval
maskdat=ma.masked_values(slice,mval)


If I understand correctly, in previous versions the value of -9.99 was passed 
through the data.missing_value into mval. A mistake in coding that did not 
result in an error.  I will implement the change. Tomorrow I'll check that this 
solution is backward compatible.

Mike

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to