[gradsusr] writing results & variables to a text file

Rowell, Mason D. Mason.D.Rowell-1 at ou.edu
Thu Nov 24 00:28:30 EST 2011


If you looked, you would see the 'comprehensive' documentation provided here (ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/grib2ieee.txt) given in this link you give me (which I am aware of already) has some examples, but not about how to extract for a specific location in space. Even these 'tricks' also provided here (ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/tricks.wgrib) within your link only mention how to extract at a specific height. Perhaps I am just not digging into this page enough, as I have tried in the past. My original inquiry alluded to needing this specific functionality, or least this was what was most paramount. These pages do mention more details in the readme files, but I am using the wgrib made available in the grads utility bin, so readme files are not present (at least in the build made available to me). I didn't want to unnecessarily download and compile wgrib just to get the readme files when I already have the utility itself through grads. My question was a simple yes or no, can this exact syntax provided below be used with wgrib, not just wgrib2? I apologize if it seems I am not trying. If you do not know then thank you anyways, but the answer is simple. 

Mason 
________________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Jeff Lake [admin at michiganwxsystem.com]
Sent: Wednesday, November 23, 2011 10:13 PM
To: gradsusr at gradsusr.org
Subject: Re: [gradsusr] writing results & variables to a text file

http://www.cpc.ncep.noaa.gov/products/wesley/wgrib.html
hmm look and see

-Jeff Lake
MichiganWxSystem.com
WeatherMichigan.net
TheWeatherCenter.net
GRLevelXStuff.com


On 11/23/2011 10:33 PM, Rowell, Mason D. wrote:
> The question was, if that syntax, and thus specific type of extraction, was possible with wgrib, rather than wgrib2. Yes there is a wgrib, but it is just called wgrib, not wgrib1.
>
> Mason
> ________________________________________
> From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Jeff Lake [admin at michiganwxsystem.com]
> Sent: Wednesday, November 23, 2011 4:56 PM
> To: gradsusr at gradsusr.org
> Subject: Re: [gradsusr] writing results&  variables to a text file
>
> wgrib is for GRIB1
> wgrib2 is for GRIB2
> I don't think there is many GRIB1 around is there ?
>
> -Jeff Lake
> MichiganWxSystem.com
> WeatherMichigan.net
> TheWeatherCenter.net
> GRLevelXStuff.com
>
>
> On 11/23/2011 5:36 PM, Rowell, Mason D. wrote:
>> Wesley,
>>
>> Will command syntax like this work for wgrib as well (not wgrib2)? I have had instances of just wanting to extract one variable at one exact location but the wgrib documentation didn't have examples of how to do this (what options to use after wgrib) for a specific location.
>>
>> Mason
>> ________________________________________
>> From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Wesley Ebisuzaki [Wesley.Ebisuzaki at noaa.gov]
>> Sent: Wednesday, November 23, 2011 12:43 PM
>> To: GrADS Users Forum
>> Subject: Re: [gradsusr] writing results&   variables to a text file
>>
>> Alireza,
>>
>>      "If all you have is a hammer, everything looks like a nail."
>>
>>       Before trying to find a GrADS solution, consider whether GrADS is
>> the right tool.
>>
>>
>> (A)  To find Washington DCs T2m for a single file, 1.grb2
>>
>>       wgrib2 1.txt -match ":TMP:" -match ":2 m above ground:"  -s -lon -53
>> 38>1.txt
>>
>>
>> (B) Do the same for *.grb2 (only works for v0.1.9.3  5/2011 or later)
>>
>>       cat  *.grb2 | wgrib2 - -match ":TMP:" -match ":2 m above ground:"
>> -s -lon -53 38>all.txt
>>
>>
>>       for older wgrib2:  cat *.grb2>tmp.grb2
>>                                     wgrib2 tmp.grb2 -match ":TMP:" -match
>> ":2 m above ground:"  -s -lon -53 38>all.txt
>>
>>
>>         Wesley Ebisuzaki
>>
>>
>>
>> Alireza Azargoun wrote:
>>> Dear GrADS users
>>> Hi everybody
>>>
>>> I have about 200 grib2 files ( 1.grb2 ~ 200.grb ) . i need to read a
>>> temperature of a city (lat, lon, lev, time are constant in all files)
>>> . how i can read this files using a while loop!?  ( I receive this
>>> error when i write a while. Unknown Command: while )
>>>    and how can i write these data to a text file!? I've searched all
>>> grads option for a command that writes variables in a text file! but i
>>> couldn't find it!
>>>
>>> Thanks in advance,
>>> Alireza
>>> Sharif University of Technology
>>>
>>>
>>> --
>>> Alireza Azargoun
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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




More information about the gradsusr mailing list