Spatio Temporal Aquarium
Wednesday, June 08, 2005
  Matlab Problem: datacursormode

I need to customize the datacursor, but have no idea how to go about it. I have looked at the datacursormode function, but there isn't a lot of detail in the documentation.

Basically I want to run another function when the user clicks on a data point with the data cursor.

I'm sure it is possible, I'm just a bit annoyed with myself that how to do this doesn't seem obvious.

Technorati Tags: , , ,
 
Continue reading...

Monday, June 06, 2005
  GIS Tip: Joining Large Shapefiles

If you are joining a very large shapefile on an attribute field, it is much faster to join the dbfs and calculate new fields in Microsoft Access.

Then just overwrite the dbf part of the shapefile with the new improved dbf.

Technorati Tags: , , ,

 
Continue reading...

Sunday, June 05, 2005
  It works!

...although "works" is probably an exaggeration. It is more like: I have gotten rid of the obvious error messages and the prototype seems to be doing what it did before.

I think that is enough brain strain for today.

 
Continue reading...

  Matlab Solution: setappdata and structure arrays

Setting up the structure of the array first IS the way to go about it.

Does Not Work:
setappdata(STVFig,'dataset.isosurf.M',[]);
setappdata(STVFig,'dataset.isosurf.O',[]);
setappdata(STVFig,'dataset.isopatch.M',[]);
setappdata(STVFig,'dataset.isopatch.O',[]);
setappdata(STVFig,'dataset.isopatch.XY',[]);
setappdata(STVFig,'dataset.isopatch.XZ',[]);

Works:
dataset.isosurf.M =[];
dataset.isosurf.O = [];
dataset.isopatch.M=[];
dataset.isopatch.O=[];
dataset.isopatch.XY=[];
dataset.isopatch.XZ = [];
setappdata(STVFig,'dataset',dataset);
clear dataset;


Technorati Tags: , , , , ,

 
Continue reading...

  Matlab Problem: setappdata and structure arrays

It turns out my old code is not as messy as I thought. There are lots of comments, and it is relatively logically structured. I have decided to just modify the old code.

So, I try and run it. And it crashes on the Initialise routine.

For some reason, the code that used to work, no longer works. That's OK. It is what I expected.

However, I have spent the last hour trying to figure out why it doesn't work, and I am stuck. I think it should work. I think the documentation says it should work, but the documentation is not very explicit.

The problem is on the setappdata function:
setappdata(STVFig,'dataset.isosurf.M',[]);
It doesn't like the fields (ie "isosurf" and "M"). It is quite happy if I just do this:
setappdata(STVFig, 'dataset',[]);

But I don't want to do just that. I want dataset to be a structure array like this:

dataset
- isosurf
- M
- O
- isopatch
- M
- O

I can't figure out how to define the dataset structure in the setappdata function. Usually, you can just add a field like this:
dataset.isosurf.M = [];

I have tried setting up the fields, and then using that in the setappdata function, eg:
dataset.isosurf.M =1;
dataset.isosurf.O = 2;
setappdata(STVFig,'dataset',dataset);
but that doesn't seem to be working either.

I think I need more coffee. I really want chocolate, but I know if I go home, I won't come back.

Technorati Tags: , , , , ,

 
Continue reading...

  I Am Starting Again

Well, not again exactly.

I used to have a tool that allowed interaction visualization of spatio-temporal data sets. It was written in Matlab. I need to update it and add functionality.

I have the option of modifying my old code or recoding. Given that the old code was written for an older version of Matlab, and it was rather messy, I think it will be easier to start again.



Here are screenshots from the old tool:
isosurf2d


isosurf3d


Today, I am going to figure out the new version of Matlab, and start setting up the User Interface.

 
Continue reading...

  Purpose of this Blog

Blog Purpose: To track my thesis progress.

Thesis Title: Visualizing Spatio-Temporal Data using a Time Geographic Approach.

Keywords: GIS, Visualization, spatio-temporal, time, Time Geography, aquarium, Matlab

 
Continue reading...

My thesis blog. Matlab. GIS. Visualization. Spatio-temporal. Time Geography. Aquarium.

Recent Posts

Archives
June 2005 / July 2005 / August 2005 /


Powered by Blogger