You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Deleting old functions in seabed_tools that are unused nowadays (getPlotBounds, getCoast, getDepthFromBathymetryMesh)
- - convertLatLong2Meters - old function that has now been updated in geography
- - processASC - basically the old version of getMapBathymetry - also in geography
- Merging writeBathymetryFile functions between seabed_tools and geography
- processGeoTiff now moved to geography since it deals with processing geographic-related information
# lats data provided from top left corner, i.e., latitudes are descending. It seems that the following interpolation functions (getDepthFromBathymetry)
470
+
# can only work if latitudes start small and increase, meaning that the first latitude entry has to be the bottom left corner
471
+
472
+
# Depth values in numpy array form
473
+
depths=-tiff.read(1)
474
+
depths=np.flipud(depths)
475
+
# because the interpolation functions require the latitude array to go from small to big (i.e., the bottom left corner), we need to flip the depth matrix to align
476
+
# it will all get sorted out later to what it should be geographically when plotting in MoorPy
477
+
478
+
479
+
# extract the coordinate reference systems needed (pyproj CRS objects)
480
+
latlong_crs=tiff.crs
481
+
#target_crs = getTargetCRS(lon, lat) # should be UTM 10N for Humboldt/California coast
482
+
target_crs=getCustomCRS(lon, lat) # get custom CRS centered around the lat/long point you want
483
+
484
+
# get the centroid/reference location in lat/long coordinates
485
+
centroid= (lon, lat)
486
+
487
+
# get the centroid/reference location in target_crs coordinates
0 commit comments