[Rnomads-user] handling ReadGrib errors in batch

Solange solferme at gmail.com
Wed Jul 8 22:30:42 CEST 2015


Hello everybody,

I am using the rNOMADS package to work with GFS grib files. I run a R
script in batch, using Rscript.

As long as the file exists (and at least one combination of variable/level
exists), everything goes smoothly.

But when the file does not exist (or the only variable/level requested does
not exist) an error occurs and the script stops. I would like to use this
script for an operative purpose, so obviously I have to find a way to deal
with this in batch.

I tried using tryCatch but got not results.

Did anyone have this problem before?

Thanks!!

Best regards,
Solange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rnomads-user/attachments/20150708/1c9cb03a/attachment.html>


More information about the Rnomads-user mailing list