<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andrew,<br>
<br>
I think your problem is associated to the cats in vector, not the
raster map.<br>
Do you have a cat column in the polygon map?<br>
&nbsp;<br>
<pre class="moz-signature" cols="72">Ing. Jonathan Ag&uuml;ero Valverde, Ph.D. 
Profesor e Investigador 
Programa de Investigaci&oacute;n en Desarrollo Urbano Sostenible&nbsp; (ProDUS) 
Escuela de Ingenier&iacute;a Civil 
Universidad de Costa Rica
</pre>
<br>
El 26/08/2010 01:31 p.m., Andrew Lewin escribi&oacute;:
<blockquote cite="mid:BLU0-SMTP28695AECE27BBC11FC3AFAED850@phx.gbl"
 type="cite">Okay, so I found out more information. &nbsp;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"
  <div><br>
  </div>
  <div>Your help is much appreciated.</div>
  <div><br>
  </div>
  <div>Andrew</div>
  <div><br>
  <div><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
 class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
  <div style="word-wrap: break-word;"><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
  <div style="word-wrap: break-word;">
  <div>Andrew Lewin</div>
  <div><a moz-do-not-send="true" href="mailto:andrew.lewin@sympatico.ca">andrew.lewin@sympatico.ca</a></div>
  <div><br>
  </div>
  <div>Founder of&nbsp;<a moz-do-not-send="true"
 href="http://www.spatialconserve.com">Oceans and Coasts Blog</a></div>
  <div><br>
  </div>
  <div>President&nbsp;</div>
  <div>Coastal/Marine Spatial Ecologist</div>
  <div><a moz-do-not-send="true" href="http://www.spatialconserve.com">Spatial-Conserve
Incorporated</a></div>
  <div><br>
  </div>
  <div>Associate&nbsp;</div>
  <div><a moz-do-not-send="true"
 href="http://www.c-foam.management.uottawa.ca/index.html">C-FOAM</a>&nbsp;(Canadian
Fisheries, Oceans and Aquaculture Management Group)</div>
  <div>Telfer School of Management, University of Ottawa</div>
  <div><br>
  </div>
  <div><font class="Apple-style-span" color="#808080" face="Arial"><span
 class="Apple-style-span" style="font-size: x-small;"><i><br>
  </i></span></font></div>
  </div>
  </span><br class="Apple-interchange-newline">
  </div>
  </span><br class="Apple-interchange-newline">
  </span><br class="Apple-interchange-newline">
  </div>
  <br>
  <div>
  <div>On 2010-08-26, at 2:56 PM, Andrew Lewin wrote:</div>
  <br class="Apple-interchange-newline">
  <blockquote type="cite">
    <div>Hi Everyone,<br>
    <br>
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. &nbsp;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). &nbsp;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". &nbsp;I
created the temperature value raster using v.surf.idw and there are no
categories associated with this file.<br>
    <br>
Can anyone tell me how I can assign categories to a raster file please?<br>
    <br>
I am running Grass 6.4 on a Mac OSX Snow Leopard.<br>
    <br>
Cheers,<br>
    <br>
Andrew<br>
    <br>
Andrew Lewin, M.Sc., Adv. Dipl. GIS<br>
President<br>
Spatial-Conserve Inc.<br>
Oceans and Coasts Blog at <a moz-do-not-send="true"
 href="http://www.spatialconserve.com">www.spatialconserve.com</a><br>
Email: <a moz-do-not-send="true"
 href="mailto:alewin@spatialconserve.com">alewin@spatialconserve.com</a><br>
Tel: (905) 639-4646<br>
Mobile: (905) 630-8441<br>
Skype: andrew.lewin99<br>
Follow me on Twitter: <a moz-do-not-send="true"
 href="http://www.twitter.com/arlewin">www.twitter.com/arlewin</a><br>
    <br>
    <br>
    <br>
    <br>
    <br>
_______________________________________________<br>
grass-user mailing list<br>
    <a moz-do-not-send="true" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
    <br>
    </div>
  </blockquote>
  </div>
  <br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
  </pre>
</blockquote>
</body>
</html>