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

[IDV #IJD-786869]: specifying level with isl



On 3/30/2011 9:24 AM, Don Murray wrote:
> New Client Reply: specifying level with isl
>
> Yuan-
>
> The level may not be hectopascals - it could be whatever the vertical
> unit of the data are.  Try using just:
>
>           if (level instanceof String) {
>               try {
>                   Real level1 = Util.toReal(level.toString());
>                   getDataSelection().setLevel(level1);
>               } catch (Exception e) {
>                   System.err.println("error parsing level: " + level + "
> " + e);
>               }
>
> and see if that works.  I think you are on the right track.
>
> Don


OK, so it doesn't matter to have 50000 Pa to go with the 500 hPa.


Yuan
>
>
> On 3/29/11 3:29 PM, Unidata IDV Support wrote:
>>> In the attached isl script, the level for display is set using the
>>> display property:
>>>
>>> <display param="Geopotential_height" type="planviewcontour">
>>> <property name="dataSelectionLevel"
>>> value="50000[Pa]"/>
>>>
>>> I fixed one problem where the unit was not being parsed and attached to
>>> the Real.  However, if you load the isl in the IDV and look at the
>>> control, the level is listed as 50000[Pa].  Somehow, the level is not
>>> getting converted to the same type as the other list of levels.  This
>>> doesn't cause any problems, per se, but may lead to confusion on the
>>> user's part.  The level should probably be converted to a Real of the
>>> same type as the other Real objects in the levels field.
>>>
>>> Don
>>
>> Don,
>>       I made some changes in the PlanViewControl, but it need more testing. 
>> Please take a try.
>>
>>
>> Yuan
>>> --
>>> Don Murray
>>> NOAA/ESRL/PSD and CIRES
>>> 303-497-3596
>>> http://www.esrl.noaa.gov/psd/people/don.murray/
>>>
>>>
>>
>>
>> Ticket Details
>> ===================
>> Ticket ID: IJD-786869
>> Department: Support IDV
>> Priority: Normal
>> Status: Closed
>>
>



Ticket Details
===================
Ticket ID: IJD-786869
Department: Support IDV
Priority: Normal
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.