Re: [GRASS-user] Again, grass doen't find existing map to display
On Thu, 30 Sep 2021, Micha Silver wrote: Did you enter the full vector name with Mapset as property@bathymetry ?? Micha, No, I hadn't. After I thought of trying that but didn't since I had the same problem after switching to the mapset with that map. Did you start a new wx monitor after switching mapsets? No. I work in a single monitor because I want to display multiple maps. Thanks, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Display point values
On Thu, 30 Sep 2021, Micha Silver wrote: Here's what I did. Notice that I added the "-z=3" option to v.in.ascii so that the new points vector is 3D. Then the "zcolor=" option to d.vect works. Micha, The command I used is: v.in.ascii -zr in=~/projects/washington/project/data/bathymetry/coe/CL_34_WSHX_20210720_CS.xyz out=wash_transect format=point sep=comma columns='x double precision, y double precision, elev=int' x=1 y=2 z=3 --o It has the -z option specified. It also has 'z=3' at the end to indicate the elevation values are the third column in the file. If I replace -zn with -z=3 GRASS tells me: ERROR: v.in.ascii: Sorry, <=> is not a valid flag ERROR: v.in.ascii: Sorry, <3> is not a valid flag And GRASS still tells me: ERROR: Unable to open input file : No such file or directory It's quite frustrating as it had no problem finding CL_33_LDYX_20210712_CS.xyz in the same directory just before I entered the command for importing CL_34_WSHX_20210720_CS.xyz. Thanks, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Again, grass doen't find existing map to display
On Thu, 30 Sep 2021, Rich Shepard wrote: python3: can't open file '/data/grassdata/project/features/.tmp/salmo/MONITORS/wx1/render.py': [Errno 2] No such file or directory What might be the cause of these errors? Looking at the display drivers page I wonder if the issue is related to file versions installed here: $ ls /var/log/packages/ | grep cairo cairo-1.14.6-x86_64-2 cairo-compat32-1.14.6-x86_64-2compat32 cairomm-1.12.0-x86_64-1 perl-cairo-1.109-x86_64-1_SBo py3cairo-1.10.0-x86_64-3_SBo pycairo-1.10.0-x86_64-1 $ ls /var/log/packages/ | grep png libpng-1.6.37-x86_64-1_slack14.2 libpng-compat32-1.6.37-x86_64-1_slack14.2compat32 optipng-0.7.7-x86_64-1_SBo Again, this is a new issue that's stopping my use of GRASS after a couple of hours and I don't know what's tripping the inability to find, open, or read files and erase and close wx0. Thoughts? Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Again, grass doen't find existing map to display
On 9/30/21 8:18 PM, Rich Shepard wrote: Only since about a week ago have I had grass tell me it could not display an existing map. They happen when I try to erase the monitor or display a map and exiting/re-starting GRASS doesn't resolve the issue. I get this response both when the map's in a different mapset that's available or in the mapset in which it's found: g.mapsets -l Available mapsets: PERMANENT bathymetry features fish hydraulics size=7 # window truncation Did you enter the full vector name with Mapset as property@bathymetry ?? ERROR: Vector map not found GRASS project/bathymetry:analyses > g.mapset map=features Mapset switched. GRASS project/features:analyses > g.list type=vect property size=7 python3: can't open file '/data/grassdata/project/features/.tmp/salmo/MONITORS/wx1/render.py': [Errno Did you start a new wx monitor after switching mapsets? 2] No such file or directory What might be the cause of these errors? 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] Display point values
On 9/30/21 7:33 PM, Rich Shepard wrote: Rather than use raster DTM maps I decided to use depth measurement points themselves. The data look like this: lon,lat,depth 7709581.42,697951.64,24 7705545.87,698624.07,16 7709732.27,699488.73,27 7712090.79,699428.24,62 7716863.99,701238.89,32 7701540.85,698790.50,31 7713676.33,699192.82,58 7705283.41,697549.00,31 7705037.10,698489.22,16 The command I'm using is: d.vect map=lady_channel_sounding_points display=zcoor type=point zcolor=blue size=7 and the resulting map is attached. Here's what I did. Notice that I added the "-z=3" option to v.in.ascii so that the new points vector is 3D. Then the "zcolor=" option to d.vect works. # Create new Location/Mapset based on the georeference tiff file grass -c ~/Downloads/columbia_2010_e_dtm_35.tif --text ./columbia/PERMANENT #Points text file micha@RMS:tmp$ cat << EOF > depth_points.txt lon,lat,depth 7709581.42,697951.64,24 7705545.87,698624.07,16 7709732.27,699488.73,27 7712090.79,699428.24,62 7716863.99,701238.89,32 7701540.85,698790.50,31 7713676.33,699192.82,58 7705283.41,697549.00,31 7705037.10,698489.22,16 EOF # Create GRASS vector from CSV file # Note the 'z=3" parameter, to creaate a 3D vector with Z coord cat depth_points.txt | v.in.ascii input=- output=depth_points separator=comma z=3 skip=1 columns="x DOUBLE, y DOUBLE, depth DOUBLE" --o v.info depth_points | grep 3D | Map is 3D: Yes g.region -ap vect=depth_points # Display d.mon wx1 d.vect depth_points zcolor=byr size=10 icon=basic/diamond # Result attached Perhaps I should make the computational region smaller to make individual values visible, but are the display and color values what they should be? The values are displayed in red, not blue. TIA, 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
[GRASS-user] Again, grass doen't find existing map to display
Only since about a week ago have I had grass tell me it could not display an existing map. They happen when I try to erase the monitor or display a map and exiting/re-starting GRASS doesn't resolve the issue. I get this response both when the map's in a different mapset that's available or in the mapset in which it's found: g.mapsets -l Available mapsets: PERMANENT bathymetry features fish hydraulics not found GRASS project/bathymetry:analyses > g.mapset map=features Mapset switched. GRASS project/features:analyses > g.list type=vect property python3: can't open file '/data/grassdata/project/features/.tmp/salmo/MONITORS/wx1/render.py': [Errno 2] No such file or directory What might be the cause of these errors? Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Display point values
Rather than use raster DTM maps I decided to use depth measurement points themselves. The data look like this: lon,lat,depth 7709581.42,697951.64,24 7705545.87,698624.07,16 7709732.27,699488.73,27 7712090.79,699428.24,62 7716863.99,701238.89,32 7701540.85,698790.50,31 7713676.33,699192.82,58 7705283.41,697549.00,31 7705037.10,698489.22,16 The command I'm using is: d.vect map=lady_channel_sounding_points display=zcoor type=point zcolor=blue size=7 and the resulting map is attached. Perhaps I should make the computational region smaller to make individual values visible, but are the display and color values what they should be? The values are displayed in red, not blue. TIA, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Elevation/bathymetry raster maps
On Thu, 30 Sep 2021, Moritz Lennert wrote: No need for r.mapcalc if what you are looking for is coloring. Just define a color table definition file and feed it to r.colors. This color table file can be quite flexible, e.g. to get more differentiated coloring between -5000 and -3000, you can use something like this: -5000 0:0:0 - 4000 50:50:50 - 3000 100:100:100 0 175:175:175 100% 255:255:255 Check the r.colors man page for more details. Moritz, Thank you. I will. Regards, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Elevation/bathymetry raster maps
Am 30.09.2021 14:40 schrieb Rich Shepard: On Thu, 30 Sep 2021, Maris Nartiss wrote: One option always is to set colours manually. Māris, That occurred to me: use r.mapcalc to define ranges of depth/elevation then assign a color to each. No need for r.mapcalc if what you are looking for is coloring. Just define a color table definition file and feed it to r.colors. This color table file can be quite flexible, e.g. to get more differentiated coloring between -5000 and -3000, you can use something like this: -5000 0:0:0 - 4000 50:50:50 - 3000 100:100:100 0 175:175:175 100% 255:255:255 Check the r.colors man page for more details. Moritz ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Searching EPSG database [RESOLVED]
On Thu, 30 Sep 2021, Jeff McKenna wrote: Please note that spatialreferences.org is no longer maintained. If you want a fancy search, use https://epsg.io (but remember, epsg.org has the guaranteed search results in terms of searching the actual EPSG database source - see my previous message on this) jeff, That's good to know. Many thanks, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS 8.0.dev not reading .shp file
On Thu, 30 Sep 2021, Maris Nartiss wrote: Check the file with ogr: ogrinfo -ro -so path/to/file_name.shp file_name Māris, Okay. Thanks, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Elevation/bathymetry raster maps
On Thu, 30 Sep 2021, Maris Nartiss wrote: One option always is to set colours manually. Māris, That occurred to me: use r.mapcalc to define ranges of depth/elevation then assign a color to each. Thanks, Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Create location fails in docker
Hi Moritz, On Thu, Sep 30, 2021 at 10:49 AM Moritz Lennert < mlenn...@club.worldonline.be> wrote: > Hi Madi, > > Am 30.09.2021 09:46 schrieb Margherita Di Leo: > > > >> PermissionError: [Errno 13] Permission denied: '/.grass7' > > > > What does this error message mean? Why is it trying to write in the > > /.grass7 folder ? > > Whenever you launch GRASS GIS with the grass startup script, it writes > the chosen Gisdbase/Location/Mapset info into .grass7/rc. If you launch > GRASS GIS for the first time, it first creates the directory .grass7 > which is the part that fails with a permission error. > > But isn't .grass7/rc folder supposed to be written in the home directory? In my docker image I set the user and a home directory is created for it... > I'm no Docker expert at all, but I think you have to explicitly run the > container with parameters indicating the devices one can access from > within. > I'm trying to figure... I set a workdir and give full permissions to the user to it, but still the .grass7 folder is not written there nor in the home. Is there a way to "force" the grass configuration files to be written somewhere else? Thanks, -- Margherita Di Leo ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Create location fails in docker
2021-09-30 10:46 GMT+03:00, Margherita Di Leo : >> What does this error message mean? Why is it trying to write in the > /.grass7 folder ? And what does the name '_' refer to? It means that you need to fix your environment before starting GRASS. Check your $HOME setting. Māris. ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] GRASS 8.0.dev not reading .shp file
Check the file with ogr: ogrinfo -ro -so path/to/file_name.shp file_name Māris. 2021-09-29 22:32 GMT+03:00, Rich Shepard : > I created a new location using the .prj file for cross-section contour > lines > and successfully input CL_33_LDYX_20210712_CS_contour_lines.shp. When I > tried to input the sounding points file > (CL_33_LDYX_20210712_CS_sounding_points.shp) > GRASS responded: > ERROR: Unable to open data source > > > The sounding points .shp file is an ESRI Shapefile version 1000 length 19168 > type > PointZ and 38336 bytes in lengh. > > What might cause GRASS to read one .shp file in a directory but not another > .shp file in the same directory? > > I am seeing this 'unable to read file' error frequently these past few > days. > > TIA, > > 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
Re: [GRASS-user] Elevation/bathymetry raster maps
One option always is to set colours manually. Māris. 2021-09-29 19:12 GMT+03:00, Rich Shepard : > Looking at the raster and raster addon modules I don't see one that will > allow more elevation/depth 'slices' for a given range. r.resample appears > to > reduce the 'slices'; can it be used to also increase the number? > > A related question is how GRASS sets the 'slice' range for assignment to a > color in the spectrum (elevation and water in these cases). > > Specifically, I have a raster map with a range of depth/elevation altitudes > from -32.55505 to 595.1976 feet. Can I determine the number of 'slices' > within that range and use the water colors from minimum to zero and the > elevation colors from 1 to maximum? I want to display higher resolution in > the depths and the adjacent terrestrial elevations with a greater range of > colors to better communicate the channel and immediate river bank topology. > > TIA, > > 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
Re: [GRASS-user] Create location fails in docker
Hi Madi, Am 30.09.2021 09:46 schrieb Margherita Di Leo: Hi again, I try to reformulate my question: On Wed, Sep 29, 2021 at 9:32 PM Margherita Di Leo wrote: grass --text -c EPSG:4326 $GRASSDATA/france -e The error message: Traceback (most recent call last): File "/usr/bin/grass", line 390, in get_grass_config_dir os.mkdir(directory) PermissionError: [Errno 13] Permission denied: '/.grass7' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/grass", line 2218, in main() File "/usr/bin/grass", line 2001, in main grass_config_dir = get_grass_config_dir() File "/usr/bin/grass", line 395, in get_grass_config_dir _("Failed to create configuration directory '%s' with error: %s") NameError: name '_' is not defined Traceback (most recent call last): File "/usr/bin/grass", line 390, in get_grass_config_dir os.mkdir(directory) PermissionError: [Errno 13] Permission denied: '/.grass7' What does this error message mean? Why is it trying to write in the /.grass7 folder ? Whenever you launch GRASS GIS with the grass startup script, it writes the chosen Gisdbase/Location/Mapset info into .grass7/rc. If you launch GRASS GIS for the first time, it first creates the directory .grass7 which is the part that fails with a permission error. I'm no Docker expert at all, but I think you have to explicitly run the container with parameters indicating the devices one can access from within. And what does the name '_' refer to? This seems to be linked to the translation handling: File "/usr/bin/grass", line 395, in get_grass_config_dir _("Failed to create configuration directory '%s' with error: %s") Note the '_' in front of the string which marks it as a translatable string. There was a bug related to this a while ago, but it was fixed (https://trac.osgeo.org/grass/ticket/3875). Maybe a locale issue ? Moritz ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Searching EPSG database [RESOLVED]
What about: https://grass.osgeo.org/grass78/manuals/addons/g.projpicker.html ? -Original Message- From: grass-user On Behalf Of Jeff McKenna Sent: torsdag 30. september 2021 05:21 To: grass-user@lists.osgeo.org Subject: Re: [GRASS-user] Searching EPSG database [RESOLVED] On 2021-09-29 8:21 p.m., Rich Shepard wrote: > On Wed, 29 Sep 2021, Rich Shepard wrote: > >> I registered with epsg.org but when I enter a state's name in the >> search box and click the 'GO' button nothing changes; displayed is >> the entire list starting with Aruba. > > I used spatialreferences.org instead. When I enter a state's name in > their search box a list of all projection codes is presented. > Please note that spatialreferences.org is no longer maintained. If you want a fancy search, use https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fepsg.io%2Fdata=04%7C01%7CStefan.Blumentrath%40nina.no%7C4d521c91cf24459dde3908d983c16236%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637685689463298331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=3iBP2%2FCz%2BeU5uO6L%2FmnvFctap7ofIypli66K%2BSbqoBE%3Dreserved=0 (but remember, epsg.org has the guaranteed search results in terms of searching the actual EPSG database source - see my previous message on this) -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgatewaygeo.com%2Fdata=04%7C01%7CStefan.Blumentrath%40nina.no%7C4d521c91cf24459dde3908d983c16236%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637685689463298331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=nm5K6R3I1usVceQ%2B%2Fl%2FInUs2fxS9xomCVxRafHHWW9I%3Dreserved=0 ___ grass-user mailing list grass-user@lists.osgeo.org https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fgrass-userdata=04%7C01%7CStefan.Blumentrath%40nina.no%7C4d521c91cf24459dde3908d983c16236%7C6cef373021314901831055b3abf02c73%7C0%7C0%7C637685689463298331%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=iSrT8dEYJryJtLM%2FLGQGsE3pT9ZwqeDsXlUmUmjy%2Bjk%3Dreserved=0 ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Create location fails in docker
Hi again, I try to reformulate my question: On Wed, Sep 29, 2021 at 9:32 PM Margherita Di Leo wrote: > > grass --text -c EPSG:4326 $GRASSDATA\/france -e > > The error message: > > Traceback (most recent call last): > File "/usr/bin/grass", line 390, in get_grass_config_dir > os.mkdir(directory) > PermissionError: [Errno 13] Permission denied: '/.grass7' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/bin/grass", line 2218, in > main() > File "/usr/bin/grass", line 2001, in main > grass_config_dir = get_grass_config_dir() > File "/usr/bin/grass", line 395, in get_grass_config_dir > _("Failed to create configuration directory '%s' with error: %s") > NameError: name '_' is not defined > Traceback (most recent call last): > File "/usr/bin/grass", line 390, in get_grass_config_dir > os.mkdir(directory) > PermissionError: [Errno 13] Permission denied: '/.grass7' > > What does this error message mean? Why is it trying to write in the /.grass7 folder ? And what does the name '_' refer to? Thanks for any pointers -- Margherita Di Leo ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Searching EPSG database
>and click the 'GO' button nothing changes; displayed is the entire list >starting with Aruba. Without registering/login in www.epsg.org, by typing Washington in the search field and pressing the go button, I get CRSs: 385, starting with 4267, 26730,..., 32048, etc. If the epsg.org Website isn't working for you, then it's better to ask their support. Helmut ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user