locationencoder icon indicating copy to clipboard operation
locationencoder copied to clipboard

decode back to lat-lon from SH

Open miquel-espinosa opened this issue 6 months ago • 0 comments

Hi, I wanted to ask if it is possible to go back to the original lonlat once these have been embedded. For example:

sh = SphericalHarmonics(legendre_polys=20)
embedded_lonlat = sh(lonlat) 

And now being able to retrieve lonlat from embedded_lonlat

original_lonlat = reverse_sh(embedded_lonlat) # Is this possible?

Thanks in advance,

miquel-espinosa avatar Jul 10 '25 11:07 miquel-espinosa