Re: [GRASS-user] Scatter plot cannot be added

2020-12-27 Thread Micha Silver

  
  


On 12/28/2020 1:38 AM, mega saputra
  wrote:


  
  
Here is the output :
g.proj -p                                                  
                      
  



.



  
But, there is no scatter plot in Map Display. Then I click
  twice in vector > scatter_1_3 in Data tab. Then there is a
  message : 

"Unable to zoom to vector map 
Details: Illegal latitude for North: 65528"


  

Yes, that's correct. You need to understand how r.scatterplot
  works. The X-Y coordinates in the newly created point vector layer
  are the raster values at each pixel of the original rasters. In
  this case, since the original are color bands, the values
  represent reflectance for each band. These values can go as high
  as 65528, which is way beyond the range in a latitude/longitude
  coordinate system (maximum long/lat of 360 X 180).


If you want to carry on with this (in your next mail you are
  beginning with the interactive scatter plot), it might be helpful
  to export the X-Y "coordinates" to a text file for plotting in
  some other software. Just keep in mind that you will get a list of
  12,000,000 rows with two columns of numbers-the reflectances of
  both bands.
 


  
How to solve the problem?



Regards,
mega

  
  
  
On Sun, Dec 27, 2020 at 3:22
  PM Micha Silver  wrote:


  
Here's my attempt:
I downloaded the rgb.tif that you linked to, then used it
  to create a new, fresh location


# Create a NEW location "mega" using the georeferenced
  rgb.tif file to define location
  # and import the file
# Run at the command line, *before* starting grass:

grass78 -c rgb.tif /home/micha/grass/mega


# Now at the grass prompt:
# Check projection settings
  g.proj -p
-PROJ_INFO-
  name   : WGS 84
  datum  : wgs84
  ellps  : wgs84
  proj   : ll
  no_defs    : defined
-PROJ_EPSG-
  epsg   : 4326
-PROJ_UNITS
  unit   : degree
  units  : degrees
  meters : 1.0
  
  # Install the scatterplot extension
  g.extension r.scatterplot
  Downloading precompiled GRASS Addons
  ...
  Updating extensions metadata file...
  Updating extension modules metadata file...
  Installation of  successfully
  finished
  
  # Now run r.scatterplot on two bands
  r.scatterplot input=rgb.3,rgb.2 output=scatter_3_2
   100%
  Building topology for vector map
  ...
  Registering primitives...
    1183
  # Almost 12 million points (!)





The X-Y coordinates of the points are the scatterplot
  values.


HTH,
Micha



On 12/26/2020 11:40 PM, mega saputra wrote:


  
The result is the same. It cannot add scatterplot.

Here is the output :


(Sun Dec 27 05:20:25 2020)                        
                               
  g.region -ap raster=rgb.1                            
                            
  projection: 3 (Latitude-Longitude)
  zone:       0
  datum:      wgs84
  ellipsoid:  wgs84
  north:      13:07:42.9N
  south:      27:38:15.5S
  west:       100:55:15.7E
  east:       131:15:38.1E
  nsres:      0:00:36.8
  ewres:      0:00:36.8
  rows:       3988
  cols:       2968
  cells:      11836384
  (Sun Dec 27 05:20:25 2020) Command finished (0 sec)  
                            
  G__open(read): Unable to open
  '/home/mega/newLocation/PERMAN
  ENT/.tmp/mega/vector/trAreas54950/frmt': No such file
  or
  

Re: [GRASS-user] Umm...OK, How do I start this thing?

2020-12-27 Thread mdwxman via grass-user
Very strange things happening here and I don't understand.

1.  I ran make install in the src directory and it finished without error.  
grass78 is in /usr/local/bin as it should be.  But running grass78 from this 
directory produces this output:

(base) [root@godelsrevenge ~]# /usr/local/bin/grass78 --gui
Starting GRASS GIS...
ERROR: wxGUI requires wxPython. No module named 'wx'
You can still use GRASS GIS modules in the command line or in Python.
ERROR: Error in GUI startup. See messages above (if any) and if necessary, 
please report this error to the GRASS developers.
On systems with package manager, make sure you have the right GUI package, 
probably named grass-gui, installed.
To run GRASS GIS in text mode use the --text flag.
Use '--help' for further options
 grass78 --help
