Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How can I input manually mapped shorelines into high-resolution orthomosaics? #586

Open
LITIDisma opened this issue Mar 12, 2025 · 5 comments

Comments

@LITIDisma
Copy link

An orthomosaic was generated based on aerial photographs. Using QGIS, I mapped the wet-dry sand interface and would like to use that shapefile as a reference line.

Regards

@LITIDisma LITIDisma changed the title [Question] How can I input manually mapped coastlines into the program as high-resolution orthomosaics? [Question] How can I input manually mapped shorelines into high-resolution orthomosaics? Mar 12, 2025
@neon-ninja
Copy link

Hi, I had to do this too. It should be as simple as something like:

settings["reference_shoreline"] = np.array(gpd.read_file("your_shoreline.shp").geometry.iloc[0].coords)

@kvos
Copy link
Owner

kvos commented Mar 18, 2025

yes, and make sure that the shapefile is in the same coordinate system as your settings['output_epsg'] and your transects

@LITIDisma
Copy link
Author

LITIDisma commented Mar 19, 2025

@neon-ninja

And to load a shapefile of transects with slope values? it's similar? I also drew transects over a digital elevation model, so I have the specific slope for each of them along the coast, but I’m not sure if the code will use it.

@neon-ninja
Copy link

Slopes are only used during tidal correction

@neon-ninja
Copy link

Here's how I load transects

transects_at_site = transects_gdf[transects_gdf.site_id == sitename]
transects = {}
for transect_id in transects_at_site.index:
        transects[transect_id] = np.array(transects_at_site.geometry[transect_id].coords)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants