Re: possible bug in month_to_annual

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed May 26 2010 - 10:29:24 MDT

Ufuk,

I couldn't reproduce this error given the information below. I used a dummy variable with the same size as yours.

One requirement is that your dimensions are named. Is this the case?

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

  var_raw = random_uniform(0.,2.,(/360,146,196/))
  var_raw!0 = "time"
  var_raw!1 = "lat"
  var_raw!2 = "lon"

  var = month_to_annual(var_raw, 1)

--Mary

On May 22, 2010, at 11:15 AM, u.utku.turuncoglu@be.itu.edu.tr wrote:

> Hi,
>
> I try to use month_to_annual function (var = month_to_annual(var_raw, 1))
> but it gives the following error,
>
> fatal:mask: dimension sizes of parameter 0 and parameter 1 do not match
> fatal:Execute: Error occurred at or near line 8537 in file
> $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> The input array dimension is,
>
> -- var_raw
> (0) 360
> (1) 146
> (2) 196
>
> and it contains _FillValue attribute. So, i add the following lines into
> "contributed.ncl" file
>
> print(dimsizes(xAnnual(nyr,:,:)))
> print(dimsizes(nGood))
>
> just before the line that is indicated in error message. The dimension
> sizes are,
>
> -- xAnnual
> (0) 146
> (1) 196
>
> -- nGood
> (0) 12
> (1) 146
>
> so the array sizes that are used in mask function is not same. How can
> solve it?
>
> Thanks,
>
> --ufuk
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> 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 May 26 10:29:29 2010

This archive was generated by hypermail 2.1.8 : Wed May 26 2010 - 10:39:13 MDT