[GRASS-dev] [GRASS-SVN] r62845 - in grass/trunk/scripts: . d.shadedmap r.shadedmap

My idea is that changing r.shaded.relief → r.relief allows us to use r/d.shaded.relief for relief maps that are colored by another variable (elevation, land-cover, etc).

Michael

···

On Sat, Nov 29, 2014 at 9:43 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

Done in r63305 with few other improvements.

Now I’m not sure with [rd].shade parameters. reliefmap and drapemap are not particularly explanatory. My idea was shade and color which is better when shade=slope compared to relief=slope. color=elevation is also quite understandable but of course it is quite unexpected that the color option is a raster map.

There is also one detail I’m not sure about. r.relief might be now missing one keyword and that is “shaded relief”. “relief” should be there too but having also “shaded relief” distinguishes it from things like “local relief (model)”.

http://trac.osgeo.org/grass/changeset/63305

On Sat, Nov 29, 2014 at 9:30 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sat, Nov 29, 2014 at 12:37 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Nov 28, 2014 at 5:40 PM, Michael Barton <Michael.Barton@asu.edu>
wrote:

Probably nothing to be done about this since r.shaded.relief goes back a
long time. But a more sensible renaming would have the script now called
r.chaded.relief renamed to simply r.relief. Then the modules that drape a
colored map onto a relief map could be called x.shaded.relief,
x.shadedrelief, or something like that.

That’s an interesting option. I’m not sure if I like it but it’s worth
exploring. If we go even further we get:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

… along with:

  • r.blend

Yes, I like this list better than the current names of discussed modules.

So, if you like it, I can like it too and I will change it hopefully soon. Just to be sure: including r.shaded.relief → r.relief?

Vaclav

Markus

On Sun, Nov 30, 2014 at 8:12 PM, Michael Barton <Michael.Barton@asu.edu>
wrote:

My idea is that changing r.shaded.relief -> r.relief allows us to use
r/d.shaded.relief for relief maps that are colored by another variable
(elevation, land-cover, etc).

I don't think this would be a good idea. r.relief (former r.shaded.relief)

creates "shade from the (terrain) relief". r.shade (former r.shadedmap, and
d.shade) allows to "put the shade on a colored/colorful raster" where both
shade and raster can be anything. Shade can be e.g. aspect, slope or shade
derived from the relief. I know this is probably clear but his was my
thinking.

I didn't though about r.shade and r.relief names before you suggested them
and I'm not 100% satisfied with r.relief because it is in fact not relief
but shade from relief. However, I like the new names because they are
short, there is no problem with using or not using the dot between words
and they are distinct from each other.

Michael

           ____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 30, 2014, at 5:50 PM, grass-dev-request@lists.osgeo.org wrote:

*From: *Vaclav Petras <wenzeslaus@gmail.com>
*Cc: *GRASS developers list <grass-dev@lists.osgeo.org>
*To: *Markus Neteler <neteler@osgeo.org>
*Date: *November 30, 2014 at 5:31:35 PM MST
*Subject: **Re: [GRASS-dev] [GRASS-SVN] r62845 - in grass/trunk/scripts:
. d.shadedmap r.shadedmap*

On Sat, Nov 29, 2014 at 9:43 AM, Vaclav Petras <wenzeslaus@gmail.com>
wrote:

On Sat, Nov 29, 2014 at 9:30 AM, Markus Neteler <neteler@osgeo.org>
wrote:

On Sat, Nov 29, 2014 at 12:37 AM, Vaclav Petras <wenzeslaus@gmail.com>
wrote:
>
> On Fri, Nov 28, 2014 at 5:40 PM, Michael Barton <
Michael.Barton@asu.edu>
> wrote:
>>
>> Probably nothing to be done about this since r.shaded.relief goes
back a
>> long time. But a more sensible renaming would have the script now
called
>> r.chaded.relief renamed to simply r.relief. Then the modules that
drape a
>> colored map onto a relief map could be called x.shaded.relief,
>> x.shadedrelief, or something like that.
>>
> That's an interesting option. I'm not sure if I like it but it's worth
> exploring. If we go even further we get:
>
> r.shaded.relief -> r.relief
> r.shadedmap -> r.shade
> d.shadedmap -> d.shade

... along with:
- r.blend

Yes, I like this list better than the current names of discussed modules.

  So, if you like it, I can like it too and I will change it hopefully

