You are not logged in.

#1 2013-09-16 07:58:22

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Input data format issue

Hi,

I have been having an unusual problem with the format of the input data for graphab.

I keep getting the following error:
"java.awt.image.Raster cannot be cast to java.awt.image.WritableRaster"

I have had success previously with graphab. But at the moment it does not seem to be working. I have been trying all kinds of raster formats. I even have one file that has exactly the same raster properties as another file that does not work. e.g. both are 32bit floating point tiffs - but with slightly different values.

I can send you the files if you want.

Would you know the solution to this problem.

Thanks,

Alex

Offline

#2 2013-09-17 08:11:19

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Re: Input data format issue

I think I have solved the problem - for my dataset anyway.

Tiff formats:
Pixel Type               Pixel Depth    Working
unsigned integer     1                    yes
unsigned integer       1                    yes
signed integer             8                    yes
unsigned integer     16                    yes
signed integer             16                    no
unsigned integer     32                    no
floating point             32                    no

Dataset tested:

2670 x 1443 pixels

I have also tested the same landscape at higher spatial resolution

5340 x 2885 pixels

and a different landscape

8683 x 8713

Both work as an unsigned 16 bit integer.

I think there are three issues at work which can give unspecific error messages. One relates to having a large dataset with lots of patches the other the incorrect tif format. Interesting the project appears to run successfully and output appears in the output folder but just does not display.

I hope that helps anyone who has been having similar problems.

Cheers,

Alex

Last edited by alex.lechner (2013-09-18 05:48:09)

Offline

#3 2013-09-18 09:18:15

admin
Graphab Dev
Registered: 2013-05-28
Posts: 25

Re: Input data format issue

Hi,
The best format for landscape map is 8 bits signed or unsigned.
Next version will manage correctly 1, 2, 4, 8, 16 bits (un)signed integers and 32 bits signed integer.
Floating point are not managed and never will for landscape map.
In a few days, I'll put on the website next version of graphab for testing only.
Thanks for your tests
Gilles

Offline

#4 2013-09-18 09:24:41

alex.lechner
Guest
From: Australia
Registered: 2013-06-12
Posts: 17
Website

Re: Input data format issue

Thanks for the quick reply.

In my model I have a maximum dispersal distance 1100m which means I need to use 16bit images for areas where there are boundaries. e.g. have pixels with a value of 1101.

Looking forward to the next version.

Cheers,

Alex

Offline

Board footer