diff --git a/ECOv002_granules/L3TSEB.py b/ECOv002_granules/L3TSEB.py index b93b5a2..e093762 100644 --- a/ECOv002_granules/L3TSEB.py +++ b/ECOv002_granules/L3TSEB.py @@ -1,5 +1,11 @@ +from rasters import Raster + from .tiled_granule import ECOSTRESSTiledGranule class L3TSEB(ECOSTRESSTiledGranule): _PRIMARY_VARIABLE = "Rn" _PRODUCT_NAME = "L3T_SEB" + + @property + def Rn(self) -> Raster: + return self.variable("Rn") diff --git a/ECOv002_granules/tiled_granule.py b/ECOv002_granules/tiled_granule.py index ca5e64d..84a4f5b 100644 --- a/ECOv002_granules/tiled_granule.py +++ b/ECOv002_granules/tiled_granule.py @@ -449,6 +449,10 @@ def time_solar(self) -> datetime: else: return self.UTC_to_solar(self.time_UTC, self.geometry.centroid_latlon.x) + @property + def hour_of_day(self) -> float: + return self.time_solar.hour + self.time_solar.minute / 60 + @property def build(self) -> str: if self._build is not None: diff --git a/ECOv002_granules/version.txt b/ECOv002_granules/version.txt index 7f20734..e6d5cb8 100644 --- a/ECOv002_granules/version.txt +++ b/ECOv002_granules/version.txt @@ -1 +1 @@ -1.0.1 \ No newline at end of file +1.0.2 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 96bfcab..1acb92a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ECOv002_granules" -version = "1.0.1" +version = "1.0.2" description = "ECOSTRESS Collection 2 Data Product Granule Encapsulation Classes" readme = "README.md" authors = [