r.latlong(1)

πŸ’– r.latlong β€” bestie, it's giving GRASS GIS User's Manual energy πŸ’–

okay so welcome to the r.latlong(1) era ✨ this is the manual page for a lil GRASS GIS module that creates a latitude/longitude raster map. that's it. that's the whole vibe. but like, in a slay way πŸŽ€


✨ NAME ✨

r.latlong β€” creates a latitude/longitude raster map. yes literally that. it makes one. for you. πŸ’…


πŸ¦‹ KEYWORDS πŸ¦‹

raster, latitude, longitude, projection β€” that's the tag cloud bestie, those are the searchable keywords iykyk


🌸 SYNOPSIS 🌸

here's how you actually call it, no notes:

r.latlong
r.latlong --help
r.latlong [-l] input=name output=name  [--overwrite]  [--help]
[--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags πŸŽ€

  • -l β€” longitude output. so like, if you want longitude instead of latitude? this is the flag. without it you get latitude. periodt.
  • --overwrite β€” allow output files to overwrite existing files. (the "no thoughts, just replace" option 😭)
  • --help β€” print usage summary. the classic "wait what does this do" button 🫢
  • --verbose β€” verbose module output. it will talk to you.
  • --quiet β€” quiet module output. it will NOT talk to you.
  • --ui β€” force launching GUI dialog. for the visual girlies πŸ’…

🌈 Parameters 🌈

  • input=name [required] β€” name of input raster map. you gotta give it something, bestie, it's required, no cap.
  • output=name [required] β€” name for output latitude or longitude raster map. also required. also no cap. you name your baby πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

okay so r.latlong creates a latitude (degree decimal) map β€” or a longitude map if you use the -l flag β€” from any map in any projection, using the PROJ library. any projection. ANY. iconic behavior honestly πŸ”₯

and it's not just decorative β€” this output is an input to r.sun and i.evapo.potrad. so it's a whole supporting character with main character energy ✨


⭐ NOTES ⭐

the PROJ website. that's the note. that's it. go look at it if you want πŸ¦‹


😭 TODO 😭

Datum transform is not implemented, the same datum is taken as output.

so like. heads up. the datum transform? not implemented. not a thing yet. it just takes the same datum as the output. don't come for me, I'm just the messenger πŸ’€


🌸 EXAMPLE 🌸

here's the whole little ritual, copy-paste coded:

g.region raster=elevation -p
r.latlong input=elevation output=latitude

set your region, then boom β€” latitude map. ate. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

  • r.sun
  • r.sunhours

go read those too, they're the cousins 🫢


πŸ’– AUTHOR πŸ’–

Yann Chemin, International Rice Research Institute, The Philippines 🌾 literally built different


πŸŽ€ SOURCE CODE πŸŽ€

Available at: r.latlong source code (history)

Accessed: Saturday Jan 17 05:40:49 2026

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index


and that's the page bestie πŸ’œ mwah. this was GRASS GIS 8.4.2 Reference Manual territory, Β© 2003-2025 GRASS Development Team, and the footer was serving GRASS 8.4.2, r.latlong(1) β€” that's a wrap, go make some raster maps πŸŒˆβœ¨πŸŽ€

πŸ“¦ where this page comes from