ECOv002-calval-tables 1.7.1__tar.gz → 1.10.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.
Files changed (25) hide show
  1. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/load_tables.py +19 -1
  2. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/upscale_to_daylight.py +3 -3
  3. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables.egg-info/PKG-INFO +1 -1
  4. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/PKG-INFO +1 -1
  5. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/pyproject.toml +1 -1
  6. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/ECOv002_calval_tables.py +0 -0
  7. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/__init__.py +0 -0
  8. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/combined_eco_flux_EC_filtered.csv +0 -0
  9. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/ec_lib.py +0 -0
  10. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/error_funcs.py +0 -0
  11. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/metadata_ebc_filt.csv +0 -0
  12. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/plot_funcs.py +0 -0
  13. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/plot_single_model.py +0 -0
  14. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables/version.py +0 -0
  15. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables.egg-info/SOURCES.txt +0 -0
  16. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables.egg-info/dependency_links.txt +0 -0
  17. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables.egg-info/requires.txt +0 -0
  18. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/ECOv002_calval_tables.egg-info/top_level.txt +0 -0
  19. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/LICENSE +0 -0
  20. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/README.md +0 -0
  21. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/setup.cfg +0 -0
  22. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/tests/test_import_ECOv002_calval_tables.py +0 -0
  23. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/tests/test_import_dependencies.py +0 -0
  24. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/tests/test_load_calval_table.py +0 -0
  25. {ecov002_calval_tables-1.7.1 → ecov002_calval_tables-1.10.0}/tests/test_load_metadata_ebc_filt.py +0 -0
@@ -32,6 +32,7 @@ def load_metadata_ebc_filt() -> gpd.GeoDataFrame:
32
32
 
33
33
  geometry = [Point(xy) for xy in zip(df['Long'], df['Lat'])]
34
34
  gdf = gpd.GeoDataFrame(df, geometry=geometry, crs="EPSG:4326")
35
+ gdf["elevation_m"] = gdf["Elev"]
35
36
 
36
37
  return gdf
37
38
 
@@ -58,14 +59,31 @@ def load_calval_table() -> gpd.GeoDataFrame:
58
59
 
59
60
  merged_df["time_UTC"] = merged_df["eco_time_utc"]
60
61
  merged_df["ST_K"] = np.array(merged_df.LST)
61
- merged_df["ST_C"] = merged_df.ST_K - 273.15
62
+ merged_df["ST_C"] = np.array(merged_df.ST_K - 273.15)
62
63
  merged_df["Ta_C"] = np.array(merged_df.Ta)
63
64
  merged_df["SWin_Wm2"] = np.array(merged_df.Rg)
64
65
  merged_df["emissivity"] = np.array(merged_df.EmisWB)
65
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
+
66
73
  # Convert merged DataFrame to GeoDataFrame
67
74
  gdf = gpd.GeoDataFrame(merged_df, geometry=merged_df["geometry"], crs="EPSG:4326")
68
75
 
69
76
  gdf = upscale_to_daylight(gdf)
70
77
 
71
78
  return gdf
79
+
80
+ def load_times_locations() -> gpd.GeoDataFrame:
81
+ """
82
+ Load a GeoDataFrame containing the times and locations of the ECOSTRESS Collection 2 validation dataset.
83
+
84
+ Returns:
85
+ gpd.GeoDataFrame: GeoDataFrame with time and location information for validation analysis.
86
+ """
87
+ calval_gdf = load_calval_table()
88
+ times_locations_gdf = calval_gdf[["ID", "time_UTC", "geometry"]].copy()
89
+ return times_locations_gdf
@@ -3,9 +3,9 @@ from daylight_evapotranspiration import daylight_ET_from_instantaneous_LE
3
3
 
4
4
  def upscale_to_daylight(df: pd.DataFrame, prefix: str = "insitu_") -> pd.DataFrame:
5
5
  daylight_results = daylight_ET_from_instantaneous_LE(
6
- LE_instantaneous_Wm2=df.LEcorr50,
7
- Rn_instantaneous_Wm2=df.NETRAD_filt,
8
- G_instantaneous_Wm2=df.G_filt,
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
9
  time_UTC=df.time_UTC,
10
10
  geometry=df.geometry
11
11
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ECOv002-calval-tables
3
- Version: 1.7.1
3
+ Version: 1.10.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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ECOv002-calval-tables
3
- Version: 1.7.1
3
+ Version: 1.10.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
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
3
3
 
4
4
  [project]
5
5
  name = "ECOv002-calval-tables"
6
- version = "1.7.1"
6
+ version = "1.10.0"
7
7
  description = "Priestley-Taylor Jet Propulsion Laboratory Soil Moisutre Evapotranspiration Model"
8
8
  readme = "README.md"
9
9
  authors = [