Skip to content

Commit

Permalink
limit attributes for tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Barker committed Mar 26, 2021
1 parent 94b9b31 commit d4842b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo/exactEarth/Ship_Tracks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"t2 = np.datetime64('2019-08-31T00:00:00')\n",
"\n",
"with tiledb.SparseArray(tiledb_mmsi_uri) as arr:\n",
" pts = arr.multi_index[t1:t2, 308371000]\n",
" pts = arr.query(attrs=['latitude', 'longitude']).multi_index[t1:t2, 308371000]\n",
"\n",
"print(f\"Retrieved {len(pts['longitude'])} points\")\n",
" \n",
Expand Down

0 comments on commit d4842b8

Please sign in to comment.