Dear All:
I have a NCL script contains the following:
sim = addfile("Mt_Cook.day_38102.nc","r")
x1 = sim->snow_liq_gb(:,0,0)
x2 = sim->snow_mass_gb(:,0,0)
ssnow = where(x2.gt.0.01, x1/x2, -999.)
When I ran it, I had the following errors:
fatal:divide: Division by 0, Can't continue
fatal:Div: operator failed, can't continue
fatal:Execute: Error occurred at or near line 19 in file snow_sim_mass_1_ratio.ncl
Line 19 is: ssnow = where(x2.gt.0.01, x1/x2, -999.)
I cannot figure out why "where" cannnot work here? Any help is appreciated. Thanks!
Ed
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 18 15:00:36 2013
This archive was generated by hypermail 2.1.8 : Thu Feb 21 2013 - 11:26:43 MST