<div dir="ltr"><div class="gmail_default" style="font-size:small">Hello:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I have a memory issue using int2p. Here is my call to int2p:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">mpas2 = int2p(pres,mpas,pres2,linlog)</span></p></div><div class="gmail_default" style="font-size:small"><br></div><div><div class="gmail_default" style="font-size:small">The input fields pres, mpas, and pres2 are:</div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: pres</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Total Size: 144179640 bytes</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>36044910 values</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 2</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[nCells | 655362] x [nVertLevels | 55]</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Coordinates:<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 2</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>units :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>hPa</span></p>
<div class="gmail_default" style="font-size:small"><span class="gmail-Apple-converted-space" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,128);font-family:Courier;font-size:14px"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,128);font-family:Courier;font-size:14px">long_name :</span><span class="gmail-Apple-tab-span" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,128);font-family:Courier;font-size:14px;white-space:pre"> </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,128);font-family:Courier;font-size:14px">Pressure</span></div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: mpas</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: float</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Total Size: 144179640 bytes</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>36044910 values</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 2</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[nCells | 655362] x [nVertLevels | 55]</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Coordinates:<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 2</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>units :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>kg m^{-3}</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>long_name :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>Dry air density</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128);min-height:17px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: pres2</span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: float</span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Total Size: 2621448 bytes</span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>655362 values</span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 1</span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[nCells | 655362]</span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Coordinates:<span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p1" style="margin:0px;font:14px Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 1</span></p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128);min-height:17px">
</p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>units :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>hPa</span></p></div><div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">where pres2 is one-dimensional and set to 200 hPa. I am getting the following error:</div><div class="gmail_default" style="font-size:small">
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(0,0,128)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">fatal:int2p: Unable to allocate memory for output array</span></p></div><br></div><div><br></div><div><div class="gmail_default" style="font-size:small">So, is it possible to interpolate the data to one specific pressure level. May be I am using the wrong function to do this?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small">Laura</div><div class="gmail_default" style="font-size:small"></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM) </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></div></div></div>