Skip to content

Commit

Permalink
FIX: Forgot to remove 0 index.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Apr 11, 2024
1 parent 266c16c commit c380a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions act/io/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def read_neon_csv(files, variable_files=None, position_files=None):
dloc = loc_df.loc[loc_df['HOR.VER'] == hor_loc + '.' + ver_loc]
idx = dloc.index.values
if len(idx) > 0:
ds['lat'] = xr.DataArray(data=np.float64(loc_df['referenceLatitude'].values[idx][0]))
ds['lon'] = xr.DataArray(data=np.float64(loc_df['referenceLongitude'].values[idx][0]))
ds['alt'] = xr.DataArray(data=np.float64(loc_df['referenceElevation'].values[idx][0]))
ds['lat'] = xr.DataArray(data=np.float64(loc_df['referenceLatitude'].values[idx]))
ds['lon'] = xr.DataArray(data=np.float64(loc_df['referenceLongitude'].values[idx]))
ds['alt'] = xr.DataArray(data=np.float64(loc_df['referenceElevation'].values[idx]))
variables = [
'xOffset',
'yOffset',
Expand Down

0 comments on commit c380a88

Please sign in to comment.