<div dir="ltr"><div><div><div>It would probably help if you left the skip function for the very end. I don't see a need for using the skip command to merely define a new variable. skip() is a display type command.<br></div><div><br>define negto10 = const(maskout(zcomp,zcomp-1),10,-u)<br><br></div>define mor4140 = const(maskout(negto10,41-negto10),40,-u)<br><br></div>d skip(mor4140,8,8)<br><br></div>Jeff Duda<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 6:43 AM, Mikovitz, Colleen (LARC-E302)[SCIENCE SYSTEMS AND APPLICATIONS, INC] <span dir="ltr"><<a href="mailto:j.c.mikovitz@nasa.gov" target="_blank">j.c.mikovitz@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can make a negative version of your variable and do a similar process. With a field I have on, limiting values between 200 and 300:<br>
<br>
'negto200=const(maskout(toaup,toaup-200),200,-u)'<br>
'revnegto200=-negto200'<br>
'keep=revnegto200+300'<br>
'backtogood=-1*(maskout(keep,keep)-300)'<br>
'final=const(backtogood,300,-u)'<br>
'd final’<br>
<div><div class="h5"><br>
<br>
On Oct 28, 2015, at 10:27 PM, Christopher Gilroy <<a href="mailto:chris.gilroy@gmail.com">chris.gilroy@gmail.com</a>> wrote:<br>
<br>
> Alright, so I'm unsure if maskout is really the option I need for both of these, but is there anyway to take any value less than 1 (even negatives) and replace them with 10? I seem to be able to do that with:<br>
><br>
> 'define negto10= skip(const(maskout(zcomp,zcomp-0), 10, -u), 8, 8)'<br>
><br>
> That gives me all positive numbers, great so far. Now, I'd like to also change the results of negto10 and turn all numbers larger than 41 to 40. I can't seem to figure that part out. I've tried all sorts of variants of:<br>
><br>
> 'define mor4140 = skip(const(maskout(negto10,negto10+41), 40, -u), 8, 8)'<br>
><br>
> all with no luck. Any thoughts?<br>
</div></div>> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br></div>
</div>