[GRASS-user] Raster Maps

Hi Everyone,

I would like to create a raster map of temperature values using v.surf.idw and calculate the median temperature value for each state/province in North America. I currently have a point shapefile of temperature values covering all of North America, a North American area shapefile (both imported using v.in.ogr). I would like to use v.rast.stats to calculate the median value for each state/province; however, I get an "Error: no categories found in raster map". I created the temperature value raster using v.surf.idw and there are no categories associated with this file.

Can anyone tell me how I can assign categories to a raster file please?

I am running Grass 6.4 on a Mac OSX Snow Leopard.

Cheers,

Andrew

Andrew Lewin, M.Sc., Adv. Dipl. GIS
President
Spatial-Conserve Inc.
Oceans and Coasts Blog at www.spatialconserve.com
Email: alewin@spatialconserve.com
Tel: (905) 639-4646
Mobile: (905) 630-8441
Skype: andrew.lewin99
Follow me on Twitter: www.twitter.com/arlewin

Okay, so I found out more information. I reclassed the raster layer to give myself some categories; however, when I tried to run v.rast.stats I got an error saying “No categories found in raster map”

Your help is much appreciated.

Andrew

Andrew Lewin
andrew.lewin@sympatico.ca

Founder of Oceans and Coasts Blog

President
Coastal/Marine Spatial Ecologist
Spatial-Conserve Incorporated

Associate
C-FOAM (Canadian Fisheries, Oceans and Aquaculture Management Group)
Telfer School of Management, University of Ottawa

On 2010-08-26, at 2:56 PM, Andrew Lewin wrote:

Hi Everyone,

I would like to create a raster map of temperature values using v.surf.idw and calculate the median temperature value for each state/province in North America. I currently have a point shapefile of temperature values covering all of North America, a North American area shapefile (both imported using v.in.ogr). I would like to use v.rast.stats to calculate the median value for each state/province; however, I get an “Error: no categories found in raster map”. I created the temperature value raster using v.surf.idw and there are no categories associated with this file.

Can anyone tell me how I can assign categories to a raster file please?

I am running Grass 6.4 on a Mac OSX Snow Leopard.

Cheers,

Andrew

Andrew Lewin, M.Sc., Adv. Dipl. GIS
President
Spatial-Conserve Inc.
Oceans and Coasts Blog at www.spatialconserve.com
Email: alewin@spatialconserve.com
Tel: (905) 639-4646
Mobile: (905) 630-8441
Skype: andrew.lewin99
Follow me on Twitter: www.twitter.com/arlewin


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Andrew,

I think your problem is associated to the cats in vector, not the raster map.
Do you have a cat column in the polygon map?

···
Ing. Jonathan Agüero Valverde, Ph.D. 
Profesor e Investigador 
Programa de Investigación en Desarrollo Urbano Sostenible  (ProDUS) 
Escuela de Ingeniería Civil 
Universidad de Costa Rica

Okay, so I found out more information. I reclassed the raster layer to give myself some categories; however, when I tried to run v.rast.stats I got an error saying “No categories found in raster map”

Your help is much appreciated.

Andrew

Andrew Lewin
andrew.lewin@sympatico.ca

Founder of Oceans and Coasts Blog

President
Coastal/Marine Spatial Ecologist
Spatial-Conserve Incorporated

Associate
C-FOAM (Canadian Fisheries, Oceans and Aquaculture Management Group)
Telfer School of Management, University of Ottawa

On 2010-08-26, at 2:56 PM, Andrew Lewin wrote:

Hi Everyone,

I would like to create a raster map of temperature values using v.surf.idw and calculate the median temperature value for each state/province in North America. I currently have a point shapefile of temperature values covering all of North America, a North American area shapefile (both imported using v.in.ogr). I would like to use v.rast.stats to calculate the median value for each state/province; however, I get an “Error: no categories found in raster map”. I created the temperature value raster using v.surf.idw and there are no categories associated with this file.

Can anyone tell me how I can assign categories to a raster file please?

I am running Grass 6.4 on a Mac OSX Snow Leopard.

Cheers,

Andrew

Andrew Lewin, M.Sc., Adv. Dipl. GIS
President
Spatial-Conserve Inc.
Oceans and Coasts Blog at www.spatialconserve.com
Email: alewin@spatialconserve.com
Tel: (905) 639-4646
Mobile: (905) 630-8441
Skype: andrew.lewin99
Follow me on Twitter: www.twitter.com/arlewin


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)