Search found 235 matches

by tomw
Wed Aug 26, 2015 12:50 am
Forum: Bundles
Topic: startup_bundle set to "0;"?
Replies: 1
Views: 17490

startup_bundle set to "0;"?

I note in my fresh install of McV 1.5 on Windows 64 bit, that the "STARTUP_BUNDLE" in the McIDAS-V/runMcV-Prefs.bat file is initially set to "". However, as soon as I run the configuration (either from the runMcV-Config.bat or from the GUI) and save it, the STARTUP_BUNDLE in McID...
by tomw
Tue Jul 07, 2015 8:29 pm
Forum: Scripting
Topic: newUnit
Replies: 9
Views: 9284

Re: newUnit

Naive question: could you not just change the "display units" in the "Edit->Change Display Unit" menu? Or, if you always want degC, change the display defaults?
by tomw
Mon Jul 06, 2015 5:13 pm
Forum: Scripting
Topic: newUnit
Replies: 9
Views: 9284

Re: newUnit

You might try "degC". I believe that "C" is "Coulomb".
by tomw
Mon Mar 02, 2015 6:19 pm
Forum: Scripting
Topic: problem with formula
Replies: 11
Views: 5784

Re: problem with formula

Here's what I did (in the Jython shell....), which produce a result (I had to change the scaling)... # Generated from Jython Shell history (2015-03-02 18:15:16Z) iwp=selectData() t11=selectData() t67=selectData() iwt=newUnit(iwp, "iwpt", "degK") from visad.python.JPythonMethods i...
by tomw
Mon Mar 02, 2015 6:01 pm
Forum: Scripting
Topic: problem with formula
Replies: 11
Views: 5784

Re: problem with formula

newUnit requires 3 inputs, what is the "field" name? Your variable, "iwp" (without the quotes). the "variable" is the name of the _new_ quantity, so something like "iwpt" (with the quotes). I'll try to get your file and have a look -- might be a while. I'm ho...
by tomw
Mon Mar 02, 2015 5:08 pm
Forum: Scripting
Topic: problem with formula
Replies: 11
Views: 5784

Re: problem with formula

I believe the field would be "iwp" (without the quotes), the varname would be "iwp" (with the quotes), and the unit would be "degK". You might need to run this via the Jython shell in order to help diagnose the issues. Also, if you're trying to display it as an "Im...
by tomw
Mon Mar 02, 2015 4:35 pm
Forum: Scripting
Topic: problem with formula
Replies: 11
Views: 5784

Re: problem with formula

As Rick will attest, these are "interesting" problems! Try re-arranging the c= to be: c=(.0252*(T67-T11))-(.0369*T11)+5.678+(.0006*noiwp); This "should" keep the units in temperature...should... Also, stick some "print" statements between the lines to isolate which line...
by tomw
Mon Mar 02, 2015 3:45 pm
Forum: Scripting
Topic: problem with formula
Replies: 11
Views: 5784

Re: problem with formula

While I'm not familiar with that specific error, I'm going to assume that the variables that start with "T" are temperature and the variable "iwp" is not -- and that's the issue. Also, if you can isolate which statement is causing the error that might help. Here are some suggesti...
by tomw
Sat Feb 28, 2015 9:18 pm
Forum: Scripting
Topic: problem with formula
Replies: 11
Views: 5784

Re: problem with formula

Usually this error occurs when doing an arithmetic combination involving add or subtract, and the units of each operand are not convertible. You cannot, for example, add a pressure to a temperature. Depending on the structure of your data, you might be able to use the noUnit(data) function to strip ...
by tomw
Fri Dec 12, 2014 10:13 pm
Forum: Scripting
Topic: user input
Replies: 3
Views: 2907

Re: user input

Hi HP... I do not believe the "raw_input" would work in this context since you don't really have a "command line" (assuming you are running the script within the McIDAS-V framework). [I edited this, since at first glance, the form looked like what Jeff had done in the Formula lin...