[Met_help] [rt.rap.ucar.edu #72782] History for Error with fields package
John Halley Gotway via RT
met_help at ucar.edu
Mon Aug 17 12:09:59 MDT 2015
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hi John.
This is the error that I have got after ruuung the script.
aditya at agniilap:~/geeta/installs/met/RUN_MET-22apr2011-BNG$ Rscript ../R_scripts/fss_quilt_plot.R ./out-22apr2011-00to00UTC WRF 240000
Loading required package: methods
Loading required package: spam
Loading required package: grid
Spam version 1.0-1 (2014-09-09) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: ‘spam’
The following objects are masked from ‘package:base’:
backsolve, forwardsolve
Loading required package: maps
Attaching package: ‘fields’
The following object is masked from ‘package:maps’:
ozone
gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
Attaching package: ‘gdata’
The following object is masked from ‘package:stats’:
nobs
The following object is masked from ‘package:utils’:
object.size
Read 80 lines from STAT file: ./out-22apr2011-00to00UTC/NBRCNT_WRF.stat
Read 10 lines from STAT file: ./out-22apr2011-00to00UTC/CTC_WRF.stat
Plotting 80 lines
Warning message:
NAs introduced by coercion
Warning message:
NAs introduced by coercion
Thresholds Found [ 0 ]:
Neighborhood Sizes Found [ 8 ]:
1 9 25 49 81 121 169 225
Error in ctc_scores$FY_OY + ctc_scores$FN_OY :
non-numeric argument to binary operator
Execution halted
aditya at agniilap:~/geeta/installs/met/RUN_MET-22apr2011-BNG$
Can U pls suggest???
Geeta
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: Error with fields package
From: John Halley Gotway
Time: Tue Jul 28 10:58:30 2015
Geeta,
I suspect the error you're getting from R is from the code that's
trying to
parse the threshold values. And that's why you're getting the "NAs
introduced by coercion" warning. I ran into the same issue the other
day
when helping a DTC visitor make the same type of plot.
Please try using the attached version of fss_quilt_plot.R.
Specifically,
note the change on these lines:
NBR_DATA$THRESH<-as.numeric(gsub("[><=]", "",
as.character(NBR_DATA$FCST_THRESH)))
CTC_DATA$THRESH<-as.numeric(gsub("[><=]", "",
as.character(CTC_DATA$FCST_THRESH)))
Hope that helps.
John
On Tue, Jul 28, 2015 at 10:15 AM, Geeta Geeta via RT
<met_help at ucar.edu>
wrote:
>
> Tue Jul 28 10:15:43 2015: Request 72782 was acted upon.
> Transaction: Ticket created by geeta124 at hotmail.com
> Queue: met_help
> Subject: Error with fields package
> Owner: Nobody
> Requestors: geeta124 at hotmail.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=72782 >
>
>
> Hi John.
> This is the error that I have got after ruuung the script.
>
> aditya at agniilap:~/geeta/installs/met/RUN_MET-22apr2011-BNG$ Rscript
> ../R_scripts/fss_quilt_plot.R ./out-22apr2011-00to00UTC WRF 240000
> Loading required package: methods
> Loading required package: spam
> Loading required package: grid
> Spam version 1.0-1 (2014-09-09) is loaded.
> Type 'help( Spam)' or 'demo( spam)' for a short introduction
> and overview of this package.
> Help for individual functions is also obtained by adding the
> suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
>
> Attaching package: ‘spam’
>
> The following objects are masked from ‘package:base’:
>
> backsolve, forwardsolve
>
> Loading required package: maps
>
> Attaching package: ‘fields’
>
> The following object is masked from ‘package:maps’:
>
> ozone
>
> gdata: read.xls support for 'XLS' (Excel 97-2004) files ENABLED.
>
> gdata: read.xls support for 'XLSX' (Excel 2007+) files ENABLED.
>
> Attaching package: ‘gdata’
>
> The following object is masked from ‘package:stats’:
>
> nobs
>
> The following object is masked from ‘package:utils’:
>
> object.size
>
> Read 80 lines from STAT file: ./out-22apr2011-
00to00UTC/NBRCNT_WRF.stat
> Read 10 lines from STAT file: ./out-22apr2011-00to00UTC/CTC_WRF.stat
> Plotting 80 lines
> Warning message:
> NAs introduced by coercion
> Warning message:
> NAs introduced by coercion
> Thresholds Found [ 0 ]:
>
> Neighborhood Sizes Found [ 8 ]:
> 1 9 25 49 81 121 169 225
> Error in ctc_scores$FY_OY + ctc_scores$FN_OY :
> non-numeric argument to binary operator
> Execution halted
> aditya at agniilap:~/geeta/installs/met/RUN_MET-22apr2011-BNG$
> Can U pls suggest???
> Geeta
>
>
------------------------------------------------
More information about the Met_help
mailing list