r.latlong(1grass)

✨ r.latlong ✨

okay bestie, gather round, because we're talking about r.latlong(1grass) β€” the GRASS module that makes you a latitude/longitude raster map and honestly? it's giving underrated icon. πŸ’–


🌸 NAME 🌸

r.latlong β€” creates a latitude/longitude raster map πŸ—ΊοΈβœ¨


πŸ‘‘ KEYWORDS πŸ‘‘

raster, latitude, longitude, projection


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ Flags

  • -l β€” Longitude output. like, you want longitude instead of latitude? this is the girl. πŸ’…
  • --overwrite β€” Allow output files to overwrite existing files. no cap, it will just bulldoze whatever's already there.
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output
  • --quiet β€” Quiet module output
  • --ui β€” Force launching GUI dialog

πŸ“ Parameters

  • input=name [required] β€” Name of input raster map
  • output=name [required] β€” Name for output latitude or longitude raster map

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜•: r.latlong creates a latitude (degree decimal) map β€” or a longitude map if you pass the -l flag β€” from any map in any projection, and it does it using the PROJ library. literally any projection, bestie, it does not care. 🌈

and the reason you'd want this? it's an input to r.sun and i.evapo.potrad. so if you're doing solar or evapotranspiration stuff, this map is your backstage pass. 🎟️✨


πŸ“ NOTES πŸ“

The PROJ website. (yes that's the whole note. short queen. πŸ‘‘)


πŸ’€ TODO πŸ’€

Datum transform is not implemented β€” the same datum is taken as output. so, like, don't come for it about datums, it's simply not doing that rn. 🫢


πŸ”₯ EXAMPLE πŸ”₯

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

look at her go ✨ region set, latitude map made, main character energy only.


🌟 SEE ALSO 🌟

r.sun, r.sunhours


🫢 AUTHOR 🫢

Yann Chemin, International Rice Research Institute, The Philippines


πŸ’… SOURCE CODE πŸ’…

Available at: r.latlong source code (history)

Latest change: Saturday Nov 15 06:40:22 2025 in commit: e9e31a04af129ae3fcac227885cbbd77ce70d803

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

Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual


and that's the whole page, no notes πŸ’–

k bye bestie, that was r.latlong(1grass) from GRASS 8.5.0 β€” go make some latitude rasters and slay the day βœ¨πŸŒΈπŸ¦‹ periodt. πŸ’…

πŸ“¦ where this page comes from