I have a large set of rasters in a GRASS mapset, which I would like to use as frames in an animation, visualizing the raster data as elevation. NVIZ is an obvious tool for this, but I'm having trouble getting started. Here's my basic approach so far. I'm starting with grey scale rasters that are actually RGB +alpha where R=G=B. I load one color channel from each raster into nviz as follows:
This starts up NVIZ as expected for <12 files. With more than 12 files, the first 12 load successfully and then the process fails like this (tail end of log only):
Loading raster map <mean-L1-A1-000011_clipped.tif.blue@default>... 100% Translating colors from raster map <mean-L1-A1-000011_clipped.tif.blue@default>... 100% WARNING: Loading data failed WARNING: Loading data failed WARNING: Loading data failed zsh: segmentation fault nviz
Do you have any idea why this is and how I can fix it? I'll need to load several hundred file at least, to pull off the animation.
EDIT: In the interest of full-disclosure, and because I might be goofing with shell commands, here's what I'm actually entering at the GRASS command line. My original post was intended as a minimal example.
nviz elevation=`cat /Users/gregory/SimData/blue_channel.txt tr '\n' ','`
Where the file blue_channel.txt contains 659 lines has the form:
mean-L1-A1-000000_clipped.tif.blue@default mean-L1-A1-000001_clipped.tif.blue@default mean-L1-A1-000002_clipped.tif.blue@default
In order to test cases with different numbers of files as input for the elevation parameter, I'm varying the number of files passed to
head in the syntax:
cat /Users/gregory/SimData/blue_channel.txt | head -10 | tr '\n' ',' | sed -e 's/,$//g'
I've also tested that the problem isn't with specific files (seemed unlikely). For example, nviz does not crash on files 1-10, or 11-20, but it does crash on files 1-20.