[GRASS-user] help with r.hants

Markus Neteler neteler at osgeo.org
Sat May 3 06:09:29 PDT 2014


On Sat, May 3, 2014 at 12:51 AM, Veronica Andreo <veroandreo at gmail.com> wrote:
> Here's also the last part of the output when
>
> g.gisenv set=DEBUG=3
> r.hants ...
>
> http://pastebin.com/cp139prq

OK I think I know where a modification is needed (and I think that too
many files are open for your current settings, see "ulimit" stuff in
the manual page of r.series):

...
D2/3: G_file_name(): path =
/home/veroandreo/grassdata//latlong_wgs84/clorofila/GDAL
D2/3: G_file_name(): path =
/home/veroandreo/grassdata//latlong_wgs84/clorofila/.tmp/localhost.localdomain/12772.6
D2/3: G_file_name(): path =
/home/veroandreo/grassdata//latlong_wgs84/clorofila/.tmp/localhost.localdomain/12772.7
D2/3: G_file_name(): path =
/home/veroandreo/grassdata//latlong_wgs84/clorofila/GDAL
D2/3: G_file_name(): path =
/home/veroandreo/grassdata//latlong_wgs84/clorofila/.tmp/localhost.localdomain/12772.8
D2/3: G_file_name(): path =
/home/veroandreo/grassdata//latlong_wgs84/clorofila/.tmp/localhost.localdomain/12772.9
ERROR: no temp files available
GRASS 7.1.svn (latlong_wgs84):~ >

in lib/gis/tempfile.c

char *G__tempfile(int pid)
{

[...]
    do {
    int uniq = G_counter_next(&unique);
    sprintf(name, "%d.%d", pid, uniq);
    G_file_name(path, element, name, G_mapset());
    }
    while (access(path, F_OK) == 0);
[...]


We need to decipher the error with perror() as done in

in lib/gis/mapset.c

    if (access(mapset, F_OK) != 0) {
    perror("access");
    G_fatal_error(_("MAPSET <%s> not available"), mapset);
    }

Anyone able to modify in lib/gis/tempfile.c properly?

thanks
Markus


More information about the grass-user mailing list