Releases: cyschneck/centerline-width
1.0.0 - Full Release of centerline-width Functionality
Feature in Alpha Release:
Convert raw data from Google Earth Pro to CSV
- extractPointsToTextFile()
- convertColumnsToCSV()
Find centerline and width of river
- plotCenterline()
- plotCenterlineWidth()
- riverWidthFromCenterline()
- centerlineVoronoi
- centerlineEqualDistance
- centerlineEvenlySpaced
- centerlineSmoothed
- centerlineLength
- rightBankLength
- leftBankLength
Export centerline to .CSV and .MAT files
- saveCenterlineCSV()
- saveCenterlineMAT()
Centerline | Centerline with Width Lines |
---|---|
Pytests: 180 test
plotCenterline() options, plotCenterlineWidth() width fix
New Features:
plotCenterline()
- centerline_type option to graph ("Voronoi", "Evenly Spaced", "Smoothed", "Equal Distance")
- marker_type option to graph (scatter/line)
- centerline_color option (matplotlib color options)
riverCenterline()
- ellipsoid option to convert degrees to meters
plotCenterlineWidth()
- Replace haversine package with geopy
- Remove unit options (will generate distances in km)
- Fix to prevent lines from being generated outside the polygon
Bug fixes and README.md edits
Pytests: 180 test
centerlineEqualDistance, saveCenterlineMAT, latitude_header/longitude_header
New Features:
centerlineEqualDistance
- New centerline type that represents equal distances from each points (set by user) and accounts for the radius of the Earth to convert from degrees to meters
- Set by equal_distance optional argument in riverCenterline (defaults to 10 meters)
- Can be saved in saveCenterlineMAT() and saveCenterlineCSV() as
centerline_type="Equal Distance"
saveCenterlineMAT
- Save centerline values to a .mat file
latitude_header and longitude_header for saveCenterlineMAT and saveCenterlineCSV
- new options to set the header values for the latitude and longtiude in the output file by the user
Bug fixes and README.md edits
Pytests: 166 tests
Bug Fixes: Width Centerline
Bug fixes for returning the width based on centerline
User Warnings When Using Smoothed Centerline
User warning if smoothed coordinates need to use interpolate_n_centerpoints (useful for narrow rivers with sparse data)
Example Error: WARNING: Partially invalid smoothed centerline due to sparse centerline data (6 points lie outside the polygon), fix recommendation: rerun riverCenterline to create river object with interpolate_n_centerpoints set to 62+
Include new centerline-width logo
Updated README.md example images and descriptions
Bug fixes
Access Specific Types of Centerline
New function calls to access centerline types
- centerlineVoronoi
- centerlineEvenlySpaced
- centerlineSmoothed
- saveCenterlineCSV()
Clean up cluttered graphs with fewer items
- Clean up plots on README.md
Bug fixes: Smoothed centerline accesses evenly spaced centerlines
Display Suggestions for Invalid Polygon
- check if invalid polygon due to flipped banks, display suggestions:
Invalid Polygon Due to Flipped Banks, fix recommendation: rerun convertColumnsToCSV() and set flipBankDirection=True (or reset to default 'False' if currently set to flipBankDirection=True)
- Error handling when left_kml==right_kml
- Bug fixes, remove redundant code and spelling errors
Bug Fixes
River Class Object and interpolate_data argument
Rework functions to work through a riverCenterlineClass object with new argument to interpolate_data to fix jagged edges and gaps that can form in narrow rivers with sparse data
Convert raw data from Google Earth Pro to CSV
- extractPointsToTextFile()
- convertColumnsToCSV()
Find centerline and width of river
- plotCenterline()
- plotCenterlineWidth()
- riverWidthFromCenterline()
- centerlineLatitudeLongtiude
- centerlineLength
- rightBankLength
- leftBankLength
Beta Release: extract data and generate centerline/width
Beta Release for existing functions:
Convert raw data from Google Earth Pro to CSV
- extractPointsToTextFile()
- convertColumnsToCSV()
Find centerline and width of river
- centerlineLatitudeLongitude()
- plotCenterline()
- plotCenterlineWidth()
- riverWidthFromCenterline()