Hi Jon,
Nifty code snippet! However, it doesn't seem that the check works for most
data types. While attempting to load GOES Imagery or model data multiple times
does not result in the data source appearing multiple times, most others that I
tried (e.g. level 2 and 3 NEXRAD, METAR point obs) do appear multiple times in
the list of data sources. Taking a look at the data source properties reveals
that they are in fact pointing to the same source for each instance.
You can find the zidv bundle on our department's RAMADDA server ... it is made
with IDV 5.0 nightly build, however the problem occurs in 4.1 too.
http://ramadda.atmos.albany.edu:8080/repository/entry/show/Top/Users/Kevin+Tyle/redundant_data_zidv?entryid=019b04eb-d032-45c5-bee2-b1e38afeca29
Thanks,
Kevin
_____________________________________________
Kevin Tyle, Systems Administrator
Dept. of Atmospheric & Environmental Sciences
University at Albany
Earth Science 235, 1400 Washington Avenue
Albany, NY 12222
Email: ktyle@xxxxxxxxxx
Phone: 518-442-4578
_____________________________________________
-----Original Message-----
From: Jonathan Beavers [mailto:jbeavers@xxxxxxxxxxxxx]
Sent: Tuesday, March 11, 2014 2:55 PM
To: Tyle, Kevin R
Cc: Brian Mapes; <idv-steering@xxxxxxxxxxxxxxxx>; idvdevelopers@xxxxxxxxxxxxxxxx
Subject: Re: [idvdevelopers] IDV: Dead views piling up
Hello Kevin,
On 2014-03-11, at 9:56 AM, Tyle, Kevin R <ktyle@xxxxxxxxxx> wrote:
> More often, I see they have the same data source loaded multiple times. Not
> plotted multiple times ... but there nonetheless. Need to inquire among the
> students to see what thought processes make this happen. How hard would it
> be to have the user interface say "You have already loaded this data source,
> are you sure you want to do so again?"
Indeed! It's so easy that the IDV already has code written that attempts to do
exactly that:
http://git.io/3uwF9Q
Okay, okay...apologies for the snark. I was able to verify the duplicate
checker works by attempting to create two identical data sources via the "Sat &
Radar>Images" chooser. Without knowing the specifics of your situation, here's
what immediately comes to mind:
* Are you certain that the data sources are identical? An easy way to check
would be to right click on the data sources in question and view their
"Details" tabs--identical data sources should have identical details.
* Could there be any issues with bundles?
If you can replicate the problem please consider saving a bundle...or just use
both "xidv" and "zidv" bundles to be safe.
Good luck!
Jon