0

I am trying to understand GRASS GIS to model the transport of solute.

I followed the example of the GrassGIS manual and set up a region within a XY projection. I also used r.mapcalc to generate a raster map. Now I want to display the raster map. But when I execute

"d.rast map=phead@PERMANENT bgcolo=red"

the console shows

"GRASS_INFO_ERROR(18956,1): Field <zone> missing                                 
GRASS_INFO_END(18956,1)".

Well, how do I display the raster map?

4
  • What do you get if you run "r.report map=phead@PERMANENT" for example? Just to see if there is an issue with the raster.
    – humperderp
    Oct 27, 2020 at 9:46
  • 1
    Try a d.erase, then again d.rast map=phead@PERMANENT bgcolor=red
    – markusN
    Oct 27, 2020 at 20:49
  • 1
    Thank you markusN, now it works.
    – NilsG
    Oct 28, 2020 at 13:25
  • (I have written it up as a regular answer, feel free to accept it)
    – markusN
    Oct 30, 2020 at 10:07

1 Answer 1

1

The reason is that the GRASS GIS display monitor remembers the list of maps which you have displayed. In your case, one map may no longer exist while the monitor doesn't "know" that.

Solution:

Run d.erase to clean the list of maps in the monitor.

Then run again d.rast map=phead@PERMANENT bgcolor=red.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.