Skip to content

Commit

Permalink
Merge pull request #287 from mfangaritav/develop
Browse files Browse the repository at this point in the history
Cleaning code
  • Loading branch information
mfangaritav authored Aug 7, 2024
2 parents 0574623 + af7a525 commit f908c5d
Show file tree
Hide file tree
Showing 7 changed files with 230 additions and 188 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/hyp3_autorift/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def apply_wallis_nodata_fill_filter(array: np.ndarray, nodata: int) -> Tuple[np.


def _apply_filter_function(image_path: str, filter_function: Callable) -> Tuple[str, Optional[str]]:
image_array, image_transform, image_projection, image_nodata = utils.load_geospatial(image_path)
image_array, image_transform, image_projection, _, image_nodata = utils.load_geospatial(image_path)
image_array = image_array.astype(np.float32)

image_filtered, zero_mask = filter_function(image_array, image_nodata)
Expand Down Expand Up @@ -363,8 +363,8 @@ def process(
platform = get_platform(reference)

if platform == 'S1':
from hyp3_autorift.s1_isce3 import process_sentinel1_with_isce3_slc
netcdf_file = process_sentinel1_with_isce3_slc(reference, secondary)
from hyp3_autorift.s1_isce3 import process_sentinel1_with_isce3_slc
netcdf_file = process_sentinel1_with_isce3_slc(reference, secondary)
elif platform == 'GS1':
from hyp3_autorift.s1_isce3 import process_burst_sentinel1_with_isce3_radar
netcdf_file = process_burst_sentinel1_with_isce3_radar(reference, secondary)
Expand Down
Loading

0 comments on commit f908c5d

Please sign in to comment.