Skip to content

Commit

Permalink
Merge pull request #7 from CIAT-DAPA/develop
Browse files Browse the repository at this point in the history
Updated ETL to use TAMSAT Data
  • Loading branch information
jchemutt authored Sep 4, 2024
2 parents dde71e7 + ba2594c commit 43e0763
Show file tree
Hide file tree
Showing 12 changed files with 153,267 additions and 209,566 deletions.
380 changes: 225 additions & 155 deletions src/codes/data_extraction.py

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src/codes/gwr_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@

def process_data(output_path):
data = pd.read_csv(output_path)
data['ndvi'] = data['ndvi'] * 0.0001
# Ensure correct data types
data['date'] = data['date'].astype(str)
data['ndvi'] = data['ndvi'].astype(float) * 0.0001
data['sm'] = data['sm'].astype(float)
data['preci'] = data['preci'].astype(float)
data['lon'] = data['lon'].astype(float)
data['lat'] = data['lat'].astype(float)
rows=data.shape[0]
data.replace(np.nan, 0, inplace=True)
geodf = gp.GeoDataFrame(data, geometry=gp.points_from_xy(data.lon, data.lat), crs="EPSG:4326")
Expand Down
Binary file not shown.
Binary file not shown.
Binary file added src/data/layers/biomass_et/biomass_20220218.tif
Binary file not shown.
Binary file removed src/data/layers/biomass_et/biomass_20240117.tif
Binary file not shown.
19,130 changes: 19,130 additions & 0 deletions src/outputs/combined.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 43e0763

Please sign in to comment.