mikonvergence commited on
Commit
f6113e2
·
verified ·
1 Parent(s): 5fb45b5

Update helpers/ReadAlphaEarth.py

Browse files
Files changed (1) hide show
  1. helpers/ReadAlphaEarth.py +1 -3
helpers/ReadAlphaEarth.py CHANGED
@@ -124,11 +124,9 @@ def get_product_window(lat, lon, utm_zone=4326, mt_grid_dist = 10, box_size = 10
124
 
125
  return utm_footprint, utm_crs
126
 
127
- def cell_to_aef(cell, return_centre=False, return_gridcell=False, return_timestamp=False):
128
 
129
  row, col = cell.split('_')
130
- metarow=l2a_df[l2a_df.grid_cell==cell].iloc[0]
131
- year=int(metarow.timestamp[:4])
132
 
133
  # 1. define major tom grid cell
134
  lats, lons = mt_grid.rowcol2latlon([row],[col])
 
124
 
125
  return utm_footprint, utm_crs
126
 
127
+ def cell_to_aef(cell, year, return_centre=False, return_gridcell=False, return_timestamp=False):
128
 
129
  row, col = cell.split('_')
 
 
130
 
131
  # 1. define major tom grid cell
132
  lats, lons = mt_grid.rowcol2latlon([row],[col])