Open sugizo opened 2 months ago
terrain = decode_ele(terrarium, 'mapbox')
Well this is wrong. You're decoding a terrarium-encoded file as if it were encoded with mapbox encoding
terrarium.png result is expected when set decode to terrarrium
first post st_helens is decode using 'mapbox'
this are try to decode st_helens using 'terrarium'
still not expected for st_helens.png
best regards
The St Helens file came from Mapbox, and so that should be loaded with "mapbox"
decoding.
From your screenshot, the mesh from St Helens looks flat. You should be able to easily get the elevations of each vertex in the mesh and use numpy to get min/max values. Can you do that and verify that those min/max values are in the range of Mt. St. Helens?
I would not be surprised if the error is in the conversion to meshio, not in my code. I never had an issue like this with pydelatin or with pymartini in production.
how to get the elevations of each vertex in the mesh and use numpy to get min/max values ?
thanks and best regards
env google colab
steps
code
result
![Screenshot 2024-05-10 095533](https://github.com/kylebarron/pydelatin/assets/2418295/5953ae87-ca1f-48b3-9125-08fe00dbee89)
expected result elevation is show accurately like mt_fuji.png in your github test data![image](https://github.com/kylebarron/pydelatin/assets/2418295/e5086ff3-a523-435a-bc3d-b38d3df2ac1a)
best regards