Re: argument mismatch issue

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun Oct 16 2011 - 09:20:04 MDT

This type of error can be diagnosed by doing a printVarSummary(...)
of kf_filter and es. Or, print(typeof(kf_filter)) and print(typeof(es))

Perhaps, kf_filter is type double and es is type float? If so,

   es(time|:,lat|y,lon|:) = tofloat( \
       (/ kf_filter( data(time|:,lat|y,lon|:), \
    obsPerDay, 2, 10, -20, -6, 90, mis, "mrg" ) /) )

On 10/16/11 9:08 AM, Coly SAR wrote:
> Dear all,
>
> I am having a mismatch argument error when running a script with my data
> as shown below:
>
> Number of Dimensions: 3
> Dimensions and sizes: [time | 1827] x [lat | 73] x [lon | 141]
> Coordinates:
> time: [ 0..2629440]
> lat: [-0.5..35.5]
> lon: [-22.5..47.5]
> Number Of Attributes: 1
> _FillValue : -999000000
> (0) 0 72 dim oct 16 14:55:40 GMT 2011
> fatal:Argument type mismatch on argument (0) of (kf_filter) can not coerce
> fatal:Execute: Error occurred at or near line 97
>
> Hoping to have a hint to solve this urgent problem.
>
> The line of the code is below:
>
> es(time|:,lat|y,lon|:) = (/ kf_filter( data(time|:,lat|y,lon|:), \\
> obsPerDay, 2, 10, -20, -6, 90, mis, "mrg" ) /)
>
> Thanks,
>
> CS
>
>
>
> _______________________________________________
> 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 Sun Oct 16 09:20:10 2011

This archive was generated by hypermail 2.1.8 : Tue Oct 18 2011 - 09:42:15 MDT