Skip to content

Commit

Permalink
add intake based access to tile_urls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelaye committed Jun 21, 2019
1 parent 6d3dd89 commit 2ab946a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p4tools/markings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from math import cos, degrees, pi, radians, sin, tau
from pathlib import Path

import intake
import matplotlib.lines as lines
import numpy as np
import pandas as pd
Expand Down Expand Up @@ -85,7 +86,7 @@ def __init__(self, data, scope='planet4', with_center=False, url_db='', **kwargs

@property
def subframe(self):
urls = pd.read_csv(self.url_db).set_index('tile_id').squeeze()
urls = intake.cat.planet4.tile_urls.read().set_index('tile_id').squeeze()
url = urls.at[self.data.tile_id]
return io.get_subframe(url)

Expand Down

0 comments on commit 2ab946a

Please sign in to comment.