Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Sep 19, 2023
1 parent 10995ad commit 9fd5b39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stac/stac-generator/stac-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def create_axes(axes):

if extent_match is not None:
edges = json.loads(extent_match.group(0))

crs_match = re.match(r"spatial reference\s*:\s*(.*)", dims[1])
if crs_match:
crs = crs_match.group(1)
if len(dims) >= 2:
crs_match = re.match(r"spatial reference\s*:\s*(.*)", dims[1])
if crs_match:
crs = crs_match.group(1)

if "Time" in axes.keys():
times = axes["Time"].split('\n')
Expand Down

0 comments on commit 9fd5b39

Please sign in to comment.