ClimateGraph 0.4.1__tar.gz → 0.4.2__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.
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/plot/plots.py +15 -1
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/general_utils.py +4 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph.egg-info/PKG-INFO +1 -1
- {climategraph-0.4.1 → climategraph-0.4.2}/PKG-INFO +1 -1
- {climategraph-0.4.1 → climategraph-0.4.2}/pyproject.toml +1 -1
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/appkernel.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/cli.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/data/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/data/data.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/data/point_surface.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/data/regular_grid.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/data/satellite_swath.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/domain/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/domain/domain.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/domain/domains.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/plot/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/plot/plot.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/plot/primitive.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/plot/primitives.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/csv_base.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/default.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/dmc.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/sinca.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/single_file.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/station_per_file.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/variable_per_file.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/reader.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/chimere.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/default.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/wrf.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/__init__.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/control_model.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/dataset_utils.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/parser.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/registry.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/utils/resample_engine.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph.egg-info/SOURCES.txt +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph.egg-info/dependency_links.txt +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph.egg-info/entry_points.txt +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph.egg-info/requires.txt +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph.egg-info/top_level.txt +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/LICENSE +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/README.md +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/setup.cfg +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/tests/test_against_manual_filter.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/tests/test_appkernel.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/tests/test_cli.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/tests/test_parser.py +0 -0
- {climategraph-0.4.1 → climategraph-0.4.2}/tests/test_parser_2.py +0 -0
|
@@ -737,17 +737,31 @@ class TimeCycleConfig(BasePlotConfig):
|
|
|
737
737
|
return self
|
|
738
738
|
# map both to hours for comparison
|
|
739
739
|
bucket_hours = {
|
|
740
|
+
"minute": 1 / 60,
|
|
740
741
|
"hour": 1,
|
|
741
742
|
"day": 24,
|
|
743
|
+
"week": 168,
|
|
742
744
|
"month": 720,
|
|
743
745
|
"dayofyear": 24,
|
|
744
746
|
"season": 2160,
|
|
747
|
+
"quarter": 2160,
|
|
745
748
|
}
|
|
746
749
|
timestep_hours = {
|
|
750
|
+
TimestepEnum.nanoseconds: 1 / 3.6e12,
|
|
751
|
+
TimestepEnum.microseconds: 1 / 3.6e9,
|
|
752
|
+
TimestepEnum.milliseconds: 1 / 3.6e6,
|
|
753
|
+
TimestepEnum.secondly: 1 / 3600,
|
|
754
|
+
TimestepEnum.minutely: 1 / 60,
|
|
747
755
|
TimestepEnum.hourly: 1,
|
|
748
756
|
TimestepEnum.daily: 24,
|
|
757
|
+
TimestepEnum.business_day: 24,
|
|
758
|
+
TimestepEnum.weekly: 168,
|
|
749
759
|
TimestepEnum.monthly: 720,
|
|
750
|
-
|
|
760
|
+
TimestepEnum.monthly_start: 720,
|
|
761
|
+
TimestepEnum.quarterly: 2160,
|
|
762
|
+
TimestepEnum.quarterly_start: 2160,
|
|
763
|
+
TimestepEnum.yearly: 8760,
|
|
764
|
+
TimestepEnum.yearly_start: 8760,
|
|
751
765
|
}
|
|
752
766
|
if timestep_hours[self.timestep] > bucket_hours[self.time_buckets.value]:
|
|
753
767
|
raise ValueError(
|
|
@@ -32,6 +32,10 @@ class TimestepEnum(str, Enum):
|
|
|
32
32
|
# Period-end spellings: pandas 2.2 deprecated "Q"/"Y" and 3.0 removed them.
|
|
33
33
|
quarterly = "QE"
|
|
34
34
|
yearly = "YE"
|
|
35
|
+
# Period-start spellings: label each bucket with its first instant.
|
|
36
|
+
monthly_start = "MS"
|
|
37
|
+
quarterly_start = "QS"
|
|
38
|
+
yearly_start = "YS"
|
|
35
39
|
hourly = "h"
|
|
36
40
|
minutely = "min"
|
|
37
41
|
secondly = "s"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/__init__.py
RENAMED
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/csv_base.py
RENAMED
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/default.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/point_surface/single_file.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/__init__.py
RENAMED
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/chimere.py
RENAMED
|
File without changes
|
{climategraph-0.4.1 → climategraph-0.4.2}/ClimateGraph/reader/reader/regular_grid/default.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|