ECOv002-calval-tables 1.1.0__py3-none-any.whl → 1.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ECOv002_calval_tables/ECOv002_calval_tables.py +14 -25
- {ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/METADATA +1 -1
- {ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/RECORD +6 -6
- {ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/WHEEL +0 -0
- {ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import os
|
|
1
2
|
|
|
3
|
+
import numpy as np
|
|
2
4
|
import pandas as pd
|
|
3
|
-
import os
|
|
4
5
|
import geopandas as gpd
|
|
6
|
+
|
|
5
7
|
from shapely.geometry import Point
|
|
6
8
|
|
|
7
9
|
def load_combined_eco_flux_ec_filtered() -> pd.DataFrame:
|
|
@@ -40,36 +42,23 @@ def load_calval_table() -> gpd.GeoDataFrame:
|
|
|
40
42
|
gpd.GeoDataFrame: Combined GeoDataFrame of EC flux data and site metadata for validation analysis.
|
|
41
43
|
"""
|
|
42
44
|
tower_locations_gdf = load_metadata_ebc_filt()
|
|
43
|
-
tower_IDs = list(tower_locations_gdf["Site ID"])
|
|
44
|
-
tower_names = list(tower_locations_gdf.Name)
|
|
45
|
-
tower_geometries = tower_locations_gdf.geometry
|
|
46
45
|
tower_data_df = load_combined_eco_flux_ec_filtered()
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
"ID": tower_IDs,
|
|
50
|
-
"name": tower_names,
|
|
51
|
-
"geometry": tower_geometries
|
|
52
|
-
}, crs="EPSG:4326")
|
|
53
|
-
|
|
54
|
-
observation_tower_IDs = list(tower_data_df.ID)
|
|
55
|
-
observation_tower_times_UTC = tower_data_df.eco_time_utc
|
|
56
|
-
|
|
57
|
-
model_inputs_df = pd.DataFrame({
|
|
58
|
-
"ID": observation_tower_IDs,
|
|
59
|
-
"time_UTC": observation_tower_times_UTC
|
|
60
|
-
})
|
|
61
|
-
|
|
47
|
+
# Merge all columns from both tables, matching tower_data_df.ID to tower_locations_gdf["Site ID"]
|
|
62
48
|
merged_df = pd.merge(
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
tower_data_df,
|
|
50
|
+
tower_locations_gdf,
|
|
65
51
|
left_on="ID",
|
|
66
|
-
right_on="ID",
|
|
67
|
-
how="left"
|
|
52
|
+
right_on="Site ID",
|
|
53
|
+
how="left",
|
|
54
|
+
suffixes=("", "_meta")
|
|
68
55
|
)
|
|
69
56
|
|
|
57
|
+
merged_df["time_UTC"] = merged_df["eco_time_utc"]
|
|
58
|
+
merged_df["ST_K"] = np.array(merged_df.LST)
|
|
59
|
+
merged_df["ST_C"] = merged_df.ST_K - 273.15
|
|
60
|
+
merged_df["Ta_C"] = np.array(merged_df.Ta)
|
|
61
|
+
|
|
70
62
|
# Convert merged DataFrame to GeoDataFrame
|
|
71
63
|
gdf = gpd.GeoDataFrame(merged_df, geometry=merged_df["geometry"], crs="EPSG:4326")
|
|
72
|
-
# Optionally, drop rows with missing geometry if needed:
|
|
73
|
-
# gdf = gdf[gdf.geometry.notnull()]
|
|
74
64
|
return gdf
|
|
75
|
-
return gdf
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ECOv002-calval-tables
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Priestley-Taylor Jet Propulsion Laboratory Soil Moisutre Evapotranspiration Model
|
|
5
5
|
Author-email: Gregory Halverson <gregory.h.halverson@jpl.nasa.gov>, Zoe Pierrat <zoe.a.pierrat@jpl.nasa.gov>
|
|
6
6
|
Project-URL: Homepage, https://github.com/gregory-halverson/ECOv002-calval-tables
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
ECOv002_calval_tables/ECOv002_calval_tables.py,sha256=
|
|
1
|
+
ECOv002_calval_tables/ECOv002_calval_tables.py,sha256=h-F6g5wdgtMrWAR7aMo4apVai-kkgih_m0HcqYL5D3E,2572
|
|
2
2
|
ECOv002_calval_tables/__init__.py,sha256=oO0pVascuJs247UwpXq2o23wQPThM1bWEwUhSYiNzMY,60
|
|
3
3
|
ECOv002_calval_tables/combined_eco_flux_EC_filtered.csv,sha256=uSRv1CBMJKUWBgtMlRHB1359kiUFUL1ez2c4m7C4DxU,745225
|
|
4
4
|
ECOv002_calval_tables/metadata_ebc_filt.csv,sha256=74AeCH5DG2Zu8ZFBXUZAW95hlsCjK9K3t6BWRRReR3s,13975
|
|
5
5
|
ECOv002_calval_tables/version.py,sha256=DOnf2BIAf7HAp9SIUIetrDgRoZDL0o7JuKSiC7_ZT_I,87
|
|
6
|
-
ecov002_calval_tables-1.
|
|
7
|
-
ecov002_calval_tables-1.
|
|
8
|
-
ecov002_calval_tables-1.
|
|
9
|
-
ecov002_calval_tables-1.
|
|
10
|
-
ecov002_calval_tables-1.
|
|
6
|
+
ecov002_calval_tables-1.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
7
|
+
ecov002_calval_tables-1.2.0.dist-info/METADATA,sha256=WhXeX4uCPfEbGLXZUfgxD6n4UWW51fMoq5vU_m4HQQE,3171
|
|
8
|
+
ecov002_calval_tables-1.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
ecov002_calval_tables-1.2.0.dist-info/top_level.txt,sha256=ePbA84g_XQHWQUAQEVo6gmyuW0WLUzPg2IfHyoGqUqg,22
|
|
10
|
+
ecov002_calval_tables-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
{ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{ecov002_calval_tables-1.1.0.dist-info → ecov002_calval_tables-1.2.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|