Select to view content in your preferred language

Need help with Fragstats!

6932
4
08-06-2012 08:19 AM
ErikaBrandt
New Contributor
I'm trying to import a file into Fragstats but for some reason, everything I've tried has failed. When I import the file as an ASCII and try to run the program, the error message reads "Error: Size mismatch, expecting 15 elements, found 0" (my dataset has 5 rows, 3 columns... at least the Raster that I converted to ASCII did). When I try importing the file as an ESRI grid, the message reads "Error: Grid IO dll is not loaded". No idea what that means. And when I import the file as a 32-bit-integer grid (after converting the Raster to a Grid file in Arc), there are several messages, saying "Error: Size mismatch, expecting 15 elements, found 85", "Error: Invalid class descriptors header", and "Error: A search_radius is required but not set".

This is my first time using Fragstats and I am completely befuddled by all this. Any help would be much appreciated!

Thanks,
Erika
0 Kudos
4 Replies
TravisJowell
Emerging Contributor
I am also a new fragstats user and having trouble with these same issues. (Loading my own ascii grid and ESRI grids). I'm running fragstats 4.1.
0 Kudos
TravisJowell
Emerging Contributor
Erika,
I was messing around with my .txt (ascii) file that I generated from ArcMap and noticed the sample txt file McGarical has on his tutorial folder does not have a header of any type. I deleted the header on mine and retried it and it atleast recognized that I had 1000+ rows and columns. But the total number of entries was off by some and it still failed. Will mess with it some more and post back.
0 Kudos
TravisJowell
Emerging Contributor
Sorry, but I somewhat solved "my" problem. I noticed convert to Ascii tool in Arcmap added on 50 extra rows to my grid when it was processed. I had been inputing the actual classified grids rows/cols and it spat it back out as wrong. I could select the number of rows in txt editor and word counted them and it was correct. So I divided the total number it was giving me and got 1978, but my grid is only 1928.
0 Kudos
CarrieDavis
Deactivated User
Hi,

I am not a regular FRAGSTATS user, but I thought I would test this issue. I used a land use raster from the ArcGIS Spatial Analyst tutorial.  Reading the documentation for FRAGSTATS 4.1 you should be able to input several raster formats.  There are some very specific details about common requirements: 

http://www.umass.edu/landeco/research/fragstats/documents/fragstats.help.4.pdf  (Data formats on pg. 25)

Looks like version 4.1 has some updates on how it works with GDAL.  I just downloaded the latest.

I used Copy Raster (ArcGIS version 10) to create a 8 bit signed raster from my 8 bit unsigned raster. Then exported as landuse.img.   NoData value was 127. I didn't receive any errors when adding this layer to FRAGSTATS.

[ATTACH=CONFIG]17360[/ATTACH]

Jowelltj,

Are you using the Raster to ASCII conversion tool?

Carrie D.
Support Analyst - Raster
0 Kudos