Martin Sykes' CPView2 developement thread:

General forum about discussing climate issues. If anything attracts more attention it can be spawned as a separate topic...

Moderators: mo.v, Moderators, Site admin

Martin Sykes' CPView2 developement thread:

Postby MartinSykes31 » Wed Nov 05, 2003 10:28 am

I've knocked up a simple visualisation tool in Excel last night. No apologies for the state of the code but it lets you see what's in the dataout directory. It's a bit clunky but some of the graphics are pretty. The easiest way to use it is to use the default options and just hit play. ( 'Esc' to kill the playback at the moment )

I partially worked out the format of the file by trial and error so I don't know what the data means but it's just a bit of fun until the proper visualisation package comes along.

Here's what it looks like:

Image

and here's the link

This now links to the latest MFC version
http://www.users.globalnet.co.uk/~sykesm/docs/CPView2.zip

Have fun...
Last edited by MartinSykes31 on Fri Feb 06, 2004 3:10 pm, edited 3 times in total.
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby Herb » Wed Nov 05, 2003 11:16 am

Has a fixed program path, so it doesn't work with me, but looks good though :)
You've got questions?

We have answers,
a few at least,
some may even be correct,
sometimes.
Herb
 
Posts: 1
Joined: Wed Sep 24, 2003 3:45 pm
Location: BecksTown

Postby MartinSykes31 » Wed Nov 05, 2003 11:27 am

There is nothing fixed. You can just change the path and mask in the appropriate cell and run.

I've had a play with some of the different files and it looks like the following combinations work well (assuming the naming convention is the same on all installations)

mask = *.pa* series in file = 6
mask = *.pd* series in file = 1 ( no obvious repeat )
mask = *.pe* series in file = 8
mask = *.pg* series in file = 5
mask = *.pf* series in file = 10
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby DaveF » Wed Nov 05, 2003 1:27 pm

Looks great!

Dave
DaveF
Former project co-ordinator
Former project co-ordinator
 
Posts: 438
Joined: Wed May 21, 2003 12:25 pm
Location: Oxford

Postby BarkerJr » Thu Nov 06, 2003 8:16 am

That sure is pretty cool!
User avatar
BarkerJr
Guru L-III.
Guru L-III.
 
Posts: 574
Joined: Thu May 22, 2003 3:38 am

Postby macaitis » Thu Nov 20, 2003 3:06 am

Look very nice, but I tried it and it bombs with run-time error 1004 -
Method 'calculation' of object '_Application' failed.
I don't know much about VBA, but it fails at the line

Application.Calculation = xlCalculationManual

in the code.
Any ideas would be much appreciated. I would love to get it going.
John
macaitis
 
Posts: 4
Joined: Sat Sep 27, 2003 8:18 am

Postby MartinSykes31 » Thu Nov 20, 2003 8:16 am

It was written in Access2000. I don't know what version the method was added in but if your version is older, you can probably get it working by just commenting that line out. It was only added to speed it up slightly and doesn't affect the functionality. I've got a newer version which I'll put up in a few days when its been tidied up a bit that let me create a series of bitmaps to build movie files from (examples in another topic - model animations )
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby MartinSykes31 » Mon Dec 01, 2003 10:11 pm

If anyone wanted to try this but didn't have Excel, I've converted it to a MFC application. You just run it, then open any file from the dataout directory. It doesn't have quite as much functionality as the Excel version, but the graphics are a bit prettier because I wasn;t limited in the number of colours I could use.

http://www.users.globalnet.co.uk/~sykesm/docs/CPView2.exe

It's only 40Kb.

Martin
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby astroWX » Mon Dec 01, 2003 11:53 pm

Hi, Martin,

Slick! Thanks.

Regards,
astroWX
We have met the enemy and he is us. -- Pogo
Volunteer: Opinions may not reflect those of U.Oxford, Climate Prediction team, or affiliated organizations . Assistance provided, while I think it reliable, should be used with caution.
astroWX
Forum Admin
Forum Admin
 
Posts: 2830
Joined: Tue Jul 22, 2003 10:41 pm
Location: Raymond, WA USA

Postby MartinSykes31 » Wed Dec 03, 2003 12:58 pm

Version 1.1 is ready. It lets you look at multiple images from the same file, and multiple files at once and has an option to display in 3D.

Screenshot:
Image

Link:
This now links to the latest MFC version
http://www.users.globalnet.co.uk/~sykesm/docs/CPView2.zip
Last edited by MartinSykes31 on Fri Feb 06, 2004 3:10 pm, edited 3 times in total.
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby MartinSykes31 » Thu Dec 04, 2003 12:11 pm

Version1.2 - Includes surface underlay. Same link as above.

Image
Last edited by MartinSykes31 on Fri Feb 06, 2004 2:53 pm, edited 1 time in total.
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby UK_Nick » Thu Dec 04, 2003 1:48 pm

Nice one Martin - interesting to watch the changing patterns in global temperatures more quickly than they step forward in the CPDN visualisation. :)

CPView2 seems to get a bit confused when I try to open multiple files though, even with CPDN itself paused - nothing happens when I open a second file beyond the box's border appearing with nothing in it - after that nothing seems to work unless I [X] out & re-run CPView. WinXP Home on Alison, which is about my fastest machine, with CPDN on a fast(ish) RAID0 array.

Ciao...

[UK]_Nick...
User avatar
UK_Nick
Guru L-IV.
Guru L-IV.
 
Posts: 1908
Joined: Sat Sep 13, 2003 8:55 am
Location: Weston-Super-Mare, UK.

Postby MartinSykes31 » Fri Dec 05, 2003 10:16 am

Nick, I found the same problem after running it for a while and I think I wasn't releasing some resource properly.

Anyway, same link, new version.

includes

- fix hopefully for Nick's problem
- fix to routine for reading data
- recording button to save images to c:\temp
- standard window sizing buttons to set image size for common video formats

Martin
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Postby jbl » Sat Dec 06, 2003 2:30 am

MartinSykes31 wrote:Anyway, same link, new version.


On your home page you mention PicoZip; there's a freeware zip/unzipper called iZarc that also handles *.LZP files.
See http://www.izsoft.dir.bg/izarc.htm

Gr. Jan
[Edit] BTW: Great program!
jbl
Guru L-II.
Guru L-II.
 
Posts: 211
Joined: Mon Jul 14, 2003 9:02 pm
Location: The Hague, The Netherlands

A more complex visualisation tool...

Postby MartinSykes31 » Sun Dec 07, 2003 10:43 pm

Version 1.4 is ready now.

It includes titles for most of the data sets, some improvements to the drawing and a new vector display for datasets with two dimensions.

eg. in the *.pa* files, there are two datasets for wind North/South and East/West. They are now combined to give a vector display.

Image

Still some work to do but it's looking more useful now...

Link is the same:

This now links to the latest MFC version
http://www.users.globalnet.co.uk/~sykesm/docs/CPView2.zip
Martin
Last edited by MartinSykes31 on Fri Feb 06, 2004 3:11 pm, edited 3 times in total.
User avatar
MartinSykes31
Guru L-III.
Guru L-III.
 
Posts: 555
Joined: Mon Oct 06, 2003 8:49 am
Location: Northwich, England

Next

Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest