Opened 4 years ago

Closed 7 months ago

#2957 closed defect (fixed)

t.rast.what throw error while running on large number of maps

Reported by: spareeth Owned by: grass-dev@…
Priority: normal Milestone: 7.2.4
Component: Temporal Version: svn-trunk
Keywords: temporal, t.rast.what Cc:
CPU: Unspecified Platform: Linux

Description

The temporal module t.rast.what throw error when nprocs is not used, while running on large number of maps (10,800 raster input in my case). The error is:

Traceback (most recent call last):
  File "/usr/local/grass-7.1.svn/scripts/t.rast.what", line 526, in <module>
    main(options, flags)
  File "/usr/local/grass-7.1.svn/scripts/t.rast.what", line 266, in main
    mod(map=map_names, output=file_name)
NameError: global name 'map_names' is not defined

It works if I give nprocs option; for example nprocs=4

With smaller number of maps, with or without nprocs work fine.

Sajid

Change History (12)

comment:1 Changed 4 years ago by neteler

Milestone: 7.1.07.2.0

Milestone renamed

comment:2 Changed 4 years ago by lrntct

I encountered the same bug with a STRDS of 422 maps, meanwhile another STRDS of 600 maps of the same size worked fine. passing nprocs resolved the issue as well.

comment:3 Changed 3 years ago by neteler

See also #2418

comment:4 Changed 3 years ago by annakrat

In 69814:

t.rast.what: fix undefined variable, see #2957

comment:5 Changed 3 years ago by annakrat

In 69815:

t.rast.what: fix undefined variable, see #2957 (merge from trunk, r69814)

comment:6 Changed 3 years ago by neteler

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:7 Changed 3 years ago by martinl

Milestone: 7.2.17.2.2

comment:8 Changed 2 years ago by neteler

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:9 Changed 20 months ago by veroandreo

can we close this ticket?

comment:10 Changed 20 months ago by martinl

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:11 Changed 20 months ago by martinl

Milestone: 7.2.4

comment:12 Changed 7 months ago by veroandreo

Resolution: fixed
Status: newclosed

Tested here in NC with 1000 maps:

for i in `seq -w 1 1000` ; do r.mapcalc expression="map_$i = 1" ; done
t.create output=test type=strds temporaltype=absolute title="test" description="test"
g.list rast pat=map_* output=list
t.register input=test file=list start='2000-01-01' increment="1 days" -i
t.rast.what coordinates=494637.096774,154319.556452 strds=test

all fine, no error reported. Closing.

Note: See TracTickets for help on using tickets.