Re: what is the difference between gsn_contour and gsn_csm_contour

From: guangshan chen <gchen9_at_nyahnyahspammersnyahnyah>
Date: Wed May 05 2010 - 22:16:25 MDT

Hi Mary,

Thanks.

I analyze data on Franklin in NERSC. The version of NCL is 5.1.1.

I have version 5.2.0 on my own laptop.
I tried on my laptop. Both of them works. Thanks.

Guangshan

On May 5, 2010, at 5:14 PM, Mary Haley wrote:

>
> Hi Guangshan,
>
> You are running into a problem that we fixed in V5.2.0, but unfortunately I can't find a description of it online. The bug was with using coordinate arrays in special cases (I'm not sure what the special case is, but Dave Brown can elaborate).
>
> The reason the white space doesn't show up with gsn_contour, is because this routine doesn't check to see if you have coordinate arrays, and it simply doesn't use them.
>
> gsn_csm_contour, however, will use your coordinate arrays to define your X and Y axis.
>
> I thought you were running V5.2.0, however? Let me know if you are, and still seeing this problem. I just tried your code here, <gsn_csm_contour_result.ps>and the plots look fine in both cases (thanks for providing script and data).
>
> --Mary
>
>
>
> On May 5, 2010, at 10:52 AM, Guangshan Chen wrote:
>
>> Dear all,
>>
>> Have anyone noticed that the difference between the gsn_contour and gsn_csm_contour when you plot the contour figures?
>>
>> I met a problem when I use gsm_csm_contour to plot a figure. I could not figure
>> out the reason. So I tried gsn_contour. I fond there are some difference between gsn_contour and gsn_csm_contour.
>>
>> Differences:
>>
>> 1. there are some white spaces in the figure plotted by gsn_csm_contour.
>>
>> 2. The blue shaded area is at x-axis equal to 8 on the panel 3 in the figure plotted by gsn_csm_contour. But it is at x-axis equal to 7 on the panel 3 in the figure plotted by gsn_contour.
>>
>> I don't know which is right. I attached the data and ncl scripts. Could any one help
>> me?
>>
>> Thanks.
>>
>> Guangshan
>>
>> <soil_moisture_data.nc><gsn_csm_contour_test.ncl><gsn_contour_test.ncl>
>> <gsn_csm_contour_result.ps>
>> <gsn_contour_result.ps>_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
Received on Wed May 5 22:16:31 2010

This archive was generated by hypermail 2.1.8 : Fri May 07 2010 - 10:36:00 MDT