Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[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


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690