Re: Plotting problem

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 06 2013 - 15:41:38 MST

Hi Lifen,
I got your data file. (Note you should not attach such big files to email. We much prefer you to upload them to the ftp site using the directions at the "report bugs" link.)

Even though the data has a _FillValue set to -32767 and there are many elements of your data array that are set to the fill value, it appears that there are also a number of values
set to -9999 and -9998 that are out of the range of your actual data. It looks to me like your real data has a range from 0 to 130.
I used the 'where' function to change values less than -9997 to the fill value.

I have attached a modified version of your script that gives a reasonable plot of your data.

You do not need to to the lonFlip.

I strided the data rather severely just so I could get it to plot fast. You can get a higher res plot if you reduce the stride values.
I am also attaching a png of the plot.

On Feb 6, 2013, at 1:24 PM, Jiang, Lifen wrote:

> Thank Dave and Dennis for your answering!
> However, this time I got the following warning and plot (only half). My data should between 0 and 20. It seems NCL treats missing values as my variable values.
> Lifen
> <Catch3.jpg>
> <Catch4.jpg>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Feb 6 15:41:50 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 06 2013 - 16:37:00 MST