<html style="direction: ltr;">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
Hello:<br>
<br>
I'm trying to do pattern detection of an STRDS (hourly precipitation
from radar images) with a cycle of 3 hrs. The last step,
t.rast.accdetect errors as follows (after finishing to create the
pattern rasters):<br>
<br>
Traceback (most recent call last):<br>
File "/usr/lib/grass72/scripts/t.rast.accdetect", line 592, in
<module><br>
ERROR: Unable to main()<br>
execute transaction: File
"/usr/lib/grass72/scripts/t.rast.accdetect", line 437, in main<br>
<br>
INSERT INTO raster_base ( name ,creator ,mapset ,creation_time<br>
,temporal_type ,id ) VALUES ('pat_2016_07_12_10' ,'micha' ,'micha'<br>
,'2017-07-09 23:51:24.106063' ,'absolute'
,'pat_2016_07_12_10@micha') ;<br>
INSERT INTO raster_absolute_time ( start_time ,idregister_null,
empty_maps, dbif)<br>
,end_time ) File "/usr/lib/grass72/scripts/t.rast.accdetect", line
479, in create_strds_register_maps<br>
VALUES<br>
('2016-07-12 10:00:00' ,'pat_2016_07_12_10@micha' ,'2016-07-12
11:00:00') ;<br>
INSERT INTO raster_spatial_extent ( north ,bottom ,west ,top ,proj
,east<br>
,id ,south ) VALUES (-3758645.000000 ,0.000000 ,-523462.000000
,0.000000<br>
,'XY' ,376538.000000 ,'pat_2016_07_12_10@micha' ,-4658645.000000) ;<br>
INSERT INTO raster_metadata ( max ,rows map.insert(dbif)<br>
,min File
"/usr/lib/grass72/etc/python/grass/temporal/abstract_map_dataset.py",
line 275, in insert<br>
,datatype ,number_of_cells<br>
,cols ,ewres ,nsres ,id ) VALUES (2.000000 ,900 ,1.000000 ,'CELL'
,810000<br>
,900 return AbstractDataset.insert(self, dbif=dbif,
execute=execute)<br>
,1000.000000 ,1000.000000 File
"/usr/lib/grass72/etc/python/grass/temporal/abstract_dataset.py",
line 405, in insert<br>
,'pat_2016_07_12_10@micha') ;<br>
INSERT INTO raster_stds_register ( id ,registered_stds ) VALUES<br>
('pat_2016_07_12_10@micha' ,NULL) ;<br>
dbif.execute_transaction(statement)<br>
File "/usr/lib/grass72/etc/python/grass/temporal/core.py", line
1021, in execute_transaction<br>
return self.connections[mapset].execute_transaction(statement)<br>
File "/usr/lib/grass72/etc/python/grass/temporal/core.py", line
1315, in execute_transaction<br>
self.cursor.executescript(statement)<br>
sqlite3.IntegrityError: UNIQUE constraint failed: raster_base.id<br>
<br>
Any tips?<br>
Thanks, Micha<br>
<pre class="moz-signature" cols="72">--
Micha Silver
cell: +972-523-665918</pre>
</body>
</html>