Skip to content

Matching coordinates of glaciers with OGGM data #67

Open
@facusapienza21

Description

@facusapienza21

I am trying to retrieve the exact latitude and longitude of the different glaciers but I am having some degrees of latitude/longitude discrepancies and I am not sure why...

Right now, the glacier_grid (defined here) includes some information of how to compute the latitude/longitude based on UTC projections.

Image

As it was explained by @fmaussion in the OGGM Slack (message in support the 15th Jan 2023), "the glacier directories are in a Transverse Mercator map projection centered on the glacier. It's exactly the same as UTM, but with slightly different project parameters for each glacier."

I am trying to recover the exact coordinates based on this logic using Geodesy.jl, but I am not having much success. Here an example with Bossons glacier (RGI60-11.00773). Using the central latitude and longitude obtained from glacier_grid,

using Geodesy

x_bossom = UTMZ(-682.471, 5.1912e6, 0.0, 31,true)

tm = Geodesy.TransverseMercator(WGS84)

x₀ = 10.1335
x = -682.471
y = 5.1912e6

Geodesy.transverse_mercator_reverse(x₀, x, y , 0.9996, tm)
# Returns latitude=46.87433853329805, longitude=10.124544115391744

(the actual coordines for Bossons should be latitude~=45.86, longitude~=6.86)

I would like to include this data in Glacier2D or create a simple function that allows to recover latitude and longitude from it.

@albangossard @JordiBolibar by any chance did you encounter a similar problem when doing this? I don't think @JordiBolibar and I encounter this problem before, since we never really needed the exact latitudes and longitudes at each pixel.

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions