Re: Calculate differences between two data sets

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 09 2013 - 17:28:51 MDT

Hi Lifen,
You have non-standard characters in your source file. Character value 241 occurs about 10 times in the file. NCL can only handle standard 7-bit ascii characters. The first occurrence of these
characters is just before the first printVarSummary call. Since NCL does not understand these characters and they are not part of the regular syntax, it just exits. I am not sure whether we can
modify NCL to generate a warning in this case. But the fix is just to eliminate them. I am attaching a revised version of your script with these characters removed. It seems to work fine.
 -dave

On Oct 9, 2013, at 4:15 PM, Jiang, Lifen <lfjiang@ou.edu> wrote:

> Dear Dennis,
>
> Thank you for your reply!
>
> Yes, nothing happened. No summary was printed and no output file. I tried your "dble2flt(f1->regrid)" but still didn't show anything.
>
> I am really curious what was wrong.
>
> Thanks again,
>
> Lifen
>
>
> 2013-10-09
> Jiang, Lifen
> 发件人: Dennis Shea
> 发送时间: 2013-10-09 17:02:21
> 收件人: Jiang, Lifen; ncl-talk@ucar.edu
> 抄送:
> 主题: Re: [ncl-talk] Calculate differences between two data sets
> [1] Do you mean that none of the print(...) or printVarSummary(...)
> created output? That would be VERY strange.
> [2] Your code should have 'worked' in the sense that the difference
> values are correct. However, there will be no meta data.
> [3] Why ... no meta data? The reason is that 'doubletofloat' does
> not preserve meta data. Note the output from
> printVarSummary(t1) ; no meta data
> You should use:
> t1 = dble2flt(f1->regrid)
> printVarSummary(t1)
> I think this should work.
> Cheers
> On 10/9/13 2:26 PM, Jiang, Lifen wrote:
> > Hi NCL Users,
> >
> > I was calculating the differences at each grid between two data sets (both 180*360 for LAT and LON). However, there is no response (even no Error message) when I ran the code.
> >
> > I attached my data sets and code. I appreciate if anyone could help check the problems.
> >
> > Thank you in advance for your time!
> >
> > Best regards,
> >
> > Lifen
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Oct 9 17:29:01 2013

This archive was generated by hypermail 2.1.8 : Tue Oct 22 2013 - 10:35:27 MDT