[gradsusr] gradsusr Digest, Vol 80, Issue 19

NARENDRA SHARMA narendra.brh89 at gmail.com
Fri Oct 14 12:01:49 EDT 2016


Dear Grads Users,

                            I have problem to find script that all of you
discussed.

Please help me to find it.

thanks

Narendra sharma

On 14 October 2016 at 05:44, <gradsusr-request at gradsusr.org> wrote:

> Send gradsusr mailing list submissions to
>         gradsusr at gradsusr.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://gradsusr.org/mailman/listinfo/gradsusr
> or, via email, send a message with subject or body 'help' to
>         gradsusr-request at gradsusr.org
>
> You can reach the person managing the list at
>         gradsusr-owner at gradsusr.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gradsusr digest..."
>
>
> Today's Topics:
>
>    1. Re: Linear Trend Analysis using Grads (Tereza Cavazos)
>    2. Re: Use wgrib2 to check if grib2 file is valid
>       (Love, Mr. Gary, Contractor, Code 7542)
>    3. Re: Use wgrib2 to check if grib2 file is valid
>       (Wesley Ebisuzaki - NOAA Federal)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 13 Oct 2016 14:28:02 -0700
> From: Tereza Cavazos <tcavazos at cicese.mx>
> Subject: Re: [gradsusr] Linear Trend Analysis using Grads
> To: gradsusr at gradsusr.org, dhaval.prajapati at ICCSIR.ORG
> Message-ID: <ca13d287-8341-f7e0-77b2-c569fdf3dbbe at cicese.mx>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi,
>
> I found a script to calculate linear trends and its significance in
> Grads by Dhaval.
> I wonder if anyone has written a script to calculate the trend using the
> Mann-Kendall test and/or Sen?s test for the significance of the trend.
>
> I will appreciate any help.
> Cheers,
>
> Tereza
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 14 Oct 2016 00:01:43 +0000
> From: "Love, Mr. Gary, Contractor, Code 7542"
>         <gary.love.ctr at nrlmry.navy.mil>
> Subject: Re: [gradsusr] Use wgrib2 to check if grib2 file is valid
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <7e6513e48ddc43eaaca0fc0647a51605 at ZEUS-2.nrlmry.navy.mil>
> Content-Type: text/plain; charset="utf-8"
>
> Wesley,
>
>
>
> Have you tried
>
>
>
> |     wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 2>&1 | grep ERROR
>
>
>
> The redirect, 2>&1,  is supposed to add the results of STDERR to STDOUT.
>
>
>
> Gary Love
>
>
>
> From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
> On
> Behalf Of Wesley Ebisuzaki - NOAA Federal
> Sent: Thursday, October 13, 2016 6:02 AM
> To: GrADS Users Forum
> Subject: Re: [gradsusr] Use wgrib2 to check if grib2 file is valid
>
>
>
> Ivan,
>
> |     wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 | grep ERROR
>
> does not work because the error message is sent to STDERR.
>
> It depends on the shell but in bash,
>
>       wgrib2 -v 2016101212.gfs.t12z.pgrb2f00 2>stderr.txt
>
> will send the error messages to stderr.txt
>
> My (bash) suggestion is
>
> wgrib2 2016101212.gfs.t12z.pgrb2f001 > tmp.inv
>
> # now to check the return code
>
> if ["$?" -ne 0 ] ; then
>
>   echo "ERROR"
>
>   do_something
>
> fi
>
> # since is is possible that you got no file or a smaller but complete file
>
> # check the number of lines in the inventory .. see if you got what you
> want
>
> N_REC=22
>
> if [ "$N_REC" -ne `wc -n <tmp.inv` ] ; then
>
>    echo "ERROR2"
>
>    do_something
>
> fi
>
> rm tmp.inv
>
> Wesley
>
>
>
> On Wed, Oct 12, 2016 at 5:48 PM, Ivan Toman <ivtoman at inet.hr> wrote:
>
> Hello Jeff,
>
> I do compare file sizes currently, but as they change little bit, it is
> still not too robust. I'm trying to find fail proof solution.
>
> So as I said, I can't capture response from wgrib2 into variable for
> some reason. See these two examples:
>
> Example 1) Capturing date output to variable:
> $ response=`date`
> $ echo $response
> Wed Oct 12 20:50:46 UTC 2016
>
> Works just fine.
>
>
> Wgrib2 error:
> wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 | grep ERROR
>
> *** FATAL ERROR: rd_grib2_msg_seq_file, read outside of file, bad grib
> file ***
>
>
> Example 2) Trying to capture ERROR from wgrib2:
> $ response=`wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 | grep ERROR`
>
> *** FATAL ERROR: rd_grib2_msg_seq_file, read outside of file, bad grib
> file ***
> $ echo $response
>
>
> Nothing is returned. Empty variable. That is what I try to fix..
>
> Thank you,
> Ivan Toman
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20161014/
> 677c2dd9/attachment-0001.html
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 5433 bytes
> Desc: not available
> Url : http://gradsusr.org/pipermail/gradsusr/attachments/20161014/
> 677c2dd9/attachment-0001.bin
>
> ------------------------------
>
> Message: 3
> Date: Fri, 14 Oct 2016 08:44:56 -0400
> From: Wesley Ebisuzaki - NOAA Federal <wesley.ebisuzaki at noaa.gov>
> Subject: Re: [gradsusr] Use wgrib2 to check if grib2 file is valid
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID:
>         <CAMHOGekvpt_gxGoavfe3OgOt3vy_ig1VKxSLHq_6V+JVRVe4Fg at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Gary,
>
> On Thu, Oct 13, 2016 at 8:01 PM, Love, Mr. Gary, Contractor, Code 7542 <
> gary.love.ctr at nrlmry.navy.mil> wrote:
>
> > Wesley,
> >
> >
> >
> > Have you tried
> >
> >
> >
> > |     wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 2>&1 | grep ERROR
> >
> >
> >
> > The redirect, 2>&1,  is supposed to add the results of STDERR to STDOUT.
> >
>
> You can do this but you need to check for two conditions
>
>    1) error detected by wgrib2; for example, the grib message is incomplete
>    2) file is short but wgrib2 doesn't find an incomplete grib message.
>           for example; the server's copy of the file is missing fields
>                   or the transmission fortuitously stopped at the end of a
> message.
>
> Condition 2 requires you to read stdout.  Adding stderr to stdout makes
> life
> confusing.  Otherwise it is a good suggestion.
>
> Wesley
>
>
>
>
> >
> >
> > Gary Love
> >
> >
> >
> > *From:* gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces@
> > gradsusr.org] *On Behalf Of *Wesley Ebisuzaki - NOAA Federal
> > *Sent:* Thursday, October 13, 2016 6:02 AM
> > *To:* GrADS Users Forum
> > *Subject:* Re: [gradsusr] Use wgrib2 to check if grib2 file is valid
> >
> >
> >
> > Ivan,
> >
> > |     wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 | grep ERROR
> >
> > does not work because the error message is sent to STDERR.
> >
> > It depends on the shell but in bash,
> >
> >       wgrib2 -v 2016101212.gfs.t12z.pgrb2f00 2>stderr.txt
> >
> > will send the error messages to stderr.txt
> >
> > My (bash) suggestion is
> >
> > wgrib2 2016101212.gfs.t12z.pgrb2f001 > tmp.inv
> >
> > # now to check the return code
> >
> > if ["$?" -ne 0 ] ; then
> >
> >   echo "ERROR"
> >
> >   do_something
> >
> > fi
> >
> > # since is is possible that you got no file or a smaller but complete
> file
> >
> > # check the number of lines in the inventory .. see if you got what you
> > want
> >
> > N_REC=22
> >
> > if [ "$N_REC" -ne `wc -n <tmp.inv` ] ; then
> >
> >    echo "ERROR2"
> >
> >    do_something
> >
> > fi
> >
> > rm tmp.inv
> >
> > Wesley
> >
> >
> >
> > On Wed, Oct 12, 2016 at 5:48 PM, Ivan Toman <ivtoman at inet.hr> wrote:
> >
> > Hello Jeff,
> >
> > I do compare file sizes currently, but as they change little bit, it is
> > still not too robust. I'm trying to find fail proof solution.
> >
> > So as I said, I can't capture response from wgrib2 into variable for
> > some reason. See these two examples:
> >
> > Example 1) Capturing date output to variable:
> > $ response=`date`
> > $ echo $response
> > Wed Oct 12 20:50:46 UTC 2016
> >
> > Works just fine.
> >
> >
> > Wgrib2 error:
> > wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 | grep ERROR
> >
> > *** FATAL ERROR: rd_grib2_msg_seq_file, read outside of file, bad grib
> > file ***
> >
> >
> > Example 2) Trying to capture ERROR from wgrib2:
> > $ response=`wgrib2 -v 2016101212.gfs.t12z.pgrb2f001 | grep ERROR`
> >
> > *** FATAL ERROR: rd_grib2_msg_seq_file, read outside of file, bad grib
> > file ***
> > $ echo $response
> >
> >
> > Nothing is returned. Empty variable. That is what I try to fix..
> >
> > Thank you,
> > Ivan Toman
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20161014/
> 4a456003/attachment.html
>
> ------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> End of gradsusr Digest, Vol 80, Issue 19
> ****************************************
>



-- 
*Narendra  Sharma*
*(M.Sc.(Mathematics) )(B.H.U.) ,*
*Research Scholar in IESD B.H.U.*
* varanasi*
*+91-8574486661*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20161014/e9531e59/attachment.html 


More information about the gradsusr mailing list