Estefania
The problem is pretty much what the error message describes, I.e. you a passing a string to the stringtofloat() function that is not a number. To clarify
print(stringtofloat("1a")) ; will return the same error message
print(stringtofloat("1")) ; will return a float value of 1.0
Will
From: Estefanía Jiménez <estefaniajimenez.r@gmail.com<mailto:estefaniajimenez.r@gmail.com>>
Date: Mon, 22 Aug 2011 13:40:48 -0700
To: "ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>" <ncl-talk@ucar.edu<mailto:ncl-talk@ucar.edu>>
Subject: A bad value was passed to stringtofloat & Subscript out of range
Hi NCL users! Please help... I get the following messages while I am trying to run a script.
warning:A bad value was passed to stringtofloat, input strings must contain numeric digits, replacing with missing value
warning:A bad value was passed to stringtofloat, input strings must contain numeric digits, replacing with missing value
warning:A bad value was passed to stringtofloat, input strings must contain numeric digits, replacing with missing value
warning:A bad value was passed to stringtofloat, input strings must contain numeric digits, replacing with missing value
fatal:Subscript out of range, error in subscript #0
fatal:Execute: Error occurred at or near line 165 in file make_daily_ts.ncl
Suggestions??
Thanks in advance
-- Estefanía Jiménez R. Meteoróloga Departamento de Climatología e Investigaciones Aplicadas Instituto Meteorológico Nacional MINAET Costa Rica Tel: +506 2222 5616 ext 136
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Aug 22 14:47:21 2011
This archive was generated by hypermail 2.1.8 : Thu Aug 25 2011 - 09:54:48 MDT