Re: how to scale array

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 11 2011 - 09:00:34 MST

Chao,

There's not enough information to go on here. Can you send me the full script and the full error message?

Also, it would help if you print out the min and max of your data before you convert it, and again after you convert it and send me the output:

For example, if your variable is "x":

  printVarSummary(x)
  print("min/max x before scale = " + min(x) + "/" + max(x))

  x = const * x

  print("min/max x after scale = " + min(x) + "/" + max(x))

--Mary

On Nov 10, 2011, at 6:39 PM, Chao Luo wrote:

> Hi,
>
> I am trying to plot array (two dimensional monthly mean rain) by NCL. The array has Fill value. This is no prblem when I plot this array, but got error (fatal:ContourPlotDraw: draw error) when I plot scaled array ( array = array * const). I think this error is related to Fill vale (1.e+20). Any suggestions are very appreciated!
>
> Thanks,
>
> Chao
>
> _______________________________________________
> 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 Fri Nov 11 09:00:40 2011

This archive was generated by hypermail 2.1.8 : Mon Nov 14 2011 - 10:41:55 MST