TIME SERIES SUPPORT FOR GRASS RASTER MAPS REQUIREMENTS You need: - >= grass63 - sqlite3 - a valid GRASS location and the will to read sql and bash code if an error occures :) USAGE Be sure you are in a GRASS location! The sqlite3 database will be created in the LOCATION/MAPSET/rast4d_db/ directory. Use a graphical frontend to explore the database structure or read the code in the sql directory (e.g., sqlitebrowser or the Firefox SQLite addon). * r.rast4d.init Start r.rast4d.init to create the database, - if the database already exists, nothing will be performed - if you want to create a new database just remove the one in the MAPSET/rast4d_db/ directory and run r.rast4d.init again * tg.update Use tg.update to register/update your raster maps in the sqlite table. You can run it again to update already registered maps. * tg.list Use tg.list to show the registered maps, performe sql where statements on the view and use the order option to order your data * tg.remove Remove the raster map entries from the database The maps are not removed from grass! ########################################### How to upload many raster maps? The maps need to have a valid time stamp (r.timestamp). Then (we assume a wildcard for raster names): for i in `g.mlist type=rast pat="rastname*"` ; do tg.update $i [vtime_end=+30 minutes] done ########################################### Sören Gebbert to neteler at itc it Apr 5 2007 Fertig, ich habe den Prototypen hoffentlich so modifiziert dass er mit Punkten im Namen umgehen kann. Außerdem werden die Raster timestamps (erzeugt mit r.timestamp) ausgewertet und die vtime_start mit dem ersten auftretenden timestamp gesetzt. Der erste timestamp sollte vollständig sein, sonst funzt es nicht. Es ist ein ziemlicher Hack weil ich in Eile bin. :/ Beispiel mit 4 registrierten Maps: GRASS 6.3.cvs > tg.list rast select=name,vtime_start select name,vtime_start from raster_view where ctime > DATETIME('1950-01-01 10:00:00') order by name test.1.1|1999-06-08 13:10:20 test.1.2|1999-06-09 13:10:20 test.1.3|2000-01-14 13:10:20 test.1.4|2000-01-24 13:10:20 GRASS 6.3.cvs > r.timestamp test.1.1 8 Jun 1999 13:10:20 GRASS 6.3.cvs > r.timestamp test.1.2 9 Jun 1999 13:10:20 GRASS 6.3.cvs > r.timestamp test.1.3 14 Jan 2000 13:10:20 GRASS 6.3.cvs > r.timestamp test.1.4 24 Jan 2000 13:10:20