selecting a variable based on a variable name

From: <Mark.Collier_at_nyahnyahspammersnyahnyah>
Date: Tue, 4 Aug 2009 19:47:27 +1000

Hi,

p75 = 0.8
p90 = 0.83
p95 = 0.87

N=90

how can i assign the p90 value (0.83) to a variable critical using just the string "p" and integer N?

this doesn't work?

critical="p"+$N$

print(critical)

Regards,
Mark.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Aug 04 2009 - 03:47:27 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 05 2009 - 20:36:03 MDT