Skip to content

feat: add option to compare dtm with lidarhd stream#14

Open
nlenglet-ign wants to merge 4 commits into
masterfrom
feat_compare_with_lidarhd
Open

feat: add option to compare dtm with lidarhd stream#14
nlenglet-ign wants to merge 4 commits into
masterfrom
feat_compare_with_lidarhd

Conversation

@nlenglet-ign

Copy link
Copy Markdown

No description provided.

Comment on lines +110 to +114
with open("data/stream_types.txt", "r") as f:
for l in f:
if stream_type in l:
stream_value = l.split(" ")[1]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ça me parait moins robuste que d'avoir un dictionnaire directement dans un json, ce qui permettrait de faire

Suggested change
with open("data/stream_types.txt", "r") as f:
for l in f:
if stream_type in l:
stream_value = l.split(" ")[1]
import json
...
stream_types = json.load("data/stream_types.json")
if stream_type in stream_types.keys() :
stream_value = stream_types[stream_type]
else :
raise ...

Comment thread altianalysis/compute_difference.py Outdated
Comment on lines +123 to +142
# elif use_lidarHD:

# with tempfile.NamedTemporaryFile(suffix="_dtm_lidarHD.tif", delete=False) as tmp_lidarHD:
# success = _extract_tiles_from_stream(
# reference_dtm_file, pixel_per_meter=5, output_path=tmp_lidarHD.name, stream="IGNF_LIDAR-HD_MNT_ELEVATION.ELEVATIONGRIDCOVERAGE.LAMB93"
# )

# if success:
# compute_difference_between_dtms(reference_dtm_file, tmp_lidarHD, output_difference_file)

# else:

# with tempfile.NamedTemporaryFile(suffix="_dtm_rgealti.tif", delete=False) as tmp_rge:

# success = _extract_tiles_from_stream(
# reference_dtm_file, pixel_per_meter=5, output_path=tmp_rge.name
# )

# if success:
# compute_difference_between_dtms(reference_dtm_file, tmp_rge, output_difference_file)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code mort à enlever



def create_one_job_one_difference(store: Store, dir_in: Path, second_dir: Path | None, input_file: str, output: Path):
def create_one_job_one_difference(store: Store, dir_in: Path, second_dir: Path | None, input_file: str, output: Path, use_lidarHD: bool):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use_lidarHD est toujorus valable ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants