Skip to content

Commit

Permalink
change coordinates_utm.h5 to coordinates_map.h5
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmud1 committed Oct 16, 2024
1 parent cb56b8a commit d476f2a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/demo/demo_masjed_dam_detailed_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ After running this step, a `sbas` directory is created. Inside this directory, y
├── temporal_coherence.h5
├── ifg_stack.h5
├── ifg_network.h5
├── coordinates_utm.h5
├── coordinates_map.h5
├── config.json
├── background_map.h5
└── pic/
Expand Down
2 changes: 1 addition & 1 deletion docs/processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Step 0: Preparation
- Output of this step
- background_map.h5
- ifg_stack.h5
- coordinates_utm.h5
- coordinates_map.h5
- ifg_network.h5
- temporal_coherence.h5

Expand Down
6 changes: 3 additions & 3 deletions sarvey/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def prepare(self, *, point_id: np.ndarray, coord_xy: np.ndarray, input_path: str
"""Assign point_id and radar coordinates to the object.
Store the point_id and radar coordinates of the scatterers in the object (not file) and read further
attributes from external files (ifg_network.h5, slcStack.h5, geometryRadar.h5, coordinates_utm.h5).
attributes from external files (ifg_network.h5, slcStack.h5, geometryRadar.h5, coordinates_map.h5).
Parameters
----------
Expand Down Expand Up @@ -520,7 +520,7 @@ def open(self, input_path: str, other_file_path: str = None):
self.openExternalData(input_path=input_path)

def openExternalData(self, *, input_path: str):
"""Load data which is stored in slcStack.h5, geometryRadar.h5, ifg_network.h5 and coordinates_utm.h5."""
"""Load data which is stored in slcStack.h5, geometryRadar.h5, ifg_network.h5 and coordinates_map.h5."""
# 1) read IfgNetwork
self.ifg_net_obj.open(path=join(dirname(self.file_path), "ifg_network.h5"))

Expand Down Expand Up @@ -550,7 +550,7 @@ def openExternalData(self, *, input_path: str):
self.coord_lalo = np.array([lat[mask].ravel(), lon[mask].ravel()]).transpose()

# 4) read UTM coordinates
coord_utm_obj = CoordinatesUTM(file_path=join(dirname(self.file_path), "coordinates_utm.h5"),
coord_utm_obj = CoordinatesUTM(file_path=join(dirname(self.file_path), "coordinates_map.h5"),
logger=self.logger)
coord_utm_obj.open()
self.coord_utm = coord_utm_obj.coord_utm[:, mask].transpose()
Expand Down
2 changes: 1 addition & 1 deletion sarvey/preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def selectPixels(*, path: str, selection_method: str, thrsh: float,
# cmap = "autumn"

if grid_size is not None: # -> sparse pixel selection
coord_utm_obj = CoordinatesUTM(file_path=join(path, "coordinates_utm.h5"), logger=logger)
coord_utm_obj = CoordinatesUTM(file_path=join(path, "coordinates_map.h5"), logger=logger)
coord_utm_obj.open()
box_list = ut.createSpatialGrid(coord_utm_img=coord_utm_obj.coord_utm,
length=coord_utm_obj.coord_utm.shape[1],
Expand Down
6 changes: 3 additions & 3 deletions sarvey/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def runPreparation(self):
)

# store auxilliary datasets for faster access during processing
if not exists(join(self.path, "coordinates_utm.h5")):
coord_utm_obj = CoordinatesUTM(file_path=join(self.path, "coordinates_utm.h5"), logger=self.logger)
if not exists(join(self.path, "coordinates_map.h5")):
coord_utm_obj = CoordinatesUTM(file_path=join(self.path, "coordinates_map.h5"), logger=self.logger)
coord_utm_obj.prepare(input_path=join(self.config.general.input_path, "geometryRadar.h5"))
del coord_utm_obj

Expand Down Expand Up @@ -590,7 +590,7 @@ def runFiltering(self):
plt.close(fig)

# create grid
coord_utm_obj = CoordinatesUTM(file_path=join(self.path, "coordinates_utm.h5"), logger=self.logger)
coord_utm_obj = CoordinatesUTM(file_path=join(self.path, "coordinates_map.h5"), logger=self.logger)
coord_utm_obj.open()

# remove points based on threshold
Expand Down
2 changes: 1 addition & 1 deletion sarvey/sarvey_mti.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def run(*, config: Config, args: argparse.Namespace, logger: Logger):
config_section_default=config_default_dict["preparation"],
logger=logger)
proc_obj.runPreparation()
required_files = ["background_map.h5", "coordinates_utm.h5", "ifg_network.h5", "ifg_stack.h5",
required_files = ["background_map.h5", "coordinates_map.h5", "ifg_network.h5", "ifg_stack.h5",
"temporal_coherence.h5"]

if 1 in steps:
Expand Down

0 comments on commit d476f2a

Please sign in to comment.