Re: [idvusers] Time Zones

Hi Brendon-

On 5/19/14 8:19 AM, Brendon Hoch wrote:
So the relevant time zone setting lives in main.xml; Eastern time looks
like the following:

     <method name="put">
         <string><![CDATA[Data.TimeZone]]></string>
         <string><![CDATA[America/New_York]]></string>
     </method>

I created a copy of the main.xml file with the additional time zone
setting embedded called edtestmain.xml.  According to sections 5.2.1 and
7.4 of the user guide, I should be able to run IDV with custom settings
from a file from the command line using the -properties arguement.  When
I try to run the following:

runIDV.bat -properties Z:\gyx\edtestmain.xml Z:\gyx\gyxRadarloop.isl

the images still come out with GMT instead of EDT, no errors.  Does
anyone have a recommendation to make this work as intended?

main.xml is a preference file, not a properties file which is why this doesn't work. Preferences are meant to be more permanent, where as properties can be changed from session to session. Preferences in main.xml are set in the User Preferences, but main.xml also holds other preferences that are set interactively (e.g., the last directory used in the file chooser). Properties files are just a list of key=value lines and can be used to set some of the settings that the IDV uses (logos, servers for choosers, etc, but not the time zone).

You can have a main.xml in a plugin, but it will only add preferences that do not exist. And once you set the timezone from a plugin, it will be persisted.

Again, I think adding the capability to pass in a timezone for labels from isl would be useful and the best way to go. But that's for Unidata to decide.

Don

Don Murray (NOAA Affiliate) wrote:
Hi Brendon-

The timezone is a global setting for the IDV by design.  It's like
setting the timezone for you OS - it applies to everything you run.

However, if you just want to use it for labelling through isl, that
might be possible because a label could be formated with a particular
timezone passed in.  It would not apply to the default display list
labels, but you could add your own labels that could be formatted
appropriately. That would require some coding, but, I agree it would be
a useful feature.

Don

On 4/30/14 7:05 AM, Brendon Hoch wrote:
Hello,

Is there a way to specify the time zone to be used in an individual
bundle, without changing user preferences?  Can this be done via an ISL
script with some sort of <property> or <idvproperty> tag?  We would like
to auto-generate maps with timestamps from multiple timezones (UTC,
EST/EDT, etc), but the only way we can find to do this is to change user
preferences.   This would mean we would have to setup an individual
account for each timezone to run the bundles we wish to display, which
gets gangly.  Looked in the ISL documentation for ways to set the
timezone but couldn't find anything specific.

Thanks,
Brendon

Brendon Hoch
Technology Manager
Judd Gregg Meteorology Institute
MSC 48, Boyd Hall 321A
Plymouth State University
Plymouth, NH 03264
(603)535-2818 Fax: (603)535-2723
http://vortex.plymouth.edu/~bhoch

_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit:
http://www.unidata.ucar.edu/mailing_lists/




--
Don Murray
NOAA/ESRL/PSD and CU-CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the idvusers archives: