[Rnomads-user] Error in system(paste0("wgrib ", grib.file), " -s", intern = TRUE) : 'ignore.stdout' must be TRUE or FALSE

Pere Lopez Brosa pere.lopez at ub.edu
Sun Jan 7 23:27:56 CET 2018


Hi.

The fix seems to work:

> library(rNOMADS)
> source("E:/pere/ReadGrib.R")
> GribInfo("E:\\pere\\terbolesa\\test\\wrf-03.2017122800_16_pcp.grib",
+          file.type = "grib1")
$inventory
[1] "1:0:d=17122800:APCP:sfc:0-16hr acc:NAve=0"

$grid
NULL

I still have to learn to understant the result, but that's a different issue.

Thank you.

Pere
________________________________________
De: Daniel Bowman [danny.c.bowman at gmail.com]
Enviat el: diumenge, 7 / gener / 2018 04:48
Per a: Announcements, feature requests, and help using rNOMADS; Pere Lopez Brosa
Tema: Re: [Rnomads-user] Error in system(paste0("wgrib ", grib.file), " -s", intern = TRUE) : 'ignore.stdout' must be TRUE or FALSE

Hi Pere,

You have indeed found a bug.  The attached update should fix the
issue.  Please tell me how it works.  If it solves your problem, I'll
release a new version of rNOMADS with the fix included.

How to use the file:

library(rNOMADS)
source("ReadGrib.R")

Best,

Danny

On Thu, Jan 4, 2018 at 5:07 PM, Pere Lopez Brosa <pere.lopez at ub.edu> wrote:
> Hello.
>
> I'm getting an error when trying to perform GribInfo on a downloaded grib
> file:
>
>> GribInfo("E:\\pere\\terbolesa\\test\\wrf-03.2017122800_16_pcp.grib",
> +          file.type = "grib1")
> Error in system(paste0("wgrib ", grib.file), " -s", intern = TRUE) :
>   'ignore.stdout' must be TRUE or FALSE
>
> I tried adding ignore.stdout parameter (and later ignore.stderr and wait
> parameters) to GribInfo code and it seems to work, although I'm new to grib
> files and rNOMADS and I don't know if I'm getting the expected result.
> However, I copy here the modified line:
>
>     inv <- system(paste0("wgrib ", grib.file), " -s", intern = TRUE,
>                   ignore.stdout=FALSE,
>                   ignore.stderr=FALSE,
>                   wait=TRUE)
>
> I tried it with R versions 3.4.2 and 3.4.3, and the latest rNOMADS release.
>
> Have I found a bug or it's just that I'm doing something wrong?
>
> Regards.
>
> Pere López Brosa
>
>
> Aquest correu electrònic i els annexos poden contenir informació
> confidencial o protegida legalment i està adreçat exclusivament a la persona
> o entitat destinatària. Si no sou el destinatari final o la persona
> encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo,
> modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu
> rebut aquest correu electrònic per error, us preguem que n’informeu al
> remitent i que elimineu del sistema el missatge i el material annex que
> pugui contenir. Gràcies per la vostra col·laboració.
>
> Este correo electrónico y sus anexos pueden contener información
> confidencial o legalmente protegida y está exclusivamente dirigido a la
> persona o entidad destinataria. Si usted no es el destinatario final o la
> persona encargada de recibirlo, no está autorizado a leerlo, retenerlo,
> modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha
> recibido este mensaje electrónico por error, le rogamos que informe al
> remitente y elimine del sistema el mensaje y el material anexo que pueda
> contener. Gracias por su colaboración.
>
> This email message and any documents attached to it may contain confidential
> or legally protected material and are intended solely for the use of the
> individual or organization to whom they are addressed. We remind you that if
> you are not the intended recipient of this email message or the person
> responsible for processing it, then you are not authorized to read, save,
> modify, send, copy or disclose any of its contents. If you have received
> this email message by mistake, we kindly ask you to inform the sender of
> this and to eliminate both the message and any attachments it carries from
> your account. Thank you for your collaboration.
>
>
>
> Aquest correu electrònic i els annexos poden contenir informació
> confidencial o protegida legalment i està adreçat exclusivament a la persona
> o entitat destinatària. Si no sou el destinatari final o la persona
> encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo,
> modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu
> rebut aquest correu electrònic per error, us preguem que n’informeu al
> remitent i que elimineu del sistema el missatge i el material annex que
> pugui contenir. Gràcies per la vostra col·laboració.
>
> Este correo electrónico y sus anexos pueden contener información
> confidencial o legalmente protegida y está exclusivamente dirigido a la
> persona o entidad destinataria. Si usted no es el destinatario final o la
> persona encargada de recibirlo, no está autorizado a leerlo, retenerlo,
> modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha
> recibido este mensaje electrónico por error, le rogamos que informe al
> remitente y elimine del sistema el mensaje y el material anexo que pueda
> contener. Gracias por su colaboración.
>
> This email message and any documents attached to it may contain confidential
> or legally protected material and are intended solely for the use of the
> individual or organization to whom they are addressed. We remind you that if
> you are not the intended recipient of this email message or the person
> responsible for processing it, then you are not authorized to read, save,
> modify, send, copy or disclose any of its contents. If you have received
> this email message by mistake, we kindly ask you to inform the sender of
> this and to eliminate both the message and any attachments it carries from
> your account. Thank you for your collaboration.
>
>
> _______________________________________________
> Rnomads-user mailing list
> Rnomads-user at lists.r-forge.r-project.org
> http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rnomads-user
>


