convert array to scalar for subtraction?

From: Jeanne Thibeault <jeanne.thibeault_at_nyahnyahspammersnyahnyah>
Date: Mon, 21 Sep 2009 17:23:51 -0400

Dear NCL,

I would like to subtract one array from another: x-y

x has dimensions [time | 199] x [lat | 64] x [lon | 128]
y has dimensions [time | 1] x [lat | 64] x [lon | 128]

fatal:Minus: Dimension size, for dimension number 0, of operands does
not match, can't continue

I understand why I get the error. How can I convert the time
dimension of y to a scalar so that I can subtract it from each time
dimension of x? Or is there a better way?

Thank you for your help.

Jeanne

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Sep 21 2009 - 15:23:51 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 24 2009 - 13:55:09 MDT