[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030716: gempak buffer size
- Subject: 20030716: gempak buffer size
- Date: Wed, 16 Jul 2003 10:07:24 -0600
David,
Below is the message I sent to Rich yesterday. At that time, he
only mentioned sncross/sncross2.
For sntser, you will find "MAXTIM" set to 100 in
$GEMPAK/source/programs/sn/sntser/sntser.f. You probably want this
set to LLMXTM.
Snlist should already use LLMXTM.
-------------------------------------------------
Rich,
I looked at your sounding data file and .nts file.
The time range you have encompasses 180 soundings:
SNFILE = soundings_2002_1.out
DATTIM = 020630/1434-020704/1819
Each of these soundings has 9 parameters. Looking at your data,
I see that your soundings have around 300 levels (some more, some less).
So, the buffer size that is needed to store the data for the cross section is:
300*9*180 = 486,000.
In the program file $GEMPAK/source/programs/sn/sncross2/sncross2.f
(and $GEMPAK/source/programs/sn/sncross/sncross.f as well), you will
find the buffer size declaration:
PARAMETER ( MSDSIZ = 100000 )
This number must be increased to fit your data.
I successfully used:
PARAMETER ( MSDSIZ = 600000 )
If you have built your diustribution from source, you can
make this change to your source, and then just rebuild the
executable with:
cd $GEMPAK/source/programs/sn/sncross2
vi sncross2.f <---- edit the MSDSIZ definition
make clean
make all
make install
make clean
If you are using a binary distribution, let me know what version and platform
and I'll send you an updated copy of sncross2.
Steve Chiswell
Unidata User Support
>From: David Fitzgerald <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200307161440.h6GEeBLd002744
>This message is in MIME format. Since your mail reader does not understand
>this format, some or all of this message may not be legible.
>
>------_=_NextPart_001_01C34BA8.20BA6020
>Content-Type: text/plain
>
>Chiz,
>
>
>
>I heard the voicemail you left for Rich Clark concerning the buffer size in
>sncross2. I have the source code for version 5.6j. Could you tell me the
>changes to the code I need to make to allow 600000 elements in he buffer?
>
>
>
>I need to change sncross2, snprof, snlist, and sntser to allow for the
>larger size.
>
>
>
>Thanks!!
>
>
>
>Dave
>
>
>
>*********************************************
>
>David Fitzgerald
>
>Distributed System Specialist II
>
>Millersville University
>
>Millersville PA 17551
>
>Phone: 717-871-2394
>
>Fax: 717-871-4725
>
>E-mail: address@hidden
><mailto:address@hidden>
>
>
>
>
>------_=_NextPart_001_01C34BA8.20BA6020
>Content-Type: text/html
>
><html>
>
><head>
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
>
>
><meta name=Generator content="Microsoft Word 10 (filtered)">
>
><style>
><!--
> /* Style Definitions */
> p.MsoNormal, li.MsoNormal, div.MsoNormal
> {margin:0in;
> margin-bottom:.0001pt;
> font-size:12.0pt;
> font-family:"Times New Roman";}
>a:link, span.MsoHyperlink
> {color:blue;
> text-decoration:underline;}
>a:visited, span.MsoHyperlinkFollowed
> {color:purple;
> text-decoration:underline;}
>span.EmailStyle17
> {font-family:Arial;
> color:windowtext;}
>@page Section1
> {size:8.5in 11.0in;
> margin:1.0in 1.25in 1.0in 1.25in;}
>div.Section1
> {page:Section1;}
>-->
></style>
>
></head>
>
><body lang=EN-US link=blue vlink=purple>
>
><div class=Section1>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Chiz,</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'> </span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>I heard the voicemail you left for </span></font><font
> size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Rich Clark
> </span></font><font
>size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> concerning
>the buffer size in sncross2. I have the source code for version
>5.6j. Could you tell me the changes to the code I need to make to allow
> 600000
>elements in he buffer?</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'> </span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>I need to change sncross2, snprof, snlist, and sntser to
>allow for the larger size.</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'> </span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Thanks!!</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'> </span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Dave</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'> </span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>*********************************************</span></font>
> </p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'>David Fitzgerald</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Distributed System Specialist II</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
> font-family:Arial'>Millersville</span></font><font size=2 face=Arial><span
> style='font-size:10.0pt;font-family:Arial'> </span></font><font size=2
> face=Arial><span style='font-size:10.0pt;font-family:Arial'>University</span
> ></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Millersville PA 17551</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Phone: 717-871-2394</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>Fax: 717-871-4725</span></font></p>
>
><p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
>font-family:Arial'>E-mail: <a href="mailto:address@hidden">
> address@hidden</a></span></font></p>
>
><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
>12.0pt'> </span></font></p>
>
></div>
>
></body>
>
></html>
>
>------_=_NextPart_001_01C34BA8.20BA6020--
>