Aquest correu electrònic i els annexos poden contenir informació confidencial o protegida legalment i està adreçat exclusivament a la persona o entitat destinatària. Si no sou el destinatari final o la persona encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu rebut aquest correu electrònic per error, us preguem que n’informeu al remitent i que elimineu del sistema el missatge i el material annex que pugui contenir. Gràcies per la vostra col·laboració.

Este correo electrónico y sus anexos pueden contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no es el destinatario final o la persona encargada de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha recibido este mensaje electrónico por error, le rogamos que informe al remitente y elimine del sistema el mensaje y el material anexo que pueda contener. Gracias por su colaboración.

This email message and any documents attached to it may contain confidential or legally protected material and are intended solely for the use of the individual or organization to whom they are addressed. We remind you that if you are not the intended recipient of this email message or the person responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any of its contents. If you have received this email message by mistake, we kindly ask you to inform the sender of this and to eliminate both the message and any attachments it carries from your account. Thank you for your collaboration.


Aquest correu electrònic i els annexos poden contenir informació confidencial o protegida legalment i està adreçat exclusivament a la persona o entitat destinatària. Si no sou el destinatari final o la persona encarregada de rebre’l, no esteu autoritzat a llegir-lo, retenir-lo, modificar-lo, distribuir-lo, copiar-lo ni a revelar-ne el contingut. Si heu rebut aquest correu electrònic per error, us preguem que n’informeu al remitent i que elimineu del sistema el missatge i el material annex que pugui contenir. Gràcies per la vostra col·laboració.

Este correo electrónico y sus anexos pueden contener información confidencial o legalmente protegida y está exclusivamente dirigido a la persona o entidad destinataria. Si usted no es el destinatario final o la persona encargada de recibirlo, no está autorizado a leerlo, retenerlo, modificarlo, distribuirlo, copiarlo ni a revelar su contenido. Si ha recibido este mensaje electrónico por error, le rogamos que informe al remitente y elimine del sistema el mensaje y el material anexo que pueda contener. Gracias por su colaboración.

This email message and any documents attached to it may contain confidential or legally protected material and are intended solely for the use of the individual or organization to whom they are addressed. We remind you that if you are not the intended recipient of this email message or the person responsible for processing it, then you are not authorized to read, save, modify, send, copy or disclose any of its contents. If you have received this email message by mistake, we kindly ask you to inform the sender of this and to eliminate both the message and any attachments it carries from your account. Thank you for your collaboration.


More information about the Rnomads-user mailing list