Skip to content

Commit

Permalink
feat(postprocess): Strip right back - better to avoid postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Nov 8, 2024
1 parent 52733e4 commit 457537f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/nwp_consumer/internal/entities/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,6 @@ class PostProcessOptions:
i.e. nothing occurs by default.
"""

standardize_coordinates: bool = False
"""Whether to standardize the coordinates of the data.
Note that this doesn't refer to interpolation: rather, it makes
the coordinates adhere to the usual directionality and regionality
within the circular space, i.e.:
- Latitude values should be in the range and direction [+90, -90]
- Longitude values should be in the range and direction [-180, 180]
- Y values should be in descending order
- X values should be in ascending order
"""

rechunk: bool = False
"""Whether to rechunk the data."""

validate: bool = False
"""Whether to validate the data.
Expand All @@ -60,9 +44,6 @@ class PostProcessOptions:
<https://zarr.readthedocs.io/en/stable/tutorial.html#compressors>`_.
"""

zip: bool = False
"""Whether to zip the data."""

plot: bool = False
"""Whether to save a plot of the data."""

Expand All @@ -71,22 +52,16 @@ def requires_rewrite(self) -> bool:
"""Boolean indicating whether the specified options necessitate a rewrite."""
return any(
[
self.standardize_coordinates,
self.rechunk,
self.codec,
self.zip,
],
)

def requires_postprocessing(self) -> bool:
"""Boolean indicating whether the specified options necessitate post-processing."""
return any(
[
self.standardize_coordinates,
self.rechunk,
self.validate,
self.codec,
self.zip,
self.plot,
],
)
Expand Down

0 comments on commit 457537f

Please sign in to comment.