This is never as simple as it should be.
I was wrong. getDelta('t') just gets the value of the 'step' in the
arange. It's units are determined by the units of the axis. So
sometimes the multiplier is 60 and sometimes it's something else.
The grid response (partially quoted here) from the server:
{"lo":"2008-08-26 09:00:00","arange":
{"start":"2008-08-26 09:00:00","step":"3","size":"5"},
"minuteInterval":"180","hourNeeded":"true","ID":"TIME-t-id-2874090380",
"hi":"2008-08-26 21:00:00","type":"t","yearNeeded":
"true","display_type":"widget","units":"hour",
"monthNeeded":"true","dayNeeded":"true"}],
"error":"ok","status":"ok","ID":"grid-XAX-YAX-Z100-TIME-id-2874090380"}}
contains the delta minutes (as the attribute minuteInterval) as you can
see, but I'm not familiar enough with the LASGrid.js _javascript_ to know
whether or not the deltaMinutes value is retained and exposed with an
easy to call method when the response is parsed into _javascript_.
I'll try to get one of our _javascript_ experts to take a look.
Roland
Robert Fuller wrote:
Thanks
Roland,
The following _javascript_ in LASUI.js seems to give the expected result
with my dataset, but I don't know whether it is a good generic
solution...
var tDelta = this.state.grid.getDelta('t');
var deltaMinutes = tDelta == null?1440:tDelta*60;
this.refs.DW = new
DateWidget(this.state.grid.getLo('t'),this.state.grid.getHi('t'),deltaMinutes);
Thanks,
Robert.
Roland Schweitzer wrote:
Hi Guys,
If you're willing to work directly with the _javascript_, the delta
minutes is available from this.state.grid.getDelta('t').
I can't promise that getDelta('t') will have a non-null value unless
this.state.grid.hourNeeded == 'true'.
Roland
Robert Fuller wrote:
Hi,
Thanks Bastian, this is an improvement.
While the full range of times in our dataset is (09:00, 12:00, 15:00,
18:00, 21:00), previously only 09:00 appeared in the main gui selection
box. After making the change to LASUI.js we have 09:00, 10:00, 11:00
... 21:00, so it gives something to work, allowing us to use time
series line plots on the main las gui.
The ideal solution would be to have the same control used as appears on
the animation screen (which shows the actual times from the dataset).
The workaround you proposed is welcome and we will use it. Thanks
again.
Robert.
Bastian Kern wrote:
Hi Robert,
by default the DateWidget is using 1440 (=24 h) as deltaMinutes.
An easy workaround is (assuming you use v7 beta ui) changing line 1404
of the LASUI.js from:
this.refs.DW = new
DateWidget(this.state.grid.getLo('t'),this.state.grid.getHi('t'));
to:
this.refs.DW = new
DateWidget(this.state.grid.getLo('t'),this.state.grid.getHi('t'),60);
So, an interval of 1h (60 minutes) is used. It is not very flexible but
might work.
Ferret takes the nearest available time then.
Kind regards,
Bastian
Hi Ronald,
The data is not public atm, but I don't foresee a problem with
providing the attached description.
Thanks.
Robert
Roland Schweitzer wrote:
Hi Robert,
If this is public data please send the email list the XML description
for this data set. If it's not public data can you edit out any
information you don't want public and send the edited XML. I'm
primarily interested in the XML that describes the time axis, but if
it's not too big send the whole thing.
Thanks,
Roland
Robert Fuller wrote:
Hi,
We are using las to access an opendap (in thredds) dataset consisting
of an ncml aggregation of 5 gridded netcdf files collected at several
times on the same day.
On the main LAS gui, the date selection range offers no options to
select other than the first time in the range (09:00), even when
selecting a time-series.
When we choose 'download animation', the animation window appears and
correctly displays the range of times (09:00, 12:00, 15:00, 18:00,
21:00).
Anyone have an idea how to get the main LAS gui to correctly display
the time range?
Kind regards,
Robert.
--
Applepie Solutions Ltd., Innovation in Business Center,
GMIT, Dublin Rd, Galway, Ireland. +353.91.751262 http://www.aplpi.com
Registered in Ireland, no. 289353 (5 Woodlands Avenue, Renmore, Galway)
|