User Tools

Site Tools


wiki:basicgrass7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:basicgrass7 [2019/07/30 12:40]
127.0.0.1 external edit
wiki:basicgrass7 [2020/07/17 06:39] (current)
Line 85: Line 85:
   MONITOR=x2   MONITOR=x2
   GRASS_GUI=text   GRASS_GUI=text
-  GRASS 7.2.(europe):~ > +  GRASS 7.4.(europe):~ > 
  
 <note important>​ <note important>​
 Running grass through the bash shell terminal allows you to use all command line functionality of both grass and shell. As an example you can type Running grass through the bash shell terminal allows you to use all command line functionality of both grass and shell. As an example you can type
   ls   ls
-and visualize all files available in your shell current working directory. This means that all your output files produced by bash command lines functionality will be saved in the current working directory (if not specified differently). Many non-geographical grass output features such as text file reports or images will be saved as well in the current working directory. The ** GRASS 7.2.(europe):~ > ** inform you are currently working in the home folder. See+and visualize all files available in your shell current working directory. This means that all your output files produced by bash command lines functionality will be saved in the current working directory (if not specified differently). Many non-geographical grass output features such as text file reports or images will be saved as well in the current working directory. The ** GRASS 7.4.(europe):~ > ** inform you are currently working in the home folder. See
   pwd   pwd
 for double checking the same information using a bash command instead of the grass ** g.gisenv ** command. for double checking the same information using a bash command instead of the grass ** g.gisenv ** command.
Line 100: Line 100:
  
 On the terminal you will no longer see  On the terminal you will no longer see 
-   GRASS 7.2.(europe):~ >+   GRASS 7.4.(europe):~ >
 but  ​ but  ​
-   GRASS 7.2.(europe):​~/​ost4sem/​grassdb/​europe >+   GRASS 7.4.(europe):​~/​ost4sem/​grassdb/​europe >
 and you will be aware tif your current bash shell working directory match your grass location directory. and you will be aware tif your current bash shell working directory match your grass location directory.
 </​note>​ </​note>​
Line 116: Line 116:
  
 Now you should see the following settings: Now you should see the following settings:
-  GRASS 7.2.(europe):​~/​ost4sem/​grassdb/​europe > g.gisenv+  GRASS 7.4.(europe):​~/​ost4sem/​grassdb/​europe > g.gisenv
   GISDBASE=/​home/​user/​ost4sem/​grassdb   GISDBASE=/​home/​user/​ost4sem/​grassdb
   LOCATION_NAME=europe   LOCATION_NAME=europe
Line 122: Line 122:
   MONITOR=x2   MONITOR=x2
   GRASS_GUI=text   GRASS_GUI=text
-  GRASS 7.2.(europe):​~/​ost4sem/​grassdb/​europe >+  GRASS 7.4.(europe):​~/​ost4sem/​grassdb/​europe >
  
 <note tip> <note tip>
Line 134: Line 134:
   g.list rast -p   g.list rast -p
  
-The user can add, modify, and delete data layers that exist under his current mapset. Although the user can also access (i.e., use) data that are stored under other mapsets in the same GRASS location, the user can only make permanent changes (create or modify data) located in the current mapset. ​To access maps in a different current mapset we use the addmapset option in the g.mapset function. As an example: +The user can add, modify, and delete data layers that exist under his current mapset. Although the user can also access (i.e., use) data that are stored under other mapsets in the same GRASS location, the user can only make permanent changes (create or modify data) located in the current mapset. ​
-  g.mapsets mapset=PCEMstat ​  ​operation=add+
  
 Now we can access the fnfpc\_crop mapset and eventually **copy** a map from the PCEMstat mapset to our current mapset directory using the g.copy function: Now we can access the fnfpc\_crop mapset and eventually **copy** a map from the PCEMstat mapset to our current mapset directory using the g.copy function:
Line 180: Line 179:
        
        
-If you open Qgis +If you open  the GRASS gui 
-   qgis &  +
-You can load a raster map on Qgis from the menue: +
-Plugin ​GRASS > add GRASS raster layer >  +
-  * Gisdbase : /​home/​user/​ost4sem/​grassdb +
-  * Location : europe +
-  * Mapset ​  : PERMANENT +
-  * Map name : fnfpc+
  
-If you click on " //Display ​current Grass region// ​" you will see the Scandinavia area within a red frame.+   g.gui wxpython ​  
 +    
 +You can visualize the Computational Region in the Display ​menu by cliking "Show computation Extent" ​and you will see the Scandinavia area within a red frame.
  
 Back to GRASS if you reset the default grass region ​ Back to GRASS if you reset the default grass region ​
   g.region -d   g.region -d
-And when you look again at Qgis, you can visualise the red frame changing position by clicking twice on  " //Display current Grass region// ". 
- 
  
 \\ \\
wiki/basicgrass7.1564490453.txt.gz · Last modified: 2020/07/17 06:40 (external edit)