See also: https://grass.osgeo.org/grass78/manuals/helptext.html
Exiting...
(base) [root@godelsrevenge ~]#

Checking for wxPython produces this:

(base) [root@godelsrevenge ~]# find / -name wxPython
find: File system loop detected; ‘/run/media/root/fedora_fedora5/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora4/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora3/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora2/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora1/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora/root’ is part 
of the same file system loop as ‘/’.
/usr/lib64/python3.9/site-packages/wx/include/wxPython

The source file for grass-7.8.5 is at : /grass-7.8.5 NOT /root/grass-7.8.5.

Next I checked echo $PATH and received this message:

(base) [root@godelsrevenge ~]# echo $PATH
/usr/lib64/python3.9/site-packages/wx/include:/root/anaconda3/bin:/root/anaconda3/condabin:/usr/lib64/python3.9/site-packages/wx/include:/usr/lib64/ccache:/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin
(base) [root@godelsrevenge ~]#


but here's my .bashrc file:

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific environment

# Uncomment the following line if you don't like systemctl's auto-paging 
feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# >>> Export for wxPython >>>
export PATH="/usr/lib64/python3.9/site-packages/wx/include:$PATH"

#  conda initialize 
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2 
/dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
. "/root/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/root/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
#  conda initialize 


So what is the origin of that long line of PATH directories when they don't 
appear in the .bashrc file?  (I checked to make sure I was running bash).

And if /usr/local/bin contains grass78 and wxPython is located in 
/usr/lib64/python3.9/site-packages/wx/includes then why is grass78 missing the 
wxPython file?

And I also checked using find / -name grass-gui and came up with nothing, that 
is grass-gui is missing.

I hope I've included enough detail to help with this.


Michael Allen
Industrial Weather
763-777-1263

Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Sunday, December 27, 2020 8:00 PM, Rich Shepard  
wrote:

 On Sun, 27 Dec 2020, mdwxman wrote:

  And that's a very good idea! I just went through the process of 
