Skip to content

Commit

Permalink
Support resolution smaller than a meter
Browse files Browse the repository at this point in the history
Co-authored-by: Carolyn Begeman <[email protected]>
  • Loading branch information
xylar and cbegeman authored Sep 16, 2023
1 parent b23662c commit f3627c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions polaris/ocean/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def resolution_to_subdir(resolution):
"""
if resolution >= 1.:
res_str = f'{resolution:g}km'
elif resolution < 0.001:
res_str = f'{resolution * 1.e5:g}cm'
else:
res_str = f'{resolution * 1000.:g}m'
return res_str

0 comments on commit f3627c6

Please sign in to comment.