Skip to content

Commit

Permalink
Remove unused exception, fix CHANGELOG links, and other minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyschultz committed Oct 21, 2024
1 parent 3601f92 commit 735894d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ Repository structure changes include:
For more information on internal releases prior to NASA open-source approval,
see legacy-CHANGELOG.md.

[v1.1.1]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.1.0)
[v1.1.0]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.0.1)
[v1.2.0]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.2.0)
[v1.1.1]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.1.1)
[v1.1.0]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.1.0)
[v1.0.1]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.0.1)
[v1.0.0]: (https://github.com/nasa/harmony-swath-projector/releases/tag/1.0.0)
5 changes: 4 additions & 1 deletion swath_projector/earthdata_varinfo_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"Identification": "Swath Projector VarInfo configuration",
"Version": 4,
"CollectionShortNamePath": ["ShortName", "collection_shortname"],
"CollectionShortNamePath": [
"ShortName",
"collection_shortname"
],
"Mission": {
"VNP10": "VIIRS",
"TEMPO_O3TOT_L2": "TEMPO"
Expand Down
12 changes: 0 additions & 12 deletions swath_projector/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,3 @@ def __init__(self):
super().__init__(
'InvalidTargetGrid', 'Insufficient or invalid target grid parameters.'
)


class VariableShapeError(CustomError):
"""Raised to skip resampling if variable shape does not match coordinates shape.
While not optimal, raising this exception provides a temporary workaround
mismatched shapes for some science variables.
"""

def __init__(self):
super().__init__('VariableShapeError', 'Unable to resample variable.')
3 changes: 0 additions & 3 deletions swath_projector/nc_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from netCDF4 import Dataset, Variable
from varinfo import VarInfoFromNetCDF4

from swath_projector.exceptions import MissingReprojectedDataError
from swath_projector.utilities import get_variable_file_path, variable_in_dataset

# Values needed for history_json attribute
Expand Down Expand Up @@ -96,8 +95,6 @@ def create_output(
else:
logger.error(f'Cannot find "{dataset_file}".')
# QuickFix (DAS-2216) Ignore missing reprojections
logger.error(f'Not Including "{variable_name}" in "{output_file}".')
# raise MissingReprojectedDataError(variable_name)


def set_output_attributes(
Expand Down
1 change: 0 additions & 1 deletion swath_projector/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ def transpose_if_xdim_less_than_ydim(variable: np.ndarray) -> np.ndarray:
transposed_variable = np.ma.transpose(variable).copy()
if hasattr(variable, 'mask'):
transposed_variable.mask = np.ma.transpose(variable[:].mask)
return transposed_variable

return transposed_variable

Expand Down

0 comments on commit 735894d

Please sign in to comment.