[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #PWO-933032]: Wind shear problems



Hi Jim-

> Hello,
> I seem to be getting an error when i try to save that formula in the User's 
> Library pane.
> Also, when I highlight the line and right click I don't seem to be getting a 
> create formula option.
> I have included a picture that contains the error. Thanks,
> ~~Jim Limbacher

Sorry, my bad.  The lines after def have to be indented.  Jython uses
the structure of the code to determine flow:

def windShearMag(u, v, top, bottom):
  udiff = layerDiff(u, top, bottom)
  vdiff = layerDiff(v, top, bottom)
  windDiff = sqrt(udiff*udiff + vdiff*vdiff)
  return windDiff

They all need to be indented the same number of spaces (number doesn't
matter).  I blew it when I cut and pasted from my editor.  Sorry about 
that.

You don't need to highlight the windShearMag, just right clicking on
it should do it.  The previous error keeps the "Make formula" menu
from being added to the popup.

BTW, when you respond can you turn off sending the message as HTML?
It seems to be screwing up our system.  Thanks.

Let me know if that doesn't work for you.

Don

Don




Ticket Details
===================
Ticket ID: PWO-933032
Department: Support IDV
Priority: Normal
Status: Open