Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

47 nc and tif climate #56

Merged
merged 8 commits into from
Jul 20, 2024
4 changes: 3 additions & 1 deletion framework/climate/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ class TempResultFile(models.Model):
filename = models.CharField(max_length=400, null=True)
category = models.CharField(max_length=255, choices=CATEGORIES, null=True)
num_bands = models.IntegerField(null=True)
timestamp_begin = models.CharField(max_length=500, null=True)
band_metadata = models.JSONField(default=dict)
net_cdf_times = models.JSONField(default=dict)
st_mtime_nc = models.CharField(max_length=255, null=True)
Expand All @@ -285,7 +286,8 @@ def get_file_metadata(self):
combined_metadata = {
'num_bands': self.num_bands,
'band_metadata': self.band_metadata,
'net_cdf_times': self.net_cdf_times
'net_cdf_times': self.net_cdf_times,
'timestamp_begin': self.timestamp_begin
}

return combined_metadata
Expand Down
Loading
Loading