Fernanda,<br>The best I can come up with is to define a new field that satisfies the condition, but use the const function to set all values as 1. Then take the sum of that field across a larger area that contains your new field. For your example, you could define a new field as the binary of temperature within the 10 C contour (you'd have to clarify whether above or below 10 C) as<br>
<br>'define above = maskout(temperature,10)'<br>'define aboveone = const(above,1)'<br><br>or nest the above formulas into one step: 'define aboveone = const(maskout(temperature,10),1)'<br><br>Then: 'd asumg(aboveone,x=x1,x=x2,y=y1,y=y2)', where you'd have to insert specific values for x1, x2, y1, y2.<br>
<br>If your temperature field contained values both above and below a closed 10C contour, you'd have to define a second field for the other direction, then sum the two final values together.<br><br>Jeff Duda<br><br><div class="gmail_quote">
On Tue, Aug 28, 2012 at 9:28 AM, Fernanda Casagrande <span dir="ltr"><<a href="mailto:fenc10@hotmail.com" target="_blank">fenc10@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<div>Hello,</div>Does anyone know how to calculate an area (Kmˆ2) inside a contour interval? example, the area inside the 10oC contour?<div>best,</div><div>Fernanda <br><br><br><div><div></div>> Date: Tue, 28 Aug 2012 15:06:35 +0100<br>
> From: <a href="mailto:bernd.becker@metoffice.gov.uk" target="_blank">bernd.becker@metoffice.gov.uk</a><br>> To: <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>> Subject: Re: [gradsusr] Dimension Environment<br>
> <br>> <br>> That is your nearest grid point. <br>> Do you think you create extra information by interpolation?<br>> <br>> I doubt it. <br>> <br>> --<br>> Bernd Becker Climate Impacts Product Development<br>
> Met Office Hadley Centre FitzRoy Road Exeter Devon EX1 3PB United<br>> Kingdom<br>> Tel.: +44 (0) 1392 884511 Fax: +44 (0)870 900 5050<br>> <a href="mailto:E-mail%3Abernd.becker@metoffice.gov.uk" target="_blank">E-mail:bernd.becker@metoffice.gov.uk</a> -<br>
> <a href="http://www.metoffice.gov.uk/research/people/bernd-becker" target="_blank">http://www.metoffice.gov.uk/research/people/bernd-becker</a><br>> <br>> -----Original Message-----<br>> From: <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a><br>
> [mailto:<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] On Behalf Of one weather<br>> Sent: 28 August 2012 14:49<br>> To: <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
> Subject: [gradsusr] Dimension Environment<br>> <br>> Hello, everyone.<br>> <br>> I'm working with forecast from GFS 0.5x0.5 Degree (I'm working with<br>> GrADS 2.0.a9), but I've got some problems with environment dimensions.<br>
> When I write<br>> <br>> ga-> set lat 45.7<br>> <br>> GrADS replay:<br>> <br>> LAT set to 46 46<br>> <br>> Someone knows what should I do to get the forecast at lat 45.7? There<br>> are any posibility to interpolate data?<br>
> <br>> Thank you so much!!<br>> _______________________________________________<br>> gradsusr mailing list<br>> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
> <br>> _______________________________________________<br>> gradsusr mailing list<br>> <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</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"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>