[GRASSLIST:427] Re: how to refer to cell's ,longitude latitude coordinates?

Glynn Clements glynn at gclements.plus.com
Mon Mar 27 12:56:32 EST 2006


Vishal Mehta wrote:

> I have a raster map, lat/long, 0.5 degrees resolution. I want to develop
> solar radiation and related maps maps using r.mapcalc. This requires
> refering to each cell's latitude and longitude, i.e. the equations will
> include the cell's latitude and longitude. How do i do this in GRASS? Is
> there like an intenral variable that indexes each cell's coordinates?

In r.mapcalc, the x() and y() functions return the coordinates of the
centre of the current cell.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list