creating a(base) [root@godelsrevenge ~]# find / -name wxPython
find: File system loop detected; ‘/run/media/root/fedora_fedora5/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora4/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora3/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora2/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora1/root’ is part 
of the same file system loop as ‘/’.
find: File system loop detected; ‘/run/media/root/fedora_fedora/root’ is part 
of the same file system loop as ‘/’.
/usr/lib64/python3.9/site-packages/wx/include/wxPython
(
  link to the GRASS78 file. Your idea is something I never considered. I
  guess too many years of managing Unix and Linux systems with command 
lines
  has stopped the creative juices from using the GUIs that were put 
there
  for everyone's benefit!

 Mike,

 Your method of invoking grass should reflect how you want to work with it.
 I've been using grass since 

[GRASS-user] GRASS and Python3

2020-12-27 Thread Rich Shepard

Since GRASS now will use Python3 (and Python2 reaches EOL this coming
Thursday) I'm trying to clean out all Python2 modules in favor of their
Python3 versions.

A couple of days ago I removed the 'six' python module because
python3-six-1.13.0-x86_64-1_SBo is installed here. But, grass7.9.dev isn't
happy:

$ grass79 -text
Traceback (most recent call last):
  File "/usr/local/bin/grass79", line 52, in 
import six
ModuleNotFoundError: No module named 'six'

Guess I need to re-install python2's six.

Stay well, all,

Rich

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


Re: [GRASS-user] Umm...OK, How do I start this thing?

2020-12-27 Thread Rich Shepard

On Sun, 27 Dec 2020, mdwxman wrote:


And that's a very good idea! I just went through the process of creating a
link to the GRASS78 file. Your idea is something I never considered. I
guess too many years of managing Unix and Linux systems with command lines
has stopped the creative juices from using the GUIs that were put there
for everyone's benefit!


Mike,

Your method of invoking grass should reflect how you want to work with it.
I've been using grass since version 4.0 (integer numbers only) and most of
the time work strictly from the command line. Now and then I want to use the
GUI so I'll start it that way ... from the command line.

You can select how it starts by, for example, $ grass79 -text or $ grass73
-gui (I beta test the development builds by using them when I do spatial
analyses.

The list of command line startup options is on a document page. I don't know
which one now that the web site's been restructured.

Stay well,

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


Re: [GRASS-user] Scatter plot cannot be added

2020-12-27 Thread mega saputra
Finally, I succeed to display scatter plot. I display scatter plot from Map
Display > Create bivariate scatterplot of raster maps. Then I choose two
band. You see in the attachment.
But, in this scatter plot, I can not create a polygon like in
https://grass.osgeo.org/grass78/manuals/wxGUI.iscatt.html.
I want to create region of interest in the scatter plot link with the
raster like in the website page.
Creating scatter plot from the website page will return error. It is about
maximum limit.
How to solve this?

Regards,
mega

On Mon, Dec 28, 2020 at 7:38 AM mega saputra  wrote:

> Here is the output :
> g.proj -p
>
> -PROJ_INFO-
> name   : WGS 84
> datum  : wgs84
> ellps  : wgs84
> proj   : ll
> no_defs: defined
> -PROJ_EPSG-
> epsg   : 4326
> -PROJ_UNITS
> unit   : degree
> units  : degrees
> meters : 1.0
> (Mon Dec 28 07:25:33 2020) Command finished (0 sec)
>
> (Mon Dec 28 07:25:42 2020)
>
> g.extension r.scatterplot
>
> Fetching  from GRASS GIS Addons repository (be patient)...
> Compiling...
> Installing...
> Updating addons metadata file...
> Installation of  successfully finished
> (Mon Dec 28 07:25:50 2020) Command finished (7 sec)
>
> (Mon Dec 28 07:26:18 2020)
>
> r.scatterplot input=rgb.1,rgb.3 output=scatter_1_3
>
> Building topology for vector map ...
> Registering primitives...
> (Mon Dec 28 07:28:40 2020) Command finished (2 min 21 sec)
>
> (Mon Dec 28 07:30:53 2020)
>
> v.info map=scatter_1_3@PERMANENT
>
>
>  
> ++
>  | Name:scatter_1_3
> |
>  | Mapset:  PERMANENT
> |
>  | Location:newLocation
> |
>  | Database:/home/mega
>|
>  | Title:
> |
>  | Map scale:   1:1
> |
>  | Name of creator: mega
>|
>  | Organization:
>|
>  | Source date: Mon Dec 28 07:26:19 2020
>|
>  | Timestamp (first layer): none
>|
>
>  
> ||
>  | Map format:  native
>|
>
>  
> ||
>  |   Type of map: vector (level: 2)
> |
>  |
>|
>  |   Number of points:   11836384Number of centroids:  0
>|
>  |   Number of lines:0   Number of boundaries: 0
>|
>  |   Number of areas:0   Number of islands:0
>|
>  |   Number of faces:0   Number of kernels:0
>|
>  |   Number of volumes:  0   Number of holes:  0
>|
>  |
>|
>  |   Map is 3D:  Yes
>|
>  |   Number of dblinks:  0
>|
>  |
>|
>  |   Projection: Latitude-Longitude
> |
>  |
>|
>  |   N:65528NS: 0
> |
>  |   E:65528EW: 0
> |
>  |   B: 0T: 0
> |
>  |
>|
>  |   Digitization threshold: 0
>|
>  |   Comment:
> |
>  |
>|
>
>  
> ++
> (Mon Dec 28 07:30:53 2020) Command finished (0 sec)
>
> But, there is no scatter plot in Map Display. Then I click twice in vector
> > scatter_1_3 in Data tab. Then there is a message :
> "Unable to zoom to vector map 
> Details: Illegal latitude for North: 65528"
>
> How to solve the problem?
>
> Regards,
> mega
>
> On Sun, Dec 27, 2020 at 3:22 PM Micha Silver  wrote:
>
>> Here's my attempt:
>>
>> I downloaded the rgb.tif that you linked to, then used it to create a
>> new, fresh location
>>
>>
>> # Create a NEW location "mega" using the georeferenced rgb.tif file to
>> define location
>> # and import the file
>>
>> # Run at the command line, *before* starting grass:
>>
>> grass78 -c rgb.tif /home/micha/grass/mega
>>
>>
>> # Now at the grass prompt:
>>
>> # Check projection settings
>> g.proj -p
>> -PROJ_INFO-
>> name   : WGS 84
>> datum  : wgs84
>> ellps  : wgs84
>> proj   : ll
>> no_defs: defined
>> -PROJ_EPSG-
>> epsg   : 4326
>> -PROJ_UNITS
>> unit   : degree
>> units  : degrees
>> meters : 1.0
>>
>> # Install the scatterplot extension
>> g.extension r.scatterplot
>> Downloading precompiled GRASS Addons ...
>> Updating extensions metadata file...
>> Updating extension modules metadata file...
>> Installation of  successfully finished
>>
>> # Now run r.scatterplot on two bands
>> r.scatterplot input=rgb.3,rgb.2 output=scatter_3_2
>>  100%
>> Building topology for vector map ...
>> Registering primitives...
>>   1183
>> # Almost 12 million points (!)
>>
>>
>> The X-Y coordinates of the 

Re: [GRASS-user] Scatter plot cannot be added

2020-12-27 Thread mega saputra
Here is the output :
g.proj -p

-PROJ_INFO-
name   : WGS 84
datum  : wgs84
ellps  : wgs84
proj   : ll
no_defs: defined
-PROJ_EPSG-
epsg   : 4326
-PROJ_UNITS
unit   : degree
units  : degrees
meters : 1.0
(Mon Dec 28 07:25:33 2020) Command finished (0 sec)

(Mon Dec 28 07:25:42 2020)

g.extension r.scatterplot

Fetching  from GRASS GIS Addons repository (be patient)...
Compiling...
Installing...
Updating addons metadata file...
Installation of  successfully finished
(Mon Dec 28 07:25:50 2020) Command finished (7 sec)

(Mon Dec 28 07:26:18 2020)

r.scatterplot input=rgb.1,rgb.3 output=scatter_1_3

Building topology for vector map ...
Registering primitives...
(Mon Dec 28 07:28:40 2020) Command finished (2 min 21 sec)

(Mon Dec 28 07:30:53 2020)

v.info map=scatter_1_3@PERMANENT

 ++
 | Name:scatter_1_3
  |
 | Mapset:  PERMANENT
  |
 | Location:newLocation
  |
 | Database:/home/mega
   |
 | Title:
  |
 | Map scale:   1:1
  |
 | Name of creator: mega
   |
 | Organization:
   |
 | Source date: Mon Dec 28 07:26:19 2020
   |
 | Timestamp (first layer): none
   |
 ||
 | Map format:  native
   |
 ||
 |   Type of map: vector (level: 2)
  |
 |
   |
 |   Number of points:   11836384Number of centroids:  0
   |
 |   Number of lines:0   Number of boundaries: 0
   |
 |   Number of areas:0   Number of islands:0
   |
 |   Number of faces:0   Number of kernels:0
   |
 |   Number of volumes:  0   Number of holes:  0
   |
 |
   |
 |   Map is 3D:  Yes
   |
 |   Number of dblinks:  0
   |
 |
   |
 |   Projection: Latitude-Longitude
  |
 |
   |
 |   N:65528NS: 0
  |
 |   E:65528EW: 0
  |
 |   B: 0T: 0
  |
 |
   |
 |   Digitization threshold: 0
   |
 |   Comment:
  |
 |
   |
 ++
(Mon Dec 28 07:30:53 2020) Command finished (0 sec)

But, there is no scatter plot in Map Display. Then I click twice in vector
> scatter_1_3 in Data tab. Then there is a message :
"Unable to zoom to vector map 
Details: Illegal latitude for North: 65528"

How to solve the problem?

Regards,
mega

On Sun, Dec 27, 2020 at 3:22 PM Micha Silver  wrote:

> Here's my attempt:
>
> I downloaded the rgb.tif that you linked to, then used it to create a new,
> fresh location
>
>
> # Create a NEW location "mega" using the georeferenced rgb.tif file to
> define location
> # and import the file
>
> # Run at the command line, *before* starting grass:
>
> grass78 -c rgb.tif /home/micha/grass/mega
>
>
> # Now at the grass prompt:
>
> # Check projection settings
> g.proj -p
> -PROJ_INFO-
> name   : WGS 84
> datum  : wgs84
> ellps  : wgs84
> proj   : ll
> no_defs: defined
> -PROJ_EPSG-
> epsg   : 4326
> -PROJ_UNITS
> unit   : degree
> units  : degrees
> meters : 1.0
>
> # Install the scatterplot extension
> g.extension r.scatterplot
> Downloading precompiled GRASS Addons ...
> Updating extensions metadata file...
> Updating extension modules metadata file...
> Installation of  successfully finished
>
> # Now run r.scatterplot on two bands
> r.scatterplot input=rgb.3,rgb.2 output=scatter_3_2
>  100%
> Building topology for vector map ...
> Registering primitives...
>   1183
> # Almost 12 million points (!)
>
>
> The X-Y coordinates of the points are the scatterplot values.
>
> HTH,
> Micha
>
> On 12/26/2020 11:40 PM, mega saputra wrote:
>
> The result is the same. It cannot add scatterplot.
> Here is the output :
>
> (Sun Dec 27 05:20:25 2020)
>
> g.region -ap raster=rgb.1
>
> projection: 3 (Latitude-Longitude)
> zone:   0
> datum:  wgs84
> ellipsoid:  wgs84
> north:  13:07:42.9N
> south:  27:38:15.5S
> west:   100:55:15.7E
> east:   131:15:38.1E
> nsres:  0:00:36.8
> ewres:  0:00:36.8
> rows:   3988
> cols:   2968
> cells:  11836384
> (Sun Dec 27 05:20:25 2020) Command finished (0 sec)
>
> G__open(read): Unable to open '/home/mega/newLocation/PERMAN
> ENT/.tmp/mega/vector/trAreas54950/frmt': No such file or
> directory
>
> If you want to try my data, my data is in :
> https://1drv.ms/u/s!AjXAWS5maHffhyH0q9oTos1umy3D?e=bKa7mX
>
> Thank you.
>
> regards,
> mega
>
>
> On Sat, Dec 26, 

Re: [GRASS-user] Umm...OK, How do I start this thing?

2020-12-27 Thread Rich Shepard

On Sun, 27 Dec 2020, mdwxman via grass-user wrote:


I must be either blind or brain-frozen by all the snow outside but even
after reading through the introductions and downloading the North Carolina
data I still don't see how to start GRASS GIS 7.8.5 on my Fedora 33. I
have over 30 years experience with Unix or Linux and I still don't see a
startup file. What am I missing?


Michael,

You need to invoke the executable binary. On Slackware it's in
/usr/local/bin/.

If you're using a virtual desktop (Gnome, KDE, Xfce4, whatever) you can
point an icon or menu item to that file and access it that way rather than
from a virtual terminal.

Stay well,

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


[GRASS-user] [GRASS GIS Elections 2020] Nomination of Vaclav Petras

2020-12-27 Thread Chief Return Officer (CRO) - GRASS GIS election 2020

Dear members of the GRASS GIS community,

Vaclav Petras has now accepted a nomination to the PSC made by Denis 
Ovsienko.


Hernán
Chief Return Officer (CRO)


 Forwarded Message 
Subject:GRASS PSC nomination
Date:   Sat, 26 Dec 2020 13:56:22 +
From:   Denis Ovsienko 
To: cro.gr...@osgeo.org
CC: Vaclav Petras 



Hello Hernán.

I would like to nominate Vaclav Petras as a PSC member candidate. I
think this would help to improve the feedback loop between the committee
and the community.

--
Denis Ovsienko

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