Opened 8 years ago

Closed 5 years 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 by neteler, 8 years ago

Milestone: 7.1.07.2.0

Milestone renamed

comment:2 by lrntct, 8 years ago

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 by neteler, 7 years ago

See also #2418

comment:4 by annakrat, 7 years ago

In 69814:

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

comment:5 by annakrat, 7 years ago

In 69815:

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

comment:6 by neteler, 7 years ago

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:7 by martinl, 7 years ago

Milestone: 7.2.17.2.2

comment:8 by neteler, 7 years ago

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:9 by veroandreo, 6 years ago

can we close this ticket?

comment:10 by martinl, 6 years ago

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:11 by martinl, 6 years ago

Milestone: 7.2.4

comment:12 by veroandreo, 5 years ago

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.