<div dir="ltr"><div>Hi Janet,</div><div><br></div><div>you could run r.report:</div><div>r.report map=patches,landcover<br></div><div><br></div><div>But the output is not easily parseable. r.report internally runs r.stats:</div><div><br></div><div>r.stats -a  input=patches,landcover separator=comma <br></div><div><br></div><div>you get output like (patch id, landcover id, area):</div><div>2,1,1205379.000000<br>1,5,938148.750000<br>3,1,904034.250000<br>2,3,557203.500000<br>1,1,512529.750000<br>1,4,361451.250000<br></div><div><br></div><div>so you need to postprocess it then.</div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2024 at 8:10 PM Janet Choate via grass-user <<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi GRASS community,<div>I downloaded land cover data from NLCD and reclassed values into 6 categories to generate a vegetation/landcover type raster (tree, shrub, grass, non-veg, water, developed) that is composed of IDs (i.e. 11=tree, 5-shrub, etc...) </div><div>I also have a 90 meter patch raster.</div><div>Any given 90 meter patch may have more than one vegetation type ID occurring in it.</div><div>I would like to generate percent coverage maps to find the percent that each vegetation type occupies of each patch (i.e. patch 1 is composed of 60% tree, 30% shrub, 10%grass).</div><div>Is it possible to compute percent cover from a vegetation type ID map?</div><div>Any advice would be much appreciated, I have unsuccessfully tried to do this in GRASS as well as R.</div><div>thank you,</div><div>Janet</div><div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Tague Team Lab Manager</div><div>1005 Bren Hall</div><div>UCSB, Santa Barbara, CA.</div></div></div></div></div></div>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div></div>