-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from madrisan/HadCRUT.5.0.2.0
feat: update datasets to version 5.0.2.0
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/python3 | ||
# Copyright (c) 2020-2022 Davide Madrisan <[email protected]> | ||
# Copyright (c) 2020-2023 Davide Madrisan <[email protected]> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
""" | ||
|
@@ -20,7 +20,7 @@ | |
__author__ = "Davide Madrisan" | ||
__copyright__ = "Copyright (C) 2020-2023 Davide Madrisan" | ||
__license__ = "GNU General Public License v3.0" | ||
__version__ = "2023.1" | ||
__version__ = "2023.2" | ||
__email__ = "[email protected]" | ||
__status__ = "stable" | ||
|
||
|
@@ -52,7 +52,7 @@ class HadCRUT5: | |
"""Class for parsing and plotting HadCRUT5 datasets""" | ||
|
||
# current dataset version | ||
_DATASET_VERSION = "5.0.1.0" | ||
_DATASET_VERSION = "5.0.2.0" | ||
|
||
# list of all the available data types | ||
_DEFAULT_DATATYPE = "annual" | ||
|
@@ -227,10 +227,11 @@ def datasets_regions(self): | |
"""Return the dataset regions set by the user at command-line""" | ||
return self._datasets.keys() | ||
|
||
@staticmethod | ||
def _hadcrut5_data_url(filename): | ||
def _hadcrut5_data_url(self, filename): | ||
site = "https://www.metoffice.gov.uk" | ||
path = "/hadobs/hadcrut5/data/current/analysis/diagnostics/" | ||
path = "/hadobs/hadcrut5/data/HadCRUT.{}/analysis/diagnostics/".format( | ||
self._DATASET_VERSION | ||
) | ||
url = "{}{}{}".format(site, path, filename) | ||
return url | ||
|
||
|