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

20050914: 20050912: IDV bundles



>From: "David Fitzgerald" <address@hidden>
>Organization: Millersville University
>Keywords: 200509141712.j8EHCanX020693 IDV data paths

Hi Dave-

>Hmmm this is interesting then.  
>
>I have a directory: /export/home/faculty/dave/LEAD
>
>I installed IDV under this directory:
>/export/home/faculty/dave/LEAD/IDV_1.2b2  
>
>I put a data file in this LEAD directory and ran, from that directory
>this command: 
>./IDV_1.2b2/jre/bin/java -Xmx512m ./IDV_1.2b2/idv.jar
>
>I created a bundle from the data file, and saved the bundle in the same
>directory as the data file.  So everything I have done is from the same
>directory as the data file.  Looking into the bundle file, I see that
>the full path to the data is listed.  i.e.
>/export/home/faculty/dave/LEAD/2005091412_eta211.nc
>
>So this is not a relative path to the data, which I need it to be for
>our teacher-partners and the CD we want to burn the bundles and data on.

But if you edit the data source location in bundle to be relative to the 
LEAD directory (caveat that we don't endorse editing bundles), then you 
should be able to open that bundle.

>So I am back to square one.  How do I get the bundles to use a relative
>path to the data files?

Again, you have make the path relative to the location of where
you start the IDV.  Unless you are going to distribute the IDV on the
CD, that will be difficult because you don't know where the IDV will
be installed a priori.

Jeff and I talked about this and we thought of some ways to do this
in the future (but that doesn't help you now).  If you have ideas
on how you would like this all to work from the user perspective of
saving a bundle or from a the user starting the bundle, let us know.
Our thought is that in the saving, you would click an "Advanced" button
that would allow you to save the data as a user defined path
(e.g. %DATAPATH% or %BUNDLEPATH%).  In one case, the user of the
bundle could point %DATAPATH% to some directory, in the other, the
file would be relative to the bundle location.

Don

>-----Original Message-----
>From: Unidata Support [mailto:address@hidden] 
>Sent: Wednesday, September 14, 2005 7:21 AM
>To: David Fitzgerald
>Subject: 20050912: IDV bundles 
>
>>From: "David Fitzgerald" <address@hidden>
>>Organization: Millersville University
>>Keywords: 200509122035.j8CKZbnX025116
>
>Hi Dave-
>
>>Hi,
>>
>>Our students created some IDV bundles for the LEAD project.  We want to
>>burn these bundles and their associated data files to CD's so our
>>teacher-partners can use them.  We are having a weird problem though.
>>The xidv files are using the full pathname when referencing the data,
>as
>>shown below:
>>
>><property name="Name">
>>
>><string><![CDATA[/export/home/faculty/dave/2004012900_eta211.nc]]></str
>i
>>ng>
>></property>
>>
>>Obviously we can't have this full path name on the CD as it won't exist
>>on the teachers' machine.  We put the bundles and data files all in the
>>same directory, so the students could easily use relative path names.
>>However, when we try to change the path in the xidv file to be a
>>realative path:
>
>First, we don't advocate editing bundles, because you can really
>shoot yourself in the foot if you change/delete the wrong thing.
>
>><property name="Name">
>>   <string><![CDATA[./2004012900_eta211.nc]]></string>
>></property>
>>
>>we keep getting:
>>"An error has occurred: Initializing after xml 2004012900_eta211.nc (No
>>such file or directory) "  Even though the data is in the same
>directory
>>as the bundle.
>
>The file name is going to be relative to the process that starts the
>IDV, not the bundle.  So, if you have the IDV on the CD, make sure
>the script that runs it cd's to the directory where the data and
>bundle are:
>
>cd ../data
>../IDV1_2/jre/java -Xmx512m -jar ../IDV1_2/idv.jar
>
>
>or something like that.
>
>>What are we doing wrong to get this error?
>>
>>Thanks for your help!
>
>We'll think about ways to make this easier for the future.
>
>Don Murray
>************************************************************************
>Unidata User Support                                    UCAR Unidata
>(303)497-8643                                                  P.O. Box
>address@hidden                                   Boulder, CO
>------------------------------------------------------------------------
>Unidata WWW Service
>------------------------------------------------------------------------
>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.
>
--
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.