ECOv002-calval-tables 1.6.0__tar.gz → 1.9.0__tar.gz
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-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/ECOv002_calval_tables.py +1 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/load_tables.py +12 -1
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/plot_single_model.py +2 -1
- ecov002_calval_tables-1.9.0/ECOv002_calval_tables/upscale_to_daylight.py +18 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables.egg-info/PKG-INFO +2 -1
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables.egg-info/SOURCES.txt +1 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables.egg-info/requires.txt +1 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables.egg-info/top_level.txt +2 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/PKG-INFO +2 -1
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/pyproject.toml +5 -1
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/__init__.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/combined_eco_flux_EC_filtered.csv +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/ec_lib.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/error_funcs.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/metadata_ebc_filt.csv +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/plot_funcs.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/version.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables.egg-info/dependency_links.txt +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/LICENSE +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/README.md +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/setup.cfg +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/tests/test_import_ECOv002_calval_tables.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/tests/test_import_dependencies.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/tests/test_load_calval_table.py +0 -0
- {ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/tests/test_load_metadata_ebc_filt.py +0 -0
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/load_tables.py
RENAMED
|
@@ -6,6 +6,8 @@ import geopandas as gpd
|
|
|
6
6
|
|
|
7
7
|
from shapely.geometry import Point
|
|
8
8
|
|
|
9
|
+
from .upscale_to_daylight import upscale_to_daylight
|
|
10
|
+
|
|
9
11
|
def load_combined_eco_flux_ec_filtered() -> pd.DataFrame:
|
|
10
12
|
"""
|
|
11
13
|
Load the filtered eddy covariance (EC) flux dataset used for ECOSTRESS Collection 2 ET product validation.
|
|
@@ -30,6 +32,7 @@ def load_metadata_ebc_filt() -> gpd.GeoDataFrame:
|
|
|
30
32
|
|
|
31
33
|
geometry = [Point(xy) for xy in zip(df['Long'], df['Lat'])]
|
|
32
34
|
gdf = gpd.GeoDataFrame(df, geometry=geometry, crs="EPSG:4326")
|
|
35
|
+
gdf["elevation_m"] = gdf["Elev"]
|
|
33
36
|
|
|
34
37
|
return gdf
|
|
35
38
|
|
|
@@ -56,12 +59,20 @@ def load_calval_table() -> gpd.GeoDataFrame:
|
|
|
56
59
|
|
|
57
60
|
merged_df["time_UTC"] = merged_df["eco_time_utc"]
|
|
58
61
|
merged_df["ST_K"] = np.array(merged_df.LST)
|
|
59
|
-
merged_df["ST_C"] = merged_df.ST_K - 273.15
|
|
62
|
+
merged_df["ST_C"] = np.array(merged_df.ST_K - 273.15)
|
|
60
63
|
merged_df["Ta_C"] = np.array(merged_df.Ta)
|
|
61
64
|
merged_df["SWin_Wm2"] = np.array(merged_df.Rg)
|
|
62
65
|
merged_df["emissivity"] = np.array(merged_df.EmisWB)
|
|
63
66
|
|
|
67
|
+
merged_df["insitu_LE_Wm2"] = np.array(merged_df.LEcorr50)
|
|
68
|
+
merged_df["insitu_H_Wm2"] = np.array(merged_df.Hcorr50)
|
|
69
|
+
merged_df["insitu_Rn_Wm2"] = np.array(merged_df.NETRAD_filt)
|
|
70
|
+
merged_df["insitu_G_Wm2"] = np.array(merged_df.G_filt)
|
|
71
|
+
merged_df["insitu_SWin_Wm2"] = np.array(merged_df.SW_IN)
|
|
72
|
+
|
|
64
73
|
# Convert merged DataFrame to GeoDataFrame
|
|
65
74
|
gdf = gpd.GeoDataFrame(merged_df, geometry=merged_df["geometry"], crs="EPSG:4326")
|
|
66
75
|
|
|
76
|
+
gdf = upscale_to_daylight(gdf)
|
|
77
|
+
|
|
67
78
|
return gdf
|
|
@@ -109,5 +109,6 @@ def quick_look_plot_single_model(
|
|
|
109
109
|
fig.legend(handles=scatter_handles, loc='lower center', bbox_to_anchor=(0.5, -0.05), ncol=7, title='Vegetation Type',fontsize=10)
|
|
110
110
|
# Adjust layout for better appearance
|
|
111
111
|
fig.tight_layout()
|
|
112
|
-
#
|
|
112
|
+
# Prevent automatic display in Jupyter by closing the figure before returning
|
|
113
|
+
plt.close(fig)
|
|
113
114
|
return fig
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import pandas as pd
|
|
2
|
+
from daylight_evapotranspiration import daylight_ET_from_instantaneous_LE
|
|
3
|
+
|
|
4
|
+
def upscale_to_daylight(df: pd.DataFrame, prefix: str = "insitu_") -> pd.DataFrame:
|
|
5
|
+
daylight_results = daylight_ET_from_instantaneous_LE(
|
|
6
|
+
LE_instantaneous_Wm2=df.insitu_LE_Wm2,
|
|
7
|
+
Rn_instantaneous_Wm2=df.insitu_Rn_Wm2,
|
|
8
|
+
G_instantaneous_Wm2=df.insitu_G_Wm2,
|
|
9
|
+
time_UTC=df.time_UTC,
|
|
10
|
+
geometry=df.geometry
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
daylight_results_prefixed = {f"{prefix}{k}": v for k, v in daylight_results.items()}
|
|
14
|
+
|
|
15
|
+
for key, value in daylight_results_prefixed.items():
|
|
16
|
+
df[key] = value
|
|
17
|
+
|
|
18
|
+
return df
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ECOv002-calval-tables
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.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
|
|
@@ -9,6 +9,7 @@ Classifier: Operating System :: OS Independent
|
|
|
9
9
|
Requires-Python: >=3.10
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: daylight-evapotranspiration>=v1.3.4
|
|
12
13
|
Requires-Dist: pandas
|
|
13
14
|
Requires-Dist: geopandas
|
|
14
15
|
Requires-Dist: numpy
|
|
@@ -10,6 +10,7 @@ ECOv002_calval_tables/load_tables.py
|
|
|
10
10
|
ECOv002_calval_tables/metadata_ebc_filt.csv
|
|
11
11
|
ECOv002_calval_tables/plot_funcs.py
|
|
12
12
|
ECOv002_calval_tables/plot_single_model.py
|
|
13
|
+
ECOv002_calval_tables/upscale_to_daylight.py
|
|
13
14
|
ECOv002_calval_tables/version.py
|
|
14
15
|
ECOv002_calval_tables.egg-info/PKG-INFO
|
|
15
16
|
ECOv002_calval_tables.egg-info/SOURCES.txt
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ECOv002-calval-tables
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.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
|
|
@@ -9,6 +9,7 @@ Classifier: Operating System :: OS Independent
|
|
|
9
9
|
Requires-Python: >=3.10
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: daylight-evapotranspiration>=v1.3.4
|
|
12
13
|
Requires-Dist: pandas
|
|
13
14
|
Requires-Dist: geopandas
|
|
14
15
|
Requires-Dist: numpy
|
|
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
|
|
|
3
3
|
|
|
4
4
|
[project]
|
|
5
5
|
name = "ECOv002-calval-tables"
|
|
6
|
-
version = "1.
|
|
6
|
+
version = "1.9.0"
|
|
7
7
|
description = "Priestley-Taylor Jet Propulsion Laboratory Soil Moisutre Evapotranspiration Model"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
authors = [
|
|
@@ -15,6 +15,7 @@ classifiers = [
|
|
|
15
15
|
"Operating System :: OS Independent",
|
|
16
16
|
]
|
|
17
17
|
dependencies = [
|
|
18
|
+
"daylight-evapotranspiration>=v1.3.4",
|
|
18
19
|
"pandas",
|
|
19
20
|
"geopandas",
|
|
20
21
|
"numpy",
|
|
@@ -39,5 +40,8 @@ dev = [
|
|
|
39
40
|
[tool.setuptools.package-data]
|
|
40
41
|
ECOv002_calval_tables = ["*.csv"]
|
|
41
42
|
|
|
43
|
+
[tool.setuptools.packages.find]
|
|
44
|
+
exclude = ["notebooks*"]
|
|
45
|
+
|
|
42
46
|
[project.urls]
|
|
43
47
|
"Homepage" = "https://github.com/gregory-halverson/ECOv002-calval-tables"
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/error_funcs.py
RENAMED
|
File without changes
|
|
File without changes
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/plot_funcs.py
RENAMED
|
File without changes
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/ECOv002_calval_tables/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/tests/test_import_dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
{ecov002_calval_tables-1.6.0 → ecov002_calval_tables-1.9.0}/tests/test_load_metadata_ebc_filt.py
RENAMED
|
File without changes
|