<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19394">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Try this:</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>'set z 1 last'</FONT></DIV>
<DIV><FONT size=2 face=Arial>*where "last" is the total number of 
levels</FONT></DIV>
<DIV><FONT size=2 face=Arial>'fq1=vint(ps,q*u,850)'</FONT></DIV>
<DIV><FONT size=2 face=Arial>*where ps is your surface pressure 
field</FONT></DIV>
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial>'fq2=vint(ps,q*u,500)-fq1'
<DIV><FONT size=2 face=Arial>
<DIV><FONT size=2 face=Arial>'fq3=vint(ps,q*u,300)-fq2'</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Bye</DIV></FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>Antonino Claudio Bonan</DIV>
<DIV>ARPAV-&nbsp;Servizio Meteorologico</DIV>
<DIV>Teolo (PD) - Italy</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=jeffduda319@gmail.com href="mailto:jeffduda319@gmail.com">Jeff 
  Duda</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=gradsusr@gradsusr.org 
  href="mailto:gradsusr@gradsusr.org">GrADS Users Forum</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 23, 2014 8:26 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [gradsusr] Vint fucntion - 
  problem</DIV>
  <DIV><BR></DIV>
  <DIV dir=ltr>Check example #2 in the documentation for the vint function:
  <DIV><BR></DIV>
  <DIV>
  <P 
  style="FONT-FAMILY: 'Times New Roman'; COLOR: rgb(0,0,0); FONT-SIZE: medium">2. 
  This is an artificial example that demonstrates a vertical integration from a 
  fixed lower bound of 1000mb to the top of the atmosphere, and integrating a 
  field of all 1's. This gives an answer of 10204.1 (or 100000/9.8) which is the 
  mass of air (in kg) of a 1 meter squared column when the surface pressure is 1 
  bar and the accelleration due to gravity is assumed to be exactly 9.8m/sec**2 
  over the entire column.</P>
  <UL 
  style="FONT-FAMILY: 'Times New Roman'; COLOR: rgb(0,0,0); FONT-SIZE: medium"><CODE>vint(const(ps,1000),const(t,1),0)</CODE><CODE>
    <DIV><BR></DIV></CODE></UL><FONT color=#000000 
  face="arial, helvetica, sans-serif">Grads is probably having a hard time 
  figuring out what you mean by 'lev' in the first argument. &nbsp;My guess is 
  the same numerical values of lev are being used in each of the three commands. 
  &nbsp;The value is probably 1000, so in effect you are integrating over 
  progressively deeper layers, which is why you are getting fqu1 &lt; fqu2 &lt; 
  fqu3 for example. &nbsp;I would try changing the first argument to something 
  like const(p,1000), const(p,700), const(p,500) etc.</FONT></DIV>
  <DIV><FONT color=#000000 face="arial, helvetica, sans-serif"><BR></FONT></DIV>
  <DIV><FONT color=#000000 face="arial, helvetica, sans-serif">Jeff 
  Duda<BR></FONT>
  <UL 
  style="FONT-FAMILY: 'Times New Roman'; COLOR: rgb(0,0,0); FONT-SIZE: medium"><CODE><BR></CODE></UL></DIV></DIV>
  <DIV class=gmail_extra><BR><BR>
  <DIV class=gmail_quote>On Thu, Jan 23, 2014 at 1:17 PM, °° Maytę °° . <SPAN 
  dir=ltr>&lt;<A href="mailto:mayteleal@hotmail.com" 
  target=_blank>mayteleal@hotmail.com</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV>
    <DIV dir=ltr>
    <DIV>
    <DIV dir=ltr><BR>
    <DIV>
    <DIV dir=ltr>Hi,<BR><BR><SPAN lang=en>
    <DIV class=im><SPAN><SPAN lang=en><SPAN>I'm trying to</SPAN> <SPAN>calculate 
    the</SPAN> <SPAN>transport</SPAN> <SPAN>and convergence</SPAN> 
    <SPAN>of</SPAN> <SPAN>moisture</SPAN> <SPAN>flux</SPAN> 
    <SPAN>integrated</SPAN> <SPAN>in three</SPAN> <SPAN>layers</SPAN> <SPAN>of 
    the troposphere</SPAN><SPAN>. </SPAN><SPAN>Define</SPAN> <SPAN>the 
    layers</SPAN> <SPAN>as follows:</SPAN> 
    </SPAN></SPAN><SPAN></SPAN><BR><BR><SPAN>* Lower 
    troposphere</SPAN></DIV><SPAN>:<BR>'set lev 
    1000'<BR></SPAN><SPAN>'defines</SPAN> <SPAN>fqu1</SPAN> <SPAN>vint</SPAN> 
    <SPAN>=</SPAN> <SPAN>(lev, 
    q</SPAN><SPAN>*u</SPAN><SPAN></SPAN><SPAN>,</SPAN> 
    <SPAN>850)</SPAN><SPAN>'</SPAN><SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </SPAN><SPAN></SPAN><BR>
    <DIV class=im><BR><SPAN>* Middle 
    troposphere</SPAN><SPAN>:</SPAN><BR><SPAN>'set</SPAN> <SPAN>lev</SPAN> 
    <SPAN>700</SPAN><SPAN>'</SPAN><BR><SPAN>'</SPAN><SPAN>defines</SPAN> 
    <SPAN>fqu2</SPAN> <SPAN>vint</SPAN> <SPAN>=</SPAN> 
    <SPAN>(</SPAN><SPAN>lev,</SPAN> 
    <SPAN>u*</SPAN><SPAN>q</SPAN><SPAN></SPAN><SPAN>,</SPAN> 
    <SPAN>500</SPAN><SPAN>)</SPAN><SPAN>'</SPAN><BR><BR><SPAN>* High</SPAN> 
    <SPAN>Troposphere</SPAN><SPAN>:</SPAN><BR><SPAN>'set</SPAN> <SPAN>lev</SPAN> 
    <SPAN>500</SPAN><SPAN>'</SPAN><BR><SPAN>'</SPAN><SPAN>defines</SPAN> 
    <SPAN>fqu3</SPAN> <SPAN>vint</SPAN> <SPAN>=</SPAN> 
    <SPAN>(</SPAN><SPAN>lev,</SPAN> 
    <SPAN>u</SPAN>*<SPAN>q</SPAN><SPAN></SPAN><SPAN>,</SPAN> 
    <SPAN>300</SPAN><SPAN>)</SPAN><SPAN>'</SPAN><BR></DIV></SPAN>
    <DIV class=im><BR><SPAN lang=en><SPAN lang=en><SPAN>The same for</SPAN> 
    <SPAN>fqv1, fqv2 and fqv3...<BR><BR></SPAN></SPAN><SPAN>For 
    then</SPAN><SPAN>, the values at</SPAN> <SPAN>low levels</SPAN> 
    <SPAN>are</SPAN> <SPAN>lower than</SPAN> <SPAN>in the</SPAN> <SPAN>middle 
    and upper</SPAN> <SPAN>troposphere.</SPAN><BR><SPAN></SPAN></SPAN><SPAN 
    lang=en><SPAN><SPAN lang=en><SPAN>Is there another</SPAN> <SPAN>way to 
    calculate</SPAN><SPAN>?</SPAN> 
    </SPAN></SPAN><SPAN></SPAN><BR><BR><SPAN>Something is</SPAN> <SPAN>wrong, 
    since</SPAN> <SPAN>I reviewed</SPAN> <SPAN>all the steps</SPAN> <SPAN>and 
    the only</SPAN> <SPAN>change</SPAN> <SPAN>I make</SPAN> <SPAN>is</SPAN> 
    <SPAN>the</SPAN> 
    <SPAN>'</SPAN><SPAN>lev</SPAN><SPAN>'</SPAN><SPAN>.</SPAN><BR><SPAN>Before</SPAN> 
    <SPAN>had done</SPAN> <SPAN>the integration</SPAN> <SPAN>from 1000 to</SPAN> 
    <SPAN>300 hPa</SPAN> <SPAN>and not</SPAN> <SPAN>had any 
    problem</SPAN><SPAN>.</SPAN><BR><BR><SPAN>thank 
    you</SPAN><SPAN>,</SPAN><BR><SPAN>May</SPAN></SPAN><BR></DIV></DIV></DIV></DIV></DIV></DIV></DIV><BR>_______________________________________________<BR>gradsusr 
    mailing list<BR><A 
    href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR><A 
    href="http://gradsusr.org/mailman/listinfo/gradsusr" 
    target=_blank>http://gradsusr.org/mailman/listinfo/gradsusr</A><BR><BR></BLOCKQUOTE></DIV><BR><BR 
  clear=all>
  <DIV><BR></DIV>-- <BR>Jeff Duda<BR>Graduate research assistant<BR>University 
  of Oklahoma School of Meteorology<BR>Center for Analysis and Prediction of 
  Storms<BR></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>gradsusr mailing 
  list<BR>gradsusr@gradsusr.org<BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></BLOCKQUOTE></BODY></HTML>