[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20041203: 20041203: 20041202: 20041201: GEMPAK trouble with non-standard domain



Brian,

The problem you are having is the LoV (central longitude) is in a different 
hemisphere than the Lo1 (lower left longitude). This is a general limitation of
the gblamb.c routine I mentioned, so you will have the same problem using
the GEMPAK program NAGRIB.

From your previous mention of asking about source code, I'm assuming
you had downloaded a binary distribution, so I've posted a Linux binary at
http://my.unidata.ucar.edu/content/software/gempak/download/patches/binary/linux/dcgrib2
If you need a different platform, let me know.

Steve Chiswell
Unidata User Support



>From: Brian Jamison <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200412031924.iB3JOalI013936

>Hi Steve,
>
>I'll take you up on your offer.  I tried to email the grib file,
>but I'm limited to 25MB on outgoing mail.  So I put the file
>on a web page:
>
>http://www-frd.fsl.noaa.gov/mab/jamison/steve/
>
>Just right-click and download.  Let me know if you have any
>trouble.
>
>Thanks so much for helping me with this!
>
>
>Brian
>
>
>On Dec 3, 2004, at 11:26 AM, Unidata Support wrote:
>
>>
>> Brian,
>>
>> The Lambert projection code is part of the GEMPAK libraries,
>> and not specific to dcgrib2. The routine is
>> $GEMPAK/source/gemlib/gb/gblamb.c
>> which is available in the source code distribution.
>>
>> The dcgrib2 program is in the source distribution under
>> $NAWIPS/unidata/ldmbridge/dcgrib2.
>>
>> If you want to send me a single (or small) example of
>> your grib, I can pass it through the debugger and see where
>> things are getting fouled.
>>
>> Steve Chiswell
>> Unidata User Support
>>
>>
>>
>>> From: Brian Jamison <address@hidden>
>>> Organization: UCAR/Unidata
>>> Keywords: 200412031643.iB3GhWlI024668
>>
>>> Hi Steve,
>>>
>>>> Brian,
>>>>
>>>> Since this is not grid #252, that value should be set to 255
>>>> just for correctness, but since the dcgrib2 decoder will use the GDS
>>>> when present, that shouldn't be your problem here.
>>>>
>>>> One possibility is that the Lo1 angle is not in the range 0 to 360,
>>>> eg your wgrib output shows 520. Can you change this to a more
>>>> conventional 260? That way, the (Lo1 - Lov) difference in
>>>> computing the upper right point should be in the correct distance.
>>>
>>> I don't know of an easy way to "edit" a grib file to change this
>>> value.  I wasn't the person that created these grib files, so it's
>>> not easy for me to re-create them with this change, either.
>>>
>>> Would it be possible to get the code for creating the dcgrib2
>>> executable, so I can make the changes to handle the 520
>>> value?
>>>
>>>
>>> Brian
>>>
>>>
>> --
>> *********************************************************************** 
>> Unidata User Support                                    UCAR Unidata  
>> (303)497-8643                                                  P.O.  
>> address@hidden                                   Boulder, CO  
>> ----------------------------------------------------------------------- 
>> Unidata WWW Service               
>> ----------------------------------------------------------------------- 
>> NOTE: All email exchanges with Unidata User Support are recorded in the
>> Unidata inquiry tracking system and then made publicly available
>> through the web.  If you do not want to have your interactions made
>> available in this way, you must let us know in each email you send to  
>> us.
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.