soon. Just to be sure: including r.shaded.relief -> r.relief?

r.shaded.relief -> r.relief
r.shadedmap -> r.shade
d.shadedmap -> d.shade

Done in r63305 with few other improvements.

Now I'm not sure with [rd].shade parameters. reliefmap and drapemap are
not particularly explanatory. My idea was shade and color which is better
when shade=slope compared to relief=slope. color=elevation is also quite
understandable but of course it is quite unexpected that the color option
is a raster map.

There is also one detail I'm not sure about. r.relief might be now
missing one keyword and that is "shaded relief". "relief" should be there
too but having also "shaded relief" distinguishes it from things like
"local relief (model)".

http://trac.osgeo.org/grass/changeset/63305

   Vaclav

Markus

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

My thinking was that a relief map simulates the appearance of topographic relief through the use of ‘hill shading’ (to use the ESRI term).

You can “shade” the relief map made with r.relief or other psuedo relief maps, like an aspect map (can you shade a slope map in this way? Not sure what it would tell you visually) with a color map of some kind (hence r.shaded.relief). Or you can “drape” the color map over the relief map—perhaps “r.color.drape”.

There are other kinds of image fusion for sure. The goal is to use names that users can easily understand. If d.shade can shade something other than a relief map of some kind, then perhaps d.shade is best. If it mainly is for shading relief maps maps, d.shaded.relief might be better.

Michael

···

On Sat, Nov 29, 2014 at 9:43 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

Done in r63305 with few other improvements.

Now I’m not sure with [rd].shade parameters. reliefmap and drapemap are not particularly explanatory. My idea was shade and color which is better when shade=slope compared to relief=slope. color=elevation is also quite understandable but of course it is quite unexpected that the color option is a raster map.

There is also one detail I’m not sure about. r.relief might be now missing one keyword and that is “shaded relief”. “relief” should be there too but having also “shaded relief” distinguishes it from things like “local relief (model)”.

http://trac.osgeo.org/grass/changeset/63305

On Sat, Nov 29, 2014 at 9:30 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sat, Nov 29, 2014 at 12:37 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Nov 28, 2014 at 5:40 PM, Michael Barton <Michael.Barton@asu.edu>
wrote:

Probably nothing to be done about this since r.shaded.relief goes back a
long time. But a more sensible renaming would have the script now called
r.chaded.relief renamed to simply r.relief. Then the modules that drape a
colored map onto a relief map could be called x.shaded.relief,
x.shadedrelief, or something like that.

That’s an interesting option. I’m not sure if I like it but it’s worth
exploring. If we go even further we get:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

… along with:

  • r.blend

Yes, I like this list better than the current names of discussed modules.

So, if you like it, I can like it too and I will change it hopefully soon. Just to be sure: including r.shaded.relief → r.relief?

Vaclav

Markus

My thinking was that a relief map simulates the appearance of topographic relief through the use of ‘hill shading’ (to use the ESRI term).

BTW, hill shading is not as bad term as other ESRI terms, the main problems is that it is really just ESRI term. It seems to me that nobody else is using it.

You can “shade” the relief map made with r.relief or other psuedo relief maps, like an aspect map (can you shade a slope map in this way? Not sure what it would tell you visually) with a color map of some kind (hence r.shaded.relief). Or you can “drape” the color map over the relief map—perhaps “r.color.drape”.

I’m not sure if I follow the first part. But I don’t like the drape think as a name and as a parameter (d.shade has now drapemap, I would like to get rid of it). I know what drape would mean with 3D surface (e.g. in NVIZ) but I have no idea what this mean with elevation and its shade. It always seems to me that I’m draping the shade over the elevation (as it would draping do in 3D) but it is the other way around.

Slope shading or whatever we want to call it is possible in some way. Higher slopes are darker.

r.colors -n -e map=slope color=grey
d.shade drapemap=elevation reliefmap=slope brighten=99

See also “red relief image maps” [1] but slope is there used as color, not shade. I’ll try to add both examples to manual some time later.

[1] https://groups.google.com/forum/?hl=en#!searchin/lastools/grass/lastools/_Zv6ublzeSE/SRCa_WQ8gusJ

There are other kinds of image fusion for sure. The goal is to use names that users can easily understand. If d.shade can shade something other than a relief map of some kind, then perhaps d.shade is best. If it mainly is for shading relief maps maps, d.shaded.relief might be better.

