CHLNDDEV / oceanmesh

Automatic coastal ocean mesh generation in Python and C++. **under development**
GNU General Public License v3.0
51 stars 15 forks source link

meshing in map projections #37

Closed krober10nd closed 3 years ago

krober10nd commented 3 years ago
krober10nd commented 3 years ago

@stefanzieger could you provide the .shx, .dbf, .prj files for the Shapefiles you used in tests you've created? I've made this more strict as now I'm adding the ability to build mesh size functions and inevitably mesh in a user-defined map projection. Thanks.

krober10nd commented 3 years ago

If the mesh is built in a map projection, then the edge length is just the L2 norm of the two sides of the edge.

I don't see too much of a problem with this because edge lengths are typically < 10 km which is relatively short for large distortions.

krober10nd commented 3 years ago

Note, there are no more wild print statements.

You can turn on logging to (by default) stdout like this at the top of your script:

 import logging
 import sys

logging.basicConfig(stream=sys.stdout, level=logging.WARNING)
# logging.basicConfig(stream=sys.stdout, level=logging.INFO)
# logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
WPringle commented 3 years ago

I think this will be good to go to merge in, once we get those .shx,.dpf,.prj shapefiles for the test_rect.py and test_circ.py tests from @stefanzieger