test.t.vect.observe.strds.layer_bug.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. # Here we test the limit of the number of layers
  3. # @preprocess
  4. # The region setting should work for UTM and LL test locations
  5. # temporary disabled test for performance reason
  6. exit
  7. g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
  8. MAP_LIST="map_list.txt"
  9. rm ${MAP_LIST}
  10. count=1
  11. while [ $count -lt 270 ]; do
  12. name="test_prec_${count}"
  13. r.mapcalc --o expr="${name} = ${count}"
  14. echo ${name} >> ${MAP_LIST}
  15. count=$((count + 1))
  16. done
  17. v.random --o output=prec n=5 seed=1
  18. t.create --o type=strds temporaltype=absolute output=precip_abs1 title="A test" descr="A test"
  19. t.register -i --o input=precip_abs1 file=${MAP_LIST} start="2001-01-01 00:00:00" increment="1 hours"
  20. # The @test
  21. t.vect.observe.strds input=prec strds=precip_abs1 output=prec_observer vector=prec_observer column="test_val"
  22. v.info prec_observer
  23. t.info type=stvds input=prec_observer
  24. t.vect.list input=prec_observer
  25. t.vect.db.select input=prec_observer
  26. # @postprocess
  27. t.unregister type=rast file=${MAP_LIST}
  28. t.remove type=strds input=precip_abs1
  29. t.remove type=stvds input=prec_observer
  30. #g.remove vect=prec_observer
  31. g.mremove -f rast=test_prec_*