It’s mainly for relief but it’s general. If there is no strong opposition I would stick to d.shade but yes I consider this as important because it seemed to me that it is hard find relief shading functionality in GRASS (and QGIS too actually). Nothing was backported yet.

And what about the following?

  • d.shade drapemap=elevation reliefmap=slope
  • d.shade color=elevation shade=slope
(attachments)

slope_shading_tiny.png

···

On Sun, Nov 30, 2014 at 11:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

My thinking was that a relief map simulates the appearance of topographic relief through the use of ‘hill shading’ (to use the ESRI term).

You can “shade” the relief map made with r.relief or other psuedo relief maps, like an aspect map (can you shade a slope map in this way? Not sure what it would tell you visually) with a color map of some kind (hence r.shaded.relief). Or you can “drape” the color map over the relief map—perhaps “r.color.drape”.

There are other kinds of image fusion for sure. The goal is to use names that users can easily understand. If d.shade can shade something other than a relief map of some kind, then perhaps d.shade is best. If it mainly is for shading relief maps maps, d.shaded.relief might be better.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 30, 2014, at 7:54 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Sun, Nov 30, 2014 at 8:12 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

My idea is that changing r.shaded.relief → r.relief allows us to use r/d.shaded.relief for relief maps that are colored by another variable (elevation, land-cover, etc).

I don’t think this would be a good idea. r.relief (former r.shaded.relief) creates “shade from the (terrain) relief”. r.shade (former r.shadedmap, and d.shade) allows to “put the shade on a colored/colorful raster” where both shade and raster can be anything. Shade can be e.g. aspect, slope or shade derived from the relief. I know this is probably clear but his was my thinking.

I didn’t though about r.shade and r.relief names before you suggested them and I’m not 100% satisfied with r.relief because it is in fact not relief but shade from relief. However, I like the new names because they are short, there is no problem with using or not using the dot between words and they are distinct from each other.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 30, 2014, at 5:50 PM, grass-dev-request@lists.osgeo.org wrote:

From: Vaclav Petras <wenzeslaus@gmail.com>

Cc: GRASS developers list <grass-dev@lists.osgeo.org>

To: Markus Neteler <neteler@osgeo.org>

Date: November 30, 2014 at 5:31:35 PM MST

Subject: Re: [GRASS-dev] [GRASS-SVN] r62845 - in grass/trunk/scripts: . d.shadedmap r.shadedmap


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Sat, Nov 29, 2014 at 9:43 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

Done in r63305 with few other improvements.

Now I’m not sure with [rd].shade parameters. reliefmap and drapemap are not particularly explanatory. My idea was shade and color which is better when shade=slope compared to relief=slope. color=elevation is also quite understandable but of course it is quite unexpected that the color option is a raster map.

There is also one detail I’m not sure about. r.relief might be now missing one keyword and that is “shaded relief”. “relief” should be there too but having also “shaded relief” distinguishes it from things like “local relief (model)”.

http://trac.osgeo.org/grass/changeset/63305

On Sat, Nov 29, 2014 at 9:30 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sat, Nov 29, 2014 at 12:37 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Nov 28, 2014 at 5:40 PM, Michael Barton <Michael.Barton@asu.edu>
wrote:

Probably nothing to be done about this since r.shaded.relief goes back a
long time. But a more sensible renaming would have the script now called
r.chaded.relief renamed to simply r.relief. Then the modules that drape a
colored map onto a relief map could be called x.shaded.relief,
x.shadedrelief, or something like that.

That’s an interesting option. I’m not sure if I like it but it’s worth
exploring. If we go even further we get:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

… along with:

  • r.blend

Yes, I like this list better than the current names of discussed modules.

So, if you like it, I can like it too and I will change it hopefully soon. Just to be sure: including r.shaded.relief → r.relief?

Vaclav

Markus

Vaclav,

Please see below

···

On Sun, Nov 30, 2014 at 11:37 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

My thinking was that a relief map simulates the appearance of topographic relief through the use of ‘hill shading’ (to use the ESRI term).

BTW, hill shading is not as bad term as other ESRI terms, the main problems is that it is really just ESRI term. It seems to me that nobody else is using it.

You can “shade” the relief map made with r.relief or other psuedo relief maps, like an aspect map (can you shade a slope map in this way? Not sure what it would tell you visually) with a color map of some kind (hence r.shaded.relief). Or you can “drape” the color map over the relief map—perhaps “r.color.drape”.

