ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Roll layer/file list when bottom of list is reached #13

Closed eco-nz closed 3 years ago

eco-nz commented 3 years ago

Rolling a comma list to top when the bottom of the list is reached. This is useful when reviewing work when a large number of layers.

Requested by James Shepherd

gillins commented 3 years ago

ping @shepjd - I think this one is pretty straightforward.

shepjd commented 3 years ago

The example I had was having 12 layers, one for each month, when you get to the end of the year, December, you want to wrap straight to January (first layer)

gillins commented 3 years ago

@shepjd I've created a PR for this here: https://github.com/ubarsc/tuiview/pull/14

To test, do something like below:

cd /tmp
git clone https://github.com/gillins/tuiview.git
cd tuiview
git checkout rollover
python setup.py install

Let me know if this is what you had in mind

shepjd commented 3 years ago

how do I run this on NeSI?, I have done all but the last line... the setup.py is not happy... can I "install" somewhere local to try it?

gillins commented 3 years ago

@shepjd those instructions should work for conda. For NeSI look at using the --prefix option with the install step. Then you'll need to set the PYTHONPATH env var appropriately....

gillins commented 3 years ago

Just made a small improvement to the code, but does has same behaviour.

@shepjd did you manage to get it running on NeSI?

shepjd commented 3 years ago

Thanks Sam, I got it going under conda on NeSI (conda is quite widely used on NeSI now). Seems to work great, nice to be able to roll around through the seasons

gillins commented 3 years ago

Thanks James, I'll merge this one