[GRASSLIST:6626] Re: Grass GIS and Fragstats on Linux!
Paolo Cavallini
cavallini at faunalia.it
Tue Apr 26 09:57:47 EDT 2005
Good new - thanks Sander.
However, AFAIK Crossover Office is not free software. It would therefore be
important to check if Fragstats works under wine.
In the long term, we should see if it's possible to either port Fragstats
under linux, integrate it more closely with grass, and/or rewrite r.le.
All the best.
pc
At 10:55, martedì 26 aprile 2005, Sander Oom has probably written:
> Dear Fragstats and Grass GIS users,
>
> To my pleasant surprise I have successfully run Fragstats on a Linux
> machine in conjunction with my Grass GIS database.
>
> I tried the landscape index tools r.le within Grass, but ran into
> several problems (see earlier posts on the Grass mailing list). Than I
> started looking for an alternative. Fragstats is a powerful and well
> tested program, but it is only available for Windows.
>
> However, when running the Fragstats setup program using CrossOver Office
> on my Linux machine, the installer finished without any errors! I have
> tried several options and methods and have not seen the program crash
> yet! I guess the success is a result of the combination of the little
> dependency of Fragstats on odd windows dll's and the progress made in
> the Wine project, the basis for CrossOver Office. I have not tested
> Fragstats on Wine.
>
> Below you find the Grass code to prepare your data for Fragstats. I used
> the Albers Equal Area projection to prepare my rasters. Using sed (Linux
> utility) I removed the header from the exported ascii file. Fragstats
> only wants the points. I put the header content in a file called
> 'asc_header_aea.txt' so I could paste it back in later, as Fragstats
> returns exactly the same grid of points. Fragstats creates a new folder
> with an ascii grid (no header nor an extension!) for each index
> calculated, so I wrote a loop to go through the files, add the header
> and read the result into Grass. Then I queried the raster with a points
> vector and exported the results to a text file.
>
> Hope this is helpful for other Grass/Linux users!
>
> Cheers,
>
> Sander.
--
Paolo Cavallini
cavallini at faunalia.it www.faunalia.it www.faunalia.com
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953
More information about the grass-user
mailing list