[GRASS-user] Start grass, create new mapset

I have an existing location, lon_lat, into which I import new data in that
format.

From the command line I want to start grass in text mode using that location

while creating a new mapset there. On the grass startup manual page I see
examples that create new locations or use shapefiles or tiff files for the
mapsets. What do I use if the input data is ascii text points?

I've tried grass /data/grassdata/lon_lat/<mapset> and am told that the
mapset doesn't exist or have a WIND file.

Looking forward to learning,

Rich

Hi Rich,

Le 21 septembre 2021 17:30:48 GMT+02:00, Rich Shepard <rshepard@appl-ecosys.com> a écrit :

I have an existing location, lon_lat, into which I import new data in that
format.

From the command line I want to start grass in text mode using that location
while creating a new mapset there. On the grass startup manual page I see
examples that create new locations or use shapefiles or tiff files for the
mapsets. What do I use if the input data is ascii text points?

I've tried grass /data/grassdata/lon_lat/<mapset> and am told that the
mapset doesn't exist or have a WIND file.

IIUC, you do not want to create a new location, but just a new mapset ?

If that is the case, just try with the -c flag to create it:

grass -c /data/grassdata/lon_lat/<mapset>

Then import your data.

Moritz

On Wed, 22 Sep 2021, Moritz Lennert wrote:

IIUC, you do not want to create a new location, but just a new mapset ?

Moritz,

That's correct.

If that is the case, just try with the -c flag to create it:
grass -c /data/grassdata/lon_lat/<mapset>
Then import your data.

Thank you. I wondered if the -c (create) option would work for only a mapset
since all examples create a new location.

Should I add that example to the startup manual page for 8.0 dev?

Regards,

Rich

Le 22 septembre 2021 14:40:45 GMT+02:00, Rich Shepard <rshepard@appl-ecosys.com> a écrit :

On Wed, 22 Sep 2021, Moritz Lennert wrote:

IIUC, you do not want to create a new location, but just a new mapset ?

Moritz,

That's correct.

If that is the case, just try with the -c flag to create it:
grass -c /data/grassdata/lon_lat/<mapset>
Then import your data.

Thank you. I wondered if the -c (create) option would work for only a mapset
since all examples create a new location.

Should I add that example to the startup manual page for 8.0 dev?

That would be great !

I also see that the description of the -c flag itself only speaks about locations, not mapsets. This should also be changed. Something in the direction of:

"-c
Creates new GRASS unprojected location in specified GISDBASE"
[no idea why it says 'unprojected' must be long-term legacy]

should become

"-c
Creates new GRASS location or mapset respectively in specified GISDBASE or location"
[if this is not too long]

Moritz

Regards,

Rich
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Wed, 22 Sep 2021, Moritz Lennert wrote:

That would be great !

Moritz,

I'll do that Real Soon Now (today or tomorrow).

In the 8.0dev manual's table of contents, the GRASS GIS startup manual link
results in a 404 (Page Not Found) error. Clicking on the 'edit this page'
link also produces an error. I'll see if I can get to the source on github
and fix it there. Making it visible on the web site is likely not within my
skill set.

Regards,

Rich

Hi Moritz:

On 9/22/21 4:20 PM, Moritz Lennert wrote:

Le 22 septembre 2021 14:40:45 GMT+02:00, Rich Shepard <rshepard@appl-ecosys.com> a écrit :

On Wed, 22 Sep 2021, Moritz Lennert wrote:

I also see that the description of the -c flag itself only speaks about locations, not mapsets. This should also be changed. Something in the direction of:

"-c
Creates new GRASS unprojected location in specified GISDBASE"
[no idea why it says 'unprojected' must be long-term legacy]

I think the reason here stems from the un-desirable case of creating a location without specifying any projection details (neither EPSG code nor a georeferenced file) then you'll get a more or less unusable Location. You will have to start manually to setup the Location's projection. What's more, I think that using the -c option to create a location and mapset in one go does not work. You will always get a Location with only the PERMANENT mapset:

grass -text -c EPSG:32632 /home/micha/GIS/grass/UTM33/micha

micha@RMS:Downloads$ g.mapsets -p
Accessible mapsets:
PERMANENT

(No mapset "micha")

The best approach is to do it in two stages:

1. Create the Location (using an EPSG code or georeferenced file) . You
    can add the -e option to exit immediately
2. Then restart grass with -c again to create the mapset, with the full
    path.

should become

"-c
Creates new GRASS location or mapset respectively in specified GISDBASE or location"
[if this is not too long]

Moritz

Regards,

Rich
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
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

On Wed, 22 Sep 2021, Micha Silver wrote:

The best approach is to do it in two stages:

1. Create the Location (using an EPSG code or georeferenced file) . You
  can add the -e option to exit immediately
2. Then restart grass with -c again to create the mapset, with the full
  path.

+1

Rich