[GRASS-dev] [GRASS GIS] #2337: t.list hangs on newly created temporal DB

GRASS GIS trac at osgeo.org
Wed Jul 2 03:45:46 PDT 2014


#2337: t.list hangs on newly created temporal DB
-------------------------+--------------------------------------------------
 Reporter:  neteler      |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Temporal     |     Version:  svn-trunk                
 Keywords:  t.list       |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by spareeth):

 I am getting the same error with t.list, on a mapset with number of
 temporal datasets.
 Using compiled grass7.1 on Ubuntu 14.04 LTS , 64 bit machine.
 Here is the contents of my mapset folder.
 {{{
 ls -lh /grassdata/eu_laea/sp_garda_MODSST/
 total 2.7M
 drwxr-xr-x    2 sajid gis 336K Jun 18 19:26 cats
 drwxr-xr-x    2 sajid gis 336K Jun 18 19:26 cell
 drwxr-xr-x    2 sajid gis 336K Jun 18 19:26 cellhd
 drwxr-xr-x 8466 sajid gis 336K Jun 18 19:26 cell_misc
 drwxr-xr-x    2 sajid gis 168K Jun  3 14:21 colr
 drwxr-xr-x    2 sajid gis 168K Jun 18 19:26 fcell
 drwxr-xr-x    2 sajid gis 336K Jun 18 19:26 hist
 -rw-r--r--    1 sajid gis   35 Jun  3 15:42 SEARCH_PATH
 drwxr-xr-x    2 sajid gis   10 Jun  3 05:28 sqlite
 drwxr-xr-x    2 sajid gis   30 Jun 16 14:48 tgis
 -rw-r--r--    1 sajid gis  168 Jun 18 19:21 VAR
 -rw-r--r--    1 sajid gis  325 Jun 16 12:20 WIND
 [Raster MASK present]
 GRASS 7.1.svn (eu_laea):/usr/local/src/grass7 > ls -lh
 /grassdata/eu_laea/sp_garda_MODSST/tgis/
 total 9.9M
 -rw-r--r-- 1 sajid gis 9.9M Jun 18 19:26 sqlite.db
 }}}

 Here is details of existing temporal datasets in the same mapset.
 {{{
 sqlite> select * from tgis_metadata;
 tgis_db_version|2
 creation_time|2014-06-16 14:48:41.645453
 tgis_version|2
 sqlite> select * from strds_metadata;
 annual_count_MODSST at sp_garda_MODSST|raster_map_register_c985e0825e79458dafd50c8208950adc|11|169.0|0.0|219.0|0.0|1000.0|1000.0|1000.0|1000.0||count
 MODSST|obs count MODSST|# 2014-06-16 14:48:41
 t.create output="annual_count_MODSST" type="strds"
     semantictype="mean" temporaltype="absolute" title="count MODSST"
     description="obs count MODSST" --o
 # 2014-06-16 14:49:57
 t.register -i input="annual_count_MODSST" type="rast"
     file="count_modsst.txt" start="2003-01-01" increment="1 years"

 test at sp_garda_MODSST|raster_map_register_ee1246eeeae64bdbafdb47960ee305d5|||||||||||test|test|#
 2014-06-17 13:32:00
 t.create output="test" type="strds"
     semantictype="mean" temporaltype="absolute" title="test"
     description="test" --o

 Tdaily_modis_sst at sp_garda_MODSST|raster_map_register_1d62ff9fb6d749e3b860e74582b2f75c|4018|2238.0|1102.0|45727.0|42647.0|1000.0|1000.0|1000.0|1000.0||daily
 temperature from Mod sst raw|daily T from on modis sst raw|# 2014-06-18
 18:55:25
 t.create output="Tdaily_modis_sst" type="strds"
     semantictype="mean" temporaltype="absolute"
     title="daily temperature from Mod sst raw"
     description="daily T from on modis sst raw" --o
 # 2014-06-18 18:59:29
 t.register -i input="Tdaily_modis_sst" type="rast"
     file="filenames_mod_sst_raw_2003-2013.txt" start="2003-01-01"
     increment="1 days" --o

 Tmean_seasonal_modis_sst at sp_garda_MODSST|raster_map_register_c26f830534a54fa4bed121e590b2cccf|44|14789.390244|1785.0|41666.0|34808.5|1000.0|1000.0|1000.0|1000.0|average|daily
 temperature from Mod sst raw|daily T from on modis sst raw|# 2014-06-18
 18:59:31
 t.rast.aggregate input="Tdaily_modis_sst"
     output="Tmean_seasonal_modis_sst" base="Tmean_seasonal_modis_sst"
     granularity="3 months" method="average"
     where="start_time >=  2003-01-01  and start_time <  2014-01-01 " --o

 Tmean_annual_modis_sst at sp_garda_MODSST|raster_map_register_1d916c3f94684bb89e68e8879c5a55da|11|26488.379085|17702.714286|29135.294521|20913.766667|1000.0|1000.0|1000.0|1000.0|average|daily
 temperature from Mod sst raw|daily T from on modis sst raw|# 2014-06-18
 19:00:05
 t.rast.aggregate input="Tdaily_modis_sst"
     output="Tmean_annual_modis_sst" base="Tmean_annual_modis_sst"
     granularity="1 years" method="average"
     where="start_time >=  2003-01-01  and start_time <  2014-01-01 " --o

 Tmean_deg_summer_modis_sst at sp_garda_MODSST|raster_map_register_cb672539b4184d8895354d5ab410dc44|11|24.321675|18.935825|27.882229|22.964133|1000.0|1000.0|1000.0|1000.0||daily
 temperature from Mod sst raw|daily T from on modis sst raw|# 2014-06-18
 19:00:20
 t.rast.extract input="Tmean_seasonal_modis_sst"
     where="strftime( %m , start_time)= 07 "
     expression="(Tmean_seasonal_modis_sst * 0.000717184972) - 2"
     output="Tmean_deg_summer_modis_sst" base="Tmean_deg_summer_modis_sst"
     nprocs="4" --o

 Tmean_deg_winter_modis_sst at sp_garda_MODSST|raster_map_register_38a34bcf8ef649c5aac0c01d8176acbc|11|8.606728|7.445736|10.870829|9.222654|1000.0|1000.0|1000.0|1000.0||daily
 temperature from Mod sst raw|daily T from on modis sst raw|# 2014-06-18
 19:00:22
 t.rast.extract input="Tmean_seasonal_modis_sst"
     where="strftime( %m , start_time)= 01 "
     expression="(Tmean_seasonal_modis_sst * 0.000717184972) - 2"
     output="Tmean_deg_winter_modis_sst" base="Tmean_deg_winter_modis_sst"
     nprocs="4" --o

 Tdaily_modis_sst_hants at sp_garda_MODSST|raster_map_register_a25db159e0ef40268a21c4b6189afea8|4018|13552.926495|-7030.313965|55117.719349|37973.938564|1000.0|1000.0|1000.0|1000.0||daily
 temperature from Mod sst hants|daily T from on modis sst hants|#
 2014-06-18 19:21:07
 t.create output="Tdaily_modis_sst_hants" type="strds"
     semantictype="mean" temporaltype="absolute"
     title="daily temperature from Mod sst hants"
     description="daily T from on modis sst hants" --o
 # 2014-06-18 19:25:22
 t.register -i input="Tdaily_modis_sst_hants"
     type="rast" file="filenames_mod_sst_hants_2003-2013.txt"
     start="2003-01-01" increment="1 days" --o

 Tmean_seasonal_modis_sst_hants at sp_garda_MODSST|raster_map_register_486e2c47f714412caf1fa6a31bff5823|44|14919.961618|5379.516413|45305.797911|36157.819222|1000.0|1000.0|1000.0|1000.0|average|daily
 temperature from Mod sst hants|daily T from on modis sst hants|#
 2014-06-18 19:25:24
 t.rast.aggregate input="Tdaily_modis_sst_hants"
     output="Tmean_seasonal_modis_sst_hants"
     base="Tmean_seasonal_modis_sst_hants" granularity="3 months"
     method="average"
     where="start_time >=  2003-01-01  and start_time <  2014-01-01 " --o

 Tmean_annual_modis_sst_hants at sp_garda_MODSST|raster_map_register_8e844b411ed54f8e80537c58508ce2b7|11|25236.554709|19846.125419|28924.264045|24954.117264|1000.0|1000.0|1000.0|1000.0|average|daily
 temperature from Mod sst hants|daily T from on modis sst hants|#
 2014-06-18 19:26:15
 t.rast.aggregate input="Tdaily_modis_sst_hants"
     output="Tmean_annual_modis_sst_hants"
     base="Tmean_annual_modis_sst_hants" granularity="1 years"
     method="average"
     where="start_time >=  2003-01-01  and start_time <  2014-01-01 " --o

 Tmean_deg_summer_modis_sst_hants at sp_garda_MODSST|raster_map_register_98da1449fb394111b61d931da7ce52eb|11|24.284032|21.462871|27.860518|23.931845|1000.0|1000.0|1000.0|1000.0||daily
 temperature from Mod sst hants|daily T from on modis sst hants|#
 2014-06-18 19:26:33
 t.rast.extract input="Tmean_seasonal_modis_sst_hants"
     where="strftime( %m , start_time)= 07 "
     expression="(Tmean_seasonal_modis_sst_hants * 0.000717184972) - 2"
     output="Tmean_deg_summer_modis_sst_hants"
     base="Tmean_deg_summer_modis_sst_hants" nprocs="4" --o

 Tmean_deg_winter_modis_sst_hants at sp_garda_MODSST|raster_map_register_9ae7825d4f574e59bd5035c36a0b3b29|11|8.700372|7.571384|10.890343|9.823787|1000.0|1000.0|1000.0|1000.0||daily
 temperature from Mod sst hants|daily T from on modis sst hants|#
 2014-06-18 19:26:35
 t.rast.extract input="Tmean_seasonal_modis_sst_hants"
     where="strftime( %m , start_time)= 01 "
     expression="(Tmean_seasonal_modis_sst_hants * 0.000717184972) - 2"
     output="Tmean_deg_winter_modis_sst_hants"
     base="Tmean_deg_winter_modis_sst_hants" nprocs="4" --o

 }}}

 t.list -c hangs and forced to ctrl-c, giving the following error trace.

 {{{
 Process Process-2:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in
 _bootstrap
 Traceback (most recent call last):
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/scripts/t.list", line 157, in <module>
     main()
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/scripts/t.list", line 111, in main
     stds_list = tgis.get_dataset_list(type,  ttype,  columns,  where,
 order)
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/temporal/list_stds.py", line 73, in get_dataset_list
     self.run()
   File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
     self._target(*self._args, **self._kwargs)
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/temporal/c_libraries_interface.py", line 644, in
 c_library_server
     mapsets = get_tgis_c_library_interface().available_mapsets()
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/temporal/c_libraries_interface.py", line 1088, in
 available_mapsets
     return self.client_conn.recv()
     functions[data[0]](lock, conn, data)
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/temporal/c_libraries_interface.py", line 65, in
 available_mapsets
     if libgis.G__mapset_permissions(mapset) > 0:
 KeyboardInterrupt
 KeyboardInterrupt
 Process Process-1:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in
 _bootstrap
     self.run()
   File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
     self._target(*self._args, **self._kwargs)
   File "/usr/local/src/grass7/dist.x86_64-unknown-linux-
 gnu/etc/python/grass/pygrass/messages/__init__.py", line 73, in
 message_server
     conn.poll(None)
 KeyboardInterrupt
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2337#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list