returnf"{self.time.sampling}{self.statistic} statistic for {self.variable.standart_name} from {self.time.start} to {self.time.end} aggregated on global grid"
defget_summary(self):
returnf"{self.time.sampling}{self.statistic} statistic for {self.variable.standart_name} from {self.time.start} to {self.time.end} aggregated on global grid"
@dataclass
@dataclass
classAnalysisRequestResult:
classAnalysisRequestResult:
...
@@ -70,10 +76,11 @@ class AnalysisRequestResult:
...
@@ -70,10 +76,11 @@ class AnalysisRequestResult:
metadata:Metadata
metadata:Metadata
defget_global_attributes(metadata):
defget_global_attributes(metadata:Metadata):
metadata={
dynamic_cf_attributes={
"title":get_title(metadata),
"id":metadata.get_id(),
"summary":get_summary(metadata),
"title":metadata.get_title(),
"summary":metadata.get_summary(),
"date_created":date_created,
"date_created":date_created,
"history":f"{date_created}: File created by toargridding package using data from toar-analysis service",
"history":f"{date_created}: File created by toargridding package using data from toar-analysis service",
# "geospatial_bounds": 0, # for polygonal desrcription
# "geospatial_bounds": 0, # for polygonal desrcription
returnf"{metadata.time.sampling}{metadata.statistic} statistic for {metadata.variable.standart_name} from {metadata.time.start} to {metadata.time.end} aggregated on global grid"
defget_summary(metadata:Metadata):# TODO make summary different from title
returnf"{metadata.time.sampling}{metadata.statistic} statistic for {metadata.variable.standart_name} from {metadata.time.start} to {metadata.time.end} aggregated on global grid"