I’m not sure if I follow the first part. But I don’t like the drape think as a name and as a parameter (d.shade has now drapemap, I would like to get rid of it). I know what drape would mean with 3D surface (e.g. in NVIZ) but I have no idea what this mean with elevation and its shade. It always seems to me that I’m draping the shade over the elevation (as it would draping do in 3D) but it is the other way around.

Slope shading or whatever we want to call it is possible in some way. Higher slopes are darker.

r.colors -n -e map=slope color=grey
d.shade drapemap=elevation reliefmap=slope brighten=99

See also “red relief image maps” [1] but slope is there used as color, not shade. I’ll try to add both examples to manual some time later.

[1] https://groups.google.com/forum/?hl=en#!searchin/lastools/grass/lastools/_Zv6ublzeSE/SRCa_WQ8gusJ

There are other kinds of image fusion for sure. The goal is to use names that users can easily understand. If d.shade can shade something other than a relief map of some kind, then perhaps d.shade is best. If it mainly is for shading relief maps maps, d.shaded.relief might be better.

It’s mainly for relief but it’s general. If there is no strong opposition I would stick to d.shade but yes I consider this as important because it seemed to me that it is hard find relief shading functionality in GRASS (and QGIS too actually). Nothing was backported yet.

And what about the following?

  • d.shade drapemap=elevation reliefmap=relief ## shading a slope map is not going to be useful for most people
  • d.shade color=elevation shade=relief

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 30, 2014, at 7:54 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Sun, Nov 30, 2014 at 8:12 PM, Michael Barton <Michael.Barton@asu.edu> wrote:

My idea is that changing r.shaded.relief → r.relief allows us to use r/d.shaded.relief for relief maps that are colored by another variable (elevation, land-cover, etc).

I don’t think this would be a good idea. r.relief (former r.shaded.relief) creates “shade from the (terrain) relief”. r.shade (former r.shadedmap, and d.shade) allows to “put the shade on a colored/colorful raster” where both shade and raster can be anything. Shade can be e.g. aspect, slope or shade derived from the relief. I know this is probably clear but his was my thinking.

I didn’t though about r.shade and r.relief names before you suggested them and I’m not 100% satisfied with r.relief because it is in fact not relief but shade from relief. However, I like the new names because they are short, there is no problem with using or not using the dot between words and they are distinct from each other.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

On Nov 30, 2014, at 5:50 PM, grass-dev-request@lists.osgeo.org wrote:

From: Vaclav Petras <wenzeslaus@gmail.com>

Cc: GRASS developers list <grass-dev@lists.osgeo.org>

To: Markus Neteler <neteler@osgeo.org>

Date: November 30, 2014 at 5:31:35 PM MST

Subject: Re: [GRASS-dev] [GRASS-SVN] r62845 - in grass/trunk/scripts: . d.shadedmap r.shadedmap


grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Sat, Nov 29, 2014 at 9:43 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

Done in r63305 with few other improvements.

Now I’m not sure with [rd].shade parameters. reliefmap and drapemap are not particularly explanatory. My idea was shade and color which is better when shade=slope compared to relief=slope. color=elevation is also quite understandable but of course it is quite unexpected that the color option is a raster map.

There is also one detail I’m not sure about. r.relief might be now missing one keyword and that is “shaded relief”. “relief” should be there too but having also “shaded relief” distinguishes it from things like “local relief (model)”.

http://trac.osgeo.org/grass/changeset/63305

On Sat, Nov 29, 2014 at 9:30 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Sat, Nov 29, 2014 at 12:37 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Nov 28, 2014 at 5:40 PM, Michael Barton <Michael.Barton@asu.edu>
wrote:

Probably nothing to be done about this since r.shaded.relief goes back a
long time. But a more sensible renaming would have the script now called
r.chaded.relief renamed to simply r.relief. Then the modules that drape a
colored map onto a relief map could be called x.shaded.relief,
x.shadedrelief, or something like that.

That’s an interesting option. I’m not sure if I like it but it’s worth
exploring. If we go even further we get:

r.shaded.relief → r.relief
r.shadedmap → r.shade
d.shadedmap → d.shade

… along with:

  • r.blend

Yes, I like this list better than the current names of discussed modules.

So, if you like it, I can like it too and I will change it hopefully soon. Just to be sure: including r.shaded.relief → r.relief?

Vaclav

Markus