Comments (2)
hi @evecchi , I remember there was another issue where someone was loading the geojson in QGIS/Arc, cleaning it up and wanted to continue with the cleaned geometry. I'll flag it as an enhacement. I would suggest that you add a section where you do the follow:
- read the output.pkl file and your cleaned .geojson shorelines (named by date?) with
gdf = gpd.read_file(filename_geojson)
- then in the output dictionary for each date replace the 'shorelines' numpy array with the coordinates of your geojson
np.array(gdf.iloc[0].geometry.coords)
. Make sure that the index is matching with the right date. Then you can save output.pkl again and continue with the notebook.
While writing this I'm realising that it may be much easier to bring in your polygon shapefile with geopandas and then clip all the shoreline points based on the polygon. Have a go at either option and let me know if you need help, should be feasible. Also make sure that the coordinate system is not altered when going in and out of QGIS/Arc.
from coastsat.
Hi @kvos,
thank you for the advice!
The first method is working!!!
from coastsat.
Related Issues (20)
- error while downloading HOT 6
- Tidal correction bug in example.py HOT 9
- Transect issues HOT 8
- Question: Why is ` n_intersect[i] = len(xy_rot[0, :])` used instead of `n_intersect[i] = np.sum(~np.isnan(xy_rot[0, :]))` in `compute_intersection_QC` HOT 3
- SDS_preprocess issue HOT 9
- Nan values in cross distance HOT 4
- the change of slope HOT 2
- Unable to download images HOT 2
- CRSError: Invalid projection: EPSG:32756: (Internal Proj Error: proj_create: no database context specified) HOT 2
- Is it acceptable to use L7 data? HOT 4
- Manual removal of images HOT 3
- AI-generated code refactor HOT 8
- SDS_preprocess reference shoreline numpy error HOT 12
- RefreshError: ('invalid_scope: Bad Request', {'error': 'invalid_scope', 'error_description': 'Bad Request'}) HOT 3
- [Depreciation Warning] : landsat_c1_to_c2 HOT 4
- Add an automatic mode in SDS_shoreline.extract_shorelines HOT 1
- Correct FFMPEG WRITER_WARNING on SDS_tools.make_animation_mp4
- Reproducibility HOT 4
- UTC time zone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coastsat.