File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1148,19 +1148,17 @@ def __dataarray_read_item_time_func(
1148
1148
1149
1149
def extract_track (
1150
1150
self ,
1151
- track : pd .DataFrame ,
1151
+ track : str | Path | Dataset | pd .DataFrame ,
1152
1152
method : Literal ["nearest" , "inverse_distance" ] = "nearest" ,
1153
1153
dtype : Any = np .float32 ,
1154
1154
) -> "Dataset" :
1155
1155
"""Extract data along a moving track.
1156
1156
1157
1157
Parameters
1158
1158
---------
1159
- track: pandas.DataFrame
1159
+ track: pandas.DataFrame, str or Dataset
1160
1160
with DatetimeIndex and (x, y) of track points as first two columns
1161
- x,y coordinates must be in same coordinate system as dfsu
1162
- track: str
1163
- filename of csv or dfs0 file containing t,x,y
1161
+ x,y coordinates must be in same coordinate system
1164
1162
method: str, optional
1165
1163
Spatial interpolation method ('nearest' or 'inverse_distance')
1166
1164
default='nearest'
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ def _dfs_read_item_time_func(
506
506
507
507
def extract_track (
508
508
self ,
509
- track : pd .DataFrame ,
509
+ track : str | Path | Dataset | pd .DataFrame ,
510
510
items : int | str | Sequence [int | str ] | None = None ,
511
511
method : Literal ["nearest" , "inverse_distance" ] = "nearest" ,
512
512
dtype : Any = np .float32 ,
@@ -518,8 +518,6 @@ def extract_track(
518
518
track: pandas.DataFrame
519
519
with DatetimeIndex and (x, y) of track points as first two columns
520
520
x,y coordinates must be in same coordinate system as dfsu
521
- track: str
522
- filename of csv or dfs0 file containing t,x,y
523
521
items: list[int] or list[str], optional
524
522
Extract only selected items, by number (0-based), or by name
525
523
method: str, optional
You can’t perform that action at this time.
0 commit comments