Skip to content

Commit

Permalink
Export csize in km
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainv committed Jun 2, 2024
1 parent 2082bd9 commit b73df4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions forestatrisk/data/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,13 @@ def sample(
# Export and return value
# =============================================

# Save csize for interpolation of rhos
ofile = os.path.join(os.path.dirname(output_file),
"csize_icar.txt")
with open(ofile, "w", encoding="utf-8") as f:
csize_km = csize / 1000
f.write(str(csize_km))

if verbose:
text = "Export results to file {}"
print(text.format(output_file))
Expand Down

0 comments on commit b73df4c

Please sign in to comment.