Re: [GRASS-user] Startup issue: defaults to one mapset [RESOLVED]
On Wed, 22 Sep 2021, Micha Silver wrote: I don't think there is anything to fix: At startup GRASS does not care about current working directory. Micha, I didn't think so. micha@RMS:~$ cat ~/.grass7/rc Ah! That's what I was looking for. I thought there was a ~/.grass, but the directory is major version specific. Thanks! Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Startup issue: defaults to one mapset [RESOLVED]
On 9/22/21 8:57 PM, Rich Shepard wrote: On Wed, 22 Sep 2021, Rich Shepard wrote: Where do I look to find what's going on so I can fix it? I don't think there is anything to fix: At startup GRASS does not care about current working directory. The default LOCATION/MAPSET is read from the ~/.grass7/rc file. Here on my system: micha@RMS:~$ cat ~/.grass7/rc GISDBASE: /home/micha/GIS/grass LOCATION_NAME: ITM MAPSET: Arava GUI: wxpython DEBUG: 0 If you want to start GRASS from some other LOCATION/MAPSET you just add the full path to the different MAPSET on the command line, as you showed below. Never hurts to review: https://grass.osgeo.org/grass78/manuals/grass7.html especially: EXAMPLES The following are some examples of how you could start GRASS *grass78* Start GRASS using the default user interface. The user will be prompted to choose the appropriate location and mapset. *grass78 --gui* Start GRASS using the graphical user interface. The user will be prompted to choose the appropriate location and mapset. *grass78 --text* Start GRASS using the text-based user interface. Appropriate location and mapset must be set by environmental variables (see examples below) otherwise taken from the last GRASS session. *grass78 --gtext* Start GRASS using the text-based user interface. The user will be prompted to choose the appropriate location and mapset. *grass78 $HOME/grassdata/spearfish70/user1* What I'm now doing to start grass from /data/grassdata is: grass /data/grassdata// It works. Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user -- Micha Silver Ben Gurion Univ. Sde Boker, Remote Sensing Lab cell: +972-523-665918 ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Startup issue: defaults to one mapset [RESOLVED]
On Wed, 22 Sep 2021, Rich Shepard wrote: Where do I look to find what's going on so I can fix it? What I'm now doing to start grass from /data/grassdata is: grass /data/grassdata// It works. Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Startup issue: defaults to one mapset
Something broke here yesterday and I haven't found the fix so I need help. My GISDBASE is /data/grassdata and it holds many locations. My current project has a mapset titled lady_island_reaches. When I start grass from either /data/grassdata/. /data/grassdata/, or any other location it opens to that one mapset. Examples: PWD: /data/grassdata/: $ grass GRASS /lady_island_reaches:grassdata > PWD: /data/grassdata//: GRASS lady_island_reaches: > PWD: /data/grassdata/lon_lat/: GRASS project_location/lady_island_reaches:lon_lat > I know there should be a grassrc file somewhere but it's not showing up with locate or find and I don't see it in /usr/local/grass80. GRASS is stuck on the project location's one mapset. I want to start it from the project location and despite the mapset being the last current one be able to change mapsets. Now, g.mapsets -p shows only lady_island_reaches and PERMANENT. However, g.mapsets -l shows them all. When I change mapsets to, for example, bathymetry then g.mapset -p shows only bathymetry and PERMANENT. Where do I look to find what's going on so I can fix it? TIA, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user