I'm trying to import a large set of raster files into GRASS. The GUI import tool works fine for a handful of files, but it appears to require that I click the "Layer id" checkbox for each individual file that I want to import, and that doesn't work well at all for large sets of file. So my question is, how do you manage data in GRASS from the command line? I realize that this is a broad topic, so please feel free simply to direct me toward the documentation for the relevant tools.
I'd also be happy with an approach using the GUI tool in this case, but as I'd prefer a command-line approach because I'm just learning GRASS and need to script almost everything I'm doing, and have read that the Python GUI for GRASS has issues with Mac OS 10.8 (I haven't run into those issues, yet).
UPDATE: It does not appear that a GUI solution will work in this case. Having clicked the checkboxes for about 700 files that I wanted to import, the process does not appear to have succeeded due to a "to many files open" error. The tail end of the log is given below.
startupinfo, creationflags)
File "/System/Library/Frameworks/Python.framework/Versions
/2.6/lib/python2.6/subprocess.py", line 616, in __init__
errread, errwrite) = self._get_handles(stdin, stdout,
stderr)
File "/System/Library/Frameworks/Python.framework/Versions
/2.6/lib/python2.6/subprocess.py", line 978, in _get_handles
c2pread, c2pwrite = os.pipe()
OSError
:
[Errno 24] Too many open files