[Thread Prev][Thread Next][Index]
Re: [las_users] Lat/Lon problems
Hi Anton,
you're right, this line should be improved.
I think this is a quick & dirty solution. Unfortunately is about one
year ago, I programmed this, but I think I needed a big number of minutes.
Actually the number of minutes should be calculated from the start date
and end date if an end date is supplied (and thi != null).
That was one of the last things I did before the project ended, so I
never implemented this solution.
Regards,
Bastian
On 02/26/2010 05:34 AM, Anton Yoel Buenavista wrote:
> Hi Bastian,
>
> Thank you for you advice. At the moment, I'm trying to add to your code
> to support 'seconds'. On the LASConfig.java, on your code for adding
> minutes, could you kindly explain what this line means?
>
> minutes = (int) (12 * 8017 * 3);
>
> How would like to know what the values 12, 8017, and 3 mean as well as
> how you came about with those values.
>
> Regards,
> Anton Yoel Buenavista
>
> -------- Original Message --------
> Subject: Re: [las_users] Lat/Lon problems
> From: Bastian Kern <bastian.kern@xxxxxxx>
> To: las_users@xxxxxxxx <oar.pmel.las_users@xxxxxxxx>
> Cc: "las_users@xxxxxxxx" <oar.pmel.las_users@xxxxxxxx>
> Date: Thursday, 25 February, 2010 9:58:38 PM
>
>> Hi,
>>
>> I had problems with time axes with units of minutes some time ago, so I
>> expanded the LASConfig.java file for our internal LAS server. Now we can
>> use the unit "min" for axes like:
>>
>> <time_axis type="t" units="min">
>> <arange start="01-AUG-2006 11:12" step="12" size="1905"
>> end="17-AUG-2006 08:12"/>
>> </time_axis>
>>
>> If you don't fear editing the Java source code you can use it, but have
>> to change your LASUI.js (in /WebContent/JavaScript/ui/) in line 1524 from:
>>
>> this.refs.DW = new
>> DateWidget(this.state.grid.getLo('t'),this.state.grid.getHi('t'));
>>
>> to:
>>
>> var scale = 1;
>> var tUnits = this.state.grid.getUnits('t');
>> var tDelta = this.state.grid.getDelta('t');
>> if (tUnits == "hour") {
>> scale = 60;
>> if ((24 % tDelta) != 0) {
>> tDelta = 1;
>> }
>> }
>> else {
>> if (tDelta == null || tUnits == "day") {
>> tDelta = 1440;
>> }
>> if (tUnits == "min") {
>> if ((1440 % tDelta) != 0) {
>> tDelta = 1;
>> }
>> }
>> }
>> this.refs.DW = new
>> DateWidget(this.state.grid.getLo('t'),this.state.grid.getHi('t'),(tDelta
>> * scale));
>>
>> and replace /gov/noaa/pmel/tmap/las/jdom/LASConfig.java by the attached
>> LASConfig.java.
>> You should backup all files first!
>>
>> I hope it works,
>> Bastian
>>
>> On 02/24/2010 05:32 PM, Roland Schweitzer wrote:
>>> Anton,
>>>
>>> Anton Yoel Buenavista wrote:
>>>> Hello again everyone,
>>>>
>>>> For an update on my problem, I was able to display the variables
>>>> which only depend on lat and lon using the documentation here:
>>>> http://ferret.pmel.noaa.gov/LAS/documentation/installer-documentation/adding-curvilinear-data/.
>>>> Thank you Roland for your guidance on that.
>>>>
>>>> However, I am faced with a new problem. The remaining variables depend
>>>> on lat, lon, and a time dimension as well as you can see in the sample
>>>> variable definition below:
>>> [...]
>>>> <time-t-id-01ced4ab23 type="t" units="minute">
>>>> <arange start="2008-01-23 00:00:00" size="84" step="15" />
>>>> </time-t-id-01ced4ab23>
>>>> </axes>
>>>>
>>>> I have attached a screenshot of the error being returned when the plot
>>>> is trying to be loaded. Your kind help on the matter is greatly
>>>> appreciated!
>>> Unfortunately the LAS user interface time widget does not understand
>>> time increments of less than one hour. We'll be working on improving
>>> that in future versions, but for now you'll need to create your time
>>> axis by listing each individual time value. I know it's not practical
>>> for all cases, but it's the only solution for the immediate future. For
>>> example:
>>>
>>> <time-t-id-01ced4ab23 type="t" units="minute">
>>> <v>2008-01-23 00:00:00</v>
>>> <v>2008-01-23 00:15:00</v>
>>> <v>2008-01-23 00:30:00</v>
>>> <v>2008-01-23 00:45:00</v>
>>> <v>2008-01-23 01:00:00</v>
>>>
>>>
>>> [...]
>>>
>>> </time-t-id-01ced4ab23>
>>>
>>> Roland
>>>
--
---------------------------------------------------------------
Bastian Kern (Dipl.-Met.)
Max Planck Institute for Chemistry phone:++49-6131-305452
Atmospheric Chemistry Department fax: ++49-6131-305436
Johann-Joachim Becher Weg 27
55128 Mainz
Germany mailto:bastian.kern@xxxxxxx
**Please note the new email address!**
---------------------------------------------------------------
'. | .' oooooooo o
_ ___ oooooooo oo
'' (_) '' _( )_ ooooo ooooo
. . . __ (_______) ° oooo ooooooo
.' | '. ( )__ \ ' \ __° ° ooo oo
' (______) ' \ ' / _\ ° oo ooo
' / \ ooooooo oooo
~~~---~~~^-^~~~^-^~~~^-^~~~^-^~~~^-^~~~^-^~~~ooooo~^-^~~ooooo~
- - - ~ ~ ~ ~ oo oooooooo
- ~ ~ ~ ~ ~ o oooooooo ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
begin:vcard
fn:Bastian Kern
n:Kern;Bastian
org:Max Planck Institute for Chemistry;Atmospheric Chemistry Department
adr:;;Johann-Joachim Becher Weg 27;Mainz;;55128;Germany
email;internet:bastian.kern@xxxxxxx
title:Dipl.-Met.
tel;work:+49 6131 305452
tel;fax:+49 6131 305436
url:www.atmosphere.mpg.de
version:2.1
end:vcard
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement