I have a raster (GeoTIFF) of number of people per pixel. I would like to convert this to a new raster of population per unit area. In other words, I would like to divide each value in my existing raster by the area of that pixel. The raster is given in geographic coordinates (lon./lat.), so the area of the pixels is not constant.
How can I do this in QGIS? I thought maybe pixel area would be a variable that could be accessed in the raster calculator. I could do some processing separately in Python but I am hoping there will be a more convenient approach.