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

20020122: Revisited: 20011123: GEMPAK: Using buoy/ship/metar and altm/pmsl for analysis



Christian,

There are 2 abbreviations for PMSL- RMSL and SMSL.
The pcconv.tbl function for RMSL creates a number
(not padded with zeroes for plotting) using the function
PR_AMSL(PMSL). SMSL is a character representation of RMSL
which is zero padded for leading zeroes. SMSL uses the 
PT_SALT(RMSL) routine.

You can reuse the existing GEMPAK routines without having 
to add extra subroutines using pcconv.tbl entries:
RANY = PR_AMSL ( PANY )
SANY = PT_SALT ( RANY ) 

Steve Chiswell
Unidata User Support





>From: Christian Page <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200201230318.g0N3Inx21233

>
>Hi again,
>
>I created a new function, based on these instructions, called SANY that would
>output an abbreviated pressure, as SMSL does. The problem is that when it gets
>plotted, I get no leading zero. Where do I specify in the source code that a
>leading zero must always be plotted?
>
>Thanks again,
>
>
>Christian Page
>address@hidden    http://meteocentre.com/
>
>Agent de recherche et de planification +1 514 987 3000 ext. 2376
>Departement des Sciences de la Terre et de l'Atmosphere UQAM
>
>On Fri, 7 Dec 2001, Steve Chiswell wrote:
>
>>
>>
>> Christian,
>>
>> The easiest way to do this is probably to create a function that
>> returns PMSL if it exists, or ALMT if that exists and PMSL doesn't.
>>
>> I've attatched 4 files (GEMPAK 5.6.e.1):
>> $GEMPAK/source/gemlib/pr/prpany.f
>> $GEMPAK/source/gemlib/pc/pcfunc.f
>> $GEMTBL/parms/pcconv.tbl
>> $GEMPAK/source/gemlib/pr/Makefile
>>
>> The first file creates a function called PR_PANY which will accepts the
>> 2 parameters ALTM and PMSL and returns PMSL if it exists, otherwise,
>> ALTM if it exists, or -9999.00 if neither exist.
>>
>> The Makefile has the addition of this prpany function included in it. If you
>> aren't running 5.6.e.1, then instead of using this makefile, just add
>> the $(ALIB)/(prpany.o) target to the list of your current Makefile.
>>
>> The pcfunc.f routine adds the call for PR_PANY if that is the requested rout
> ine.
>> Again, if your aren't running 5.6.e.1, then just make the appropriate
>> additin to  your current file (that way you don't have to worry about any
>> other functions that mmight be in 5.6.e.1 that you don't have.
>>
>> Lastly, the pcconv.tbl tells the package to use the PR_PANY ( ALTM, PMSL )
>> if you specify PANY as a parameter.
>>
>>
>> Then, just rebuild the pr library, the pc library, and your programs with:
>>
>> cd $GEMPAK/source/gemlib/pr
>> make all
>> make clean
>>
>> cd $GEMPAK/source/gemlib/pc
>> make all
>> make clean
>>
>> cd $GEMPAK/source/programs
>> make clean
>> make all
>> make install
>> make clean
>>
>> Now, if you specify SFPARM=PANY, you should get whichever pressure exists.
>>
>> To create a barnes analysis of both METAR and SHIP data,
>> you would create a new surface file with a SFPRMF=PANY and
>> use SFMOD to copy the data from each file to a single file. Then
>> do the Barnes analysis.
>>
>> Steve Chiswell
>> Unidata User Support
>>
>>
>>
>>
>> The first file creates a function called PR
>>
>> On Fri, 7 Dec 2001, Unidata Support wrote:
>>
>> > Christian Page <address@hidden>
>> > >From: Christian Page <address@hidden>
>> > >Organization: UCAR/Unidata
>> > >Keywords: 200111231327.fANDRmN17503
>> >
>> > >
>> > >Hi,
>> > >
>> > >I have a problem. Ship and buoy data report pmsl and not altm. In Europe,
>  meta
>> > > r
>> > >surface reports only report altm. How can I generate a Barnes analysis of
>  mean
>> > >sea-level pressure using buoy/ship and metar surface data since altm does
> n't
>> > >cover all the data, and neither pmsl do?
>> > >
>> > >Thanks,
>> > >
>> > >Christian Page
>> > >UQAM
>> > >
>> >
>> > Christian,
>> >
>> >
>> > **************************************************************************
>> > Unidata User Support                                    UCAR Unidata Progr
>> > (303)497-8644                                                  P.O. Box 30
>> > address@hidden                                   Boulder, CO 803
>> > --------------------------------------------------------------------------
>> > Unidata WWW Service                        http://www.unidata.ucar.edu/   
>> > **************************************************************************
>> >
>>
>