TODO 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. TODO list
  2. =========
  3. GRASS 7:
  4. # TODO: change the examples to North Carolina wherever possible:
  5. # Spearfish tests
  6. g.region raster=landcover.30m -p
  7. r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
  8. d.mon wx0
  9. d.rast forests
  10. # g.gui.rlisetup:
  11. # created as described in EXAMPLES, moving window, in g.gui.rlisetup.html:
  12. echo "SAMPLINGFRAME 0|0|1|1
  13. SAMPLEAREA -1|-1|0.015021459227467811|0.011058451816745656
  14. MOVINGWINDOW" > $HOME/.grass7/r.li/movwindow7
  15. r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7
  16. d.rast.leg forests_p_dens7
  17. r.to.vect forests out=forests type=area
  18. d.vect forests type=boundary
  19. ######## TODO: CHECK THIS:
  20. # MASK test
  21. g.copy rast=fields,MASK
  22. r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7mask --o
  23. d.erase
  24. d.rast.leg forests_p_dens7mask
  25. # -> no negative values! but MASK is respected
  26. # zero data test
  27. r.mapcalc "forests = 0"
  28. r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7 --o
  29. d.erase
  30. d.rast.leg forests_p_dens7mask
  31. r.info -r forests_p_dens7
  32. min=0
  33. max=204.081632653061
  34. ========================
  35. North Carolina tests
  36. # Tests with return an ASCII output file
  37. sh ./r.li.testing_nc_asc.sh
  38. ---------
  39. echo "SAMPLINGFRAME 0|0|1|1
  40. SAMPLEAREA 0.0|0.0|1.0|1.0" > $HOME/.grass7/r.li/landsat_test
  41. g.region raster=lsat7_2002_40 -p
  42. r.li.shannon input=lsat7_2002_40 conf=landsat_test output=landsat_shannon
  43. --> Result written to ASCII file <$HOME/.grass7/r.li/output/landsat_shannon>