Re: fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 22 2012 - 09:41:45 MST

Ahmed,

Without being able to run your script, I don't know what the problem is. It appears it is happening in gsn_csm_map, according to the error message.
Does it give you any more information about line numbers?

What version of NCL do you have?

One thing that might be a problem is if any of your "resm" resource settings are arrays, when they are supposed to be scalars.

Add this line:

   print(resm)

and carefully look at the resource list to see if any of the values are arrays, rather than scalars.

--Mary

On Feb 22, 2012, at 7:56 AM, ahmed lasheen wrote:

> Hello
> i write script to plot mm5 netcdf file, it give me the following error
> fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions
> i have no all or any function and though i have the previous error.
> the error is in line 273
> plot_m =gsn_csm_map(wks,resm)
> , i put before and after this line print statement .and the print after this line doesn't appear.
> i donot know exactly what is wrong.
> i have attached the file.
> thanks in advance
> --
> ===============
> Ahmed Lasheen
> Junior researcher at Cairo Numerical Weather Prediction Center (CNWPC)
> Egyptian Meteorological Authority(EMA)
> Cairo,Egypt
> ===============
>
> <mm5_surface.ncl>_______________________________________________
> 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 Feb 22 09:41:57 2012

This archive was generated by hypermail 2.1.8 : Thu Feb 23 2012 - 10:01:53 MST