ECOv002-calval-tables 1.0.1__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 +45 -3
- ECOv002_calval_tables/version.py +3 -0
- {ecov002_calval_tables-1.0.1.dist-info → ecov002_calval_tables-1.2.0.dist-info}/METADATA +4 -2
- ecov002_calval_tables-1.2.0.dist-info/RECORD +10 -0
- ecov002_calval_tables-1.0.1.dist-info/RECORD +0 -9
- {ecov002_calval_tables-1.0.1.dist-info → ecov002_calval_tables-1.2.0.dist-info}/WHEEL +0 -0
- {ecov002_calval_tables-1.0.1.dist-info → ecov002_calval_tables-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {ecov002_calval_tables-1.0.1.dist-info → ecov002_calval_tables-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import os
|
|
1
2
|
|
|
3
|
+
import numpy as np
|
|
2
4
|
import pandas as pd
|
|
3
|
-
import
|
|
5
|
+
import geopandas as gpd
|
|
6
|
+
|
|
7
|
+
from shapely.geometry import Point
|
|
4
8
|
|
|
5
9
|
def load_combined_eco_flux_ec_filtered() -> pd.DataFrame:
|
|
6
10
|
"""
|
|
@@ -12,11 +16,49 @@ def load_combined_eco_flux_ec_filtered() -> pd.DataFrame:
|
|
|
12
16
|
return pd.read_csv(os.path.join(os.path.dirname(__file__), 'combined_eco_flux_EC_filtered.csv'))
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
def load_metadata_ebc_filt() ->
|
|
19
|
+
def load_metadata_ebc_filt() -> gpd.GeoDataFrame:
|
|
16
20
|
"""
|
|
17
21
|
Load the metadata for the filtered eddy covariance (EC) flux sites used in the ECOSTRESS Collection 2 validation study.
|
|
18
22
|
This table provides site information (location, climate, land cover, etc.) for interpreting and grouping the flux data in the validation analysis.
|
|
19
23
|
Returns:
|
|
20
24
|
pd.DataFrame: DataFrame of site metadata for the filtered EC flux dataset.
|
|
21
25
|
"""
|
|
22
|
-
|
|
26
|
+
df = pd.read_csv(os.path.join(os.path.dirname(__file__), 'metadata_ebc_filt.csv'))
|
|
27
|
+
|
|
28
|
+
if 'Lat' not in df.columns or 'Long' not in df.columns:
|
|
29
|
+
raise ValueError("metadata_ebc_filt.csv must contain 'Lat' and 'Long' columns.")
|
|
30
|
+
|
|
31
|
+
geometry = [Point(xy) for xy in zip(df['Long'], df['Lat'])]
|
|
32
|
+
gdf = gpd.GeoDataFrame(df, geometry=geometry, crs="EPSG:4326")
|
|
33
|
+
|
|
34
|
+
return gdf
|
|
35
|
+
|
|
36
|
+
def load_calval_table() -> gpd.GeoDataFrame:
|
|
37
|
+
"""
|
|
38
|
+
Load the combined ECOSTRESS Collection 2 validation table, which includes both the filtered eddy covariance flux data
|
|
39
|
+
and the associated site metadata.
|
|
40
|
+
|
|
41
|
+
Returns:
|
|
42
|
+
gpd.GeoDataFrame: Combined GeoDataFrame of EC flux data and site metadata for validation analysis.
|
|
43
|
+
"""
|
|
44
|
+
tower_locations_gdf = load_metadata_ebc_filt()
|
|
45
|
+
tower_data_df = load_combined_eco_flux_ec_filtered()
|
|
46
|
+
|
|
47
|
+
# Merge all columns from both tables, matching tower_data_df.ID to tower_locations_gdf["Site ID"]
|
|
48
|
+
merged_df = pd.merge(
|
|
49
|
+
tower_data_df,
|
|
50
|
+
tower_locations_gdf,
|
|
51
|
+
left_on="ID",
|
|
52
|
+
right_on="Site ID",
|
|
53
|
+
how="left",
|
|
54
|
+
suffixes=("", "_meta")
|
|
55
|
+
)
|
|
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
|
+
|
|
62
|
+
# Convert merged DataFrame to GeoDataFrame
|
|
63
|
+
gdf = gpd.GeoDataFrame(merged_df, geometry=merged_df["geometry"], crs="EPSG:4326")
|
|
64
|
+
return gdf
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ECOv002-calval-tables
|
|
3
|
-
Version: 1.0
|
|
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
|
|
@@ -21,10 +21,12 @@ Requires-Dist: twine; extra == "dev"
|
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
# ECOSTRESS Collection 2 Calibration/Validation Data Tables
|
|
24
|
+
# ECOSTRESS Collection 2 Calibration/Validation Data Tables
|
|
25
25
|
|
|
26
26
|
This Python package provides calibration and validation data tables used in the evaluation of the ECOSTRESS Collection 2 Evapotranspiration (ET) data products. The included datasets and loader functions support reproducible research and validation workflows for ET modeling and remote sensing studies.
|
|
27
27
|
|
|
28
|
+
The CSV files used in this repository were sourced from the [@zoepierrat/ECOSTRESS_C2_L3_ET_Validation](https://github.com/zoepierrat/ECOSTRESS_C2_L3_ET_Validation) repository.
|
|
29
|
+
|
|
28
30
|
## Authors
|
|
29
31
|
|
|
30
32
|
Zoe Pierrat (she/her)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ECOv002_calval_tables/ECOv002_calval_tables.py,sha256=h-F6g5wdgtMrWAR7aMo4apVai-kkgih_m0HcqYL5D3E,2572
|
|
2
|
+
ECOv002_calval_tables/__init__.py,sha256=oO0pVascuJs247UwpXq2o23wQPThM1bWEwUhSYiNzMY,60
|
|
3
|
+
ECOv002_calval_tables/combined_eco_flux_EC_filtered.csv,sha256=uSRv1CBMJKUWBgtMlRHB1359kiUFUL1ez2c4m7C4DxU,745225
|
|
4
|
+
ECOv002_calval_tables/metadata_ebc_filt.csv,sha256=74AeCH5DG2Zu8ZFBXUZAW95hlsCjK9K3t6BWRRReR3s,13975
|
|
5
|
+
ECOv002_calval_tables/version.py,sha256=DOnf2BIAf7HAp9SIUIetrDgRoZDL0o7JuKSiC7_ZT_I,87
|
|
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,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
ECOv002_calval_tables/ECOv002_calval_tables.py,sha256=t06ICMGPlyhuB_9EUkuASu8P_jXYk8CKbTRfTi7JOn8,1094
|
|
2
|
-
ECOv002_calval_tables/__init__.py,sha256=oO0pVascuJs247UwpXq2o23wQPThM1bWEwUhSYiNzMY,60
|
|
3
|
-
ECOv002_calval_tables/combined_eco_flux_EC_filtered.csv,sha256=uSRv1CBMJKUWBgtMlRHB1359kiUFUL1ez2c4m7C4DxU,745225
|
|
4
|
-
ECOv002_calval_tables/metadata_ebc_filt.csv,sha256=74AeCH5DG2Zu8ZFBXUZAW95hlsCjK9K3t6BWRRReR3s,13975
|
|
5
|
-
ecov002_calval_tables-1.0.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
6
|
-
ecov002_calval_tables-1.0.1.dist-info/METADATA,sha256=rFDwBUarZI1w2sFpcy_EE8p7fTW2hxNk9JUd20NoXGo,3010
|
|
7
|
-
ecov002_calval_tables-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
ecov002_calval_tables-1.0.1.dist-info/top_level.txt,sha256=ePbA84g_XQHWQUAQEVo6gmyuW0WLUzPg2IfHyoGqUqg,22
|
|
9
|
-
ecov002_calval_tables-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
{ecov002_calval_tables-1.0.1.dist-info → ecov002_calval_tables-1.2.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{ecov002_calval_tables-1.0.1.dist-info → ecov002_calval_tables-1.2.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|