[GRASS-dev] [GRASS GIS] #3152: g.gui.animation issues with stvds and list of vector maps

GRASS GIS trac at osgeo.org
Wed Sep 14 21:01:49 PDT 2016


#3152: g.gui.animation issues with stvds and list of vector maps
--------------------------+-----------------------------
  Reporter:  veroandreo   |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.2.0
 Component:  wxGUI        |    Version:  svn-trunk
Resolution:               |   Keywords:  g.gui.animation
       CPU:  Unspecified  |   Platform:  Linux
--------------------------+-----------------------------

Comment (by annakrat):

 Replying to [ticket:3152 veroandreo]:
 > I want to create an animation for a weekly STVDS covering a total time
 span of 5 years. However, the STVDS only consist of 62 maps, given that
 there's no data in every week but only in those 62 weeks (summer weeks
 over the years).
 >
 > When I pass my STVDS to g.gui.animation (using the GUI or the
 > CLI), I either get a lot of black screens for those time periods in
 which my STVDS has no maps or the last map with data remains there until a
 new map with data comes. Is there a way to only get the background raster
 in those periods without data, instead of the last vector with data???
 > As these are cases of a disease, it has no sense (and it represents
 > something that it is not true) to keep the last point for an X period of
 time until new cases appear.
 >

 I am not sure how do you want it to be? In settings, Time tab there is
 option to not show no data, but I guess that's not what you want. If you
 don't want it to use the time information, load it as series of maps.

 > I thought that maybe only passing the list of 62 maps (not as a time
 > series) would suffice, but I found I cannot use '?' in the GUI for
 > the selection, and then I have to manually click on maps with no
 > possibility to scroll. Is it feasible to add support for
 > the '?' or a file parameter, as in other modules, to pass a file with
 the list of maps?

 The gui uses python regular expressions, so check what ? means there, it
 works but maybe it has different meaning?

 >
 > The next thing I tried was to pass the list of files with the CLI, using
 >
 > {{{
 > g.gui.animation vector=`g.list type=vector mapset=.
 pattern=cases_20??_??_??_* separator=comma`
 > }}}
 >
 > but I get the following error:
 >
 > {{{
 > Traceback (most recent call last):
 >   File "/home/veroandreo/software/grass-7.3.svn/dist.x86_64-pc-linux-
 gnu/scripts/g.gui.animation", line 141, in <module>
 >     main()
 >   File "/home/veroandreo/software/grass-7.3.svn/dist.x86_64-pc-linux-
 gnu/scripts/g.gui.animation", line 112, in main
 >     layer.cmd = ['d.vect',
 'map={name=}'.format(name=vect.split(',')[0])]
 > KeyError: 'name='
 > }}}

 Thanks, I fixed that, please try again.
 >
 > Listing the maps, however, works as expected, and I get the
 corresponding list of maps. I'm using trunk r69455M under fedora 24.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3152#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list