[GRASS5] nviz defaults

I posted this to the GRASS list, but thought I might give this list a shot as well…
I am limited in my tcl/tk programming experience…and am looking for a way to change the defaults in some of the NVIZ menus. My problem is that I am trying to display a vector only on a raster with value=0, and overlaying a raster of actual data values. The problem is that each time I use draw, the “display on surface(s):” is reset to default, which has all surfaces chosen…and I would like to change this so that I am forced to choose…
can someone help?? Thanks…

-- 
        LTJG Kevin Slover,NOAA   GIS Specialist/Meteorologist/Oceanographer 
              Tropical Prediction Center/National Hurricane Center
                    11691 SW 17th Street Miami FL 33165
                 Work: (305) 229-4456 Fax : (305) 553-1264

Kevin Slover wrote:

I posted this to the GRASS list, but thought I might give this list a
shot as well...
I am limited in my tcl/tk programming experience...and am looking for
a way to change the defaults in some of the NVIZ menus. My problem is
that I am trying to display a vector only on a raster with value=0,
and overlaying a raster of actual data values. The problem is that
each time I use draw, the "display on surface(s):" is reset to
default, which has all surfaces chosen...and I would like to change
this so that I am forced to choose...
can someone help?? Thanks....

--
        LTJG Kevin Slover,NOAA GIS Specialist/Meteorologist/Oceanographer
              Tropical Prediction Center/National Hurricane Center
                    11691 SW 17th Street Miami FL 33165
                 Work: (305) 229-4456 Fax : (305) 553-1264

Markus, Bob,

can you confirm this for the latest version of NVIZ - I have this
problem too, it appears to be a bug,
it can get pretty tough to deal with - I had 7 surfaces and wanted to
drape vectors only on a single one
and it always got it back to draping it on all, so after each redraw I
had to switch the drape on the 6 surfaces.

Also when looking at drapingwould it be easy enough to have it drape the
vectors a little bit above the surfce -
it would be invisible but it would ensure that the lines are all visible
(in SG3d it was an option )

thank you

Helena

Helena Mitasova wrote:

Kevin Slover wrote:

> I posted this to the GRASS list, but thought I might give this list a
> shot as well...
> I am limited in my tcl/tk programming experience...and am looking for
> a way to change the defaults in some of the NVIZ menus. My problem is
> that I am trying to display a vector only on a raster with value=0,
> and overlaying a raster of actual data values. The problem is that
> each time I use draw, the "display on surface(s):" is reset to
> default, which has all surfaces chosen...and I would like to change
> this so that I am forced to choose...
> can someone help?? Thanks....
>
> --
> LTJG Kevin Slover,NOAA GIS Specialist/Meteorologist/Oceanographer
> Tropical Prediction Center/National Hurricane Center
> 11691 SW 17th Street Miami FL 33165
> Work: (305) 229-4456 Fax : (305) 553-1264
>
>

Markus, Bob,

can you confirm this for the latest version of NVIZ - I have this
problem too, it appears to be a bug,
it can get pretty tough to deal with - I had 7 surfaces and wanted to
drape vectors only on a single one
and it always got it back to draping it on all, so after each redraw I
had to switch the drape on the 6 surfaces.

Also when looking at drapingwould it be easy enough to have it drape the
vectors a little bit above the surfce -
it would be invisible but it would ensure that the lines are all visible
(in SG3d it was an option )

thank you

Helena

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

Helena, Kevin;

I just checked my version of NVIZ for the situation you describe.

When a vector is loaded it is automatically set to draw on all available
surfaces. You can however go into the vector menu (Panels -> Vectors)
and change this. From the vector menu select the vector file in question
(there is a pull-down menu beside "Current: ". With the vector selected
you will see a list of "Display on Surface(s)". From there you should
be able to turn off the surfaces you do not want the vector displayed
on. The check button should be "un" highlighted to turn the surface off.

If this feature is not working for you then we definitely have a
problem.

Hopefully I have not misunderstood the problem.
--
Bob Covill

Tekmap Consulting
P.O. Box 2016 Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498

Bob,
What you are describing I understand...in further exploration...I discovered that
each time the vector menu was refreshed (i.e. switched between vector to raster to
vector)..the vector would automatically be displayed on all surfaces present. Try
this:
open two rasters..then open a vector...change the display on surface to only
display on one of the rasters. Now, simply refresh the vector menu (i.e. choose
vectors under the Panel menu) and see if both rasters are chosen under display on
surface...it appears as if each time the vector menu script is invoked, it changes
to the defaults (i.e. all surfaces chosen).

This, on a different issue, to the whole grass list:
when first displaying a raster at times, it is not properly displayed. It is not
exaggerated right and most of the times does not even display in the window. I can
usually get around this by pushing the reset button. however, it appears that if
you have more than one raster open it will hang up...

Bob Covill wrote:

Helena Mitasova wrote:
>
> Kevin Slover wrote:
>
> > I posted this to the GRASS list, but thought I might give this list a
> > shot as well...
> > I am limited in my tcl/tk programming experience...and am looking for
> > a way to change the defaults in some of the NVIZ menus. My problem is
> > that I am trying to display a vector only on a raster with value=0,
> > and overlaying a raster of actual data values. The problem is that
> > each time I use draw, the "display on surface(s):" is reset to
> > default, which has all surfaces chosen...and I would like to change
> > this so that I am forced to choose...
> > can someone help?? Thanks....
> >
> > --
> > LTJG Kevin Slover,NOAA GIS Specialist/Meteorologist/Oceanographer
> > Tropical Prediction Center/National Hurricane Center
> > 11691 SW 17th Street Miami FL 33165
> > Work: (305) 229-4456 Fax : (305) 553-1264
> >
> >
>
> Markus, Bob,
>
> can you confirm this for the latest version of NVIZ - I have this
> problem too, it appears to be a bug,
> it can get pretty tough to deal with - I had 7 surfaces and wanted to
> drape vectors only on a single one
> and it always got it back to draping it on all, so after each redraw I
> had to switch the drape on the 6 surfaces.
>
> Also when looking at drapingwould it be easy enough to have it drape the
> vectors a little bit above the surfce -
> it would be invisible but it would ensure that the lines are all visible
> (in SG3d it was an option )
>
> thank you
>
> Helena
>
> _______________________________________________
> grass5 mailing list
> grass5@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5

Helena, Kevin;

I just checked my version of NVIZ for the situation you describe.

When a vector is loaded it is automatically set to draw on all available
surfaces. You can however go into the vector menu (Panels -> Vectors)
and change this. From the vector menu select the vector file in question
(there is a pull-down menu beside "Current: ". With the vector selected
you will see a list of "Display on Surface(s)". From there you should
be able to turn off the surfaces you do not want the vector displayed
on. The check button should be "un" highlighted to turn the surface off.

If this feature is not working for you then we definitely have a
problem.

Hopefully I have not misunderstood the problem.
--
Bob Covill

Tekmap Consulting
P.O. Box 2016 Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--
LTJG Kevin Slover, NOAA
GIS Specialist/Meteorologist/Oceanographer
Tropical Prediction Center / Technical Support Branch
11691 SW 17th St Miami FL 33165
(W) 305-229-4456 (F) 305-553-1264

Kevin Slover wrote:

Bob,
What you are describing I understand...in further exploration...I discovered that
each time the vector menu was refreshed (i.e. switched between vector to raster to
vector)..the vector would automatically be displayed on all surfaces present. Try
this:
open two rasters..then open a vector...change the display on surface to only
display on one of the rasters. Now, simply refresh the vector menu (i.e. choose
vectors under the Panel menu) and see if both rasters are chosen under display on
surface...it appears as if each time the vector menu script is invoked, it changes
to the defaults (i.e. all surfaces chosen).

This, on a different issue, to the whole grass list:
when first displaying a raster at times, it is not properly displayed. It is not
exaggerated right and most of the times does not even display in the window. I can
usually get around this by pushing the reset button. however, it appears that if
you have more than one raster open it will hang up...

[snip]

--
LTJG Kevin Slover, NOAA
GIS Specialist/Meteorologist/Oceanographer
Tropical Prediction Center / Technical Support Branch
11691 SW 17th St Miami FL 33165
(W) 305-229-4456 (F) 305-553-1264

Kevin;

I just confirmed what you are saying. It appears that nviz does not pick
up any previously set surface settings when re-opening the vector menu.
It simply re-selects all available surfaces.

This is definitely a bug and should be cleaned up.

--
Bob Covill

Tekmap Consulting
P.O. Box 2016 Fall River, N.S.
B2T 1K6
Canada

E-Mail: bcovill@tekmap.ns.ca
Phone: 902-860-1496
Fax: 902-860-1498