TODO 870 B

1234567891011121314151617181920212223242526272829303132333435
  1. TODO list
  2. A few remaining things should be done soon:
  3. - add relevant references
  4. - use english variable names in C code
  5. Please change the examples to Spearfish wherever possible:
  6. # Spearfish
  7. g.region rast=landcover.30m -p
  8. r.mapcalc "forests=if(landcover.30m >= 41 && landcover.30m <=43,1,null())"
  9. r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7
  10. d.rast.leg forests_p_dens7
  11. r.to.vect forests out=forests feature=area
  12. d.vect forests type=boundary
  13. # MASK test
  14. g.copy rast=fields,MASK
  15. r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7mask --o
  16. d.rast.leg forests_p_dens7mask
  17. # -> no negative values! but MASK is respected
  18. # zero data test
  19. r.mapcalc forests=0
  20. r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7 --o
  21. d.rast.leg forests_p_dens7mask
  22. r.info -r forests_p_dens7
  23. min=19.841270
  24. max=19.841270
  25. # -> all cells are 19.841270 ?!