|
15 | 15 | from shapely.geometry import LineString, asShape |
16 | 16 | import xarray as xr |
17 | 17 |
|
18 | | -from ..cli import starcall |
19 | | -from ..tileio import as_window |
20 | | -from ..config import ( |
| 18 | +from fct.cli import starcall |
| 19 | +from fct.tileio import as_window |
| 20 | +from fct.config import ( |
21 | 21 | DatasetParameter, |
22 | 22 | LiteralParameter |
23 | 23 | ) |
24 | | -from ..corridor.ValleyBottomFeatures import MASK_VALLEY_BOTTOM |
25 | | -from ..metadata import set_metadata |
26 | | -# from ..plotting.PlotCorridor import ( |
| 24 | +from fct.corridor.ValleyBottomFeatures import MASK_VALLEY_BOTTOM |
| 25 | +from fct.metadata import set_metadata |
| 26 | +# from fct.plotting.PlotCorridor import ( |
27 | 27 | # SetupPlot, |
28 | 28 | # SetupMeasureAxis, |
29 | 29 | # FinalizePlot |
@@ -152,7 +152,7 @@ def arguments(): |
152 | 152 | with fiona.open(talweg_shapefile) as fs: |
153 | 153 | for feature in fs: |
154 | 154 |
|
155 | | - axis = feature['properties']['AXIS'] |
| 155 | + axis = int(feature['properties']['AXIS']) |
156 | 156 | talweg = np.asarray(feature['geometry']['coordinates']) |
157 | 157 |
|
158 | 158 | yield ( |
@@ -187,7 +187,7 @@ def TalwegElevation(params: Parameters, processes: int = 6, **kwargs) -> xr.Data |
187 | 187 | with click.progressbar(fs) as iterator: |
188 | 188 | for feature in iterator: |
189 | 189 |
|
190 | | - axis = feature['properties']['AXIS'] |
| 190 | + axis = int(feature['properties']['AXIS']) |
191 | 191 | talweg = np.asarray(feature['geometry']['coordinates']) |
192 | 192 | axis_values = extract_talweg_data(axis, talweg, params) |
193 | 193 | values.append(axis_values) |
|
0 commit comments