Skip to content

Commit

Permalink
Increased resolution for CSV format
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Sep 14, 2023
1 parent 8cbd57b commit f5b3e2c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hyo2/soundspeed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logger.addHandler(logging.NullHandler())

name = "Sound Speed"
__version__ = '2023.0.5'
__version__ = '2023.0.6'
__copyright__ = 'Copyright 2023 University of New Hampshire, Center for Coastal and Ocean Mapping'

lib_info = LibInfo()
Expand Down
6 changes: 3 additions & 3 deletions hyo2/soundspeed/formats/writers/csv.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import numpy as np
import logging

logger = logging.getLogger(__name__)

from hyo2.soundspeed.formats.writers.abstract import AbstractTextWriter

logger = logging.getLogger(__name__)


class Csv(AbstractTextWriter):
"""Csv writer"""
Expand Down Expand Up @@ -54,6 +54,6 @@ def _write_body(self):
# logger.debug('generating body')
vi = self.ssp.cur.proc_valid
for idx in range(np.sum(vi)):
self.fod.io.write("%.2f,%.2f,%.2f,%.2f\n"
self.fod.io.write("%.3f,%.3f,%.3f,%.3f\n"
% (self.ssp.cur.proc.depth[vi][idx], self.ssp.cur.proc.speed[vi][idx],
self.ssp.cur.proc.sal[vi][idx], self.ssp.cur.proc.temp[vi][idx]))
2 changes: 1 addition & 1 deletion hyo2/soundspeedmanager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
logger.addHandler(logging.NullHandler())

name = "Sound Speed Manager"
__version__ = "2023.0.5"
__version__ = "2023.0.6"
__copyright__ = "Copyright 2023 University of New Hampshire, Center for Coastal and Ocean Mapping"

app_info = AppInfo()
Expand Down
2 changes: 1 addition & 1 deletion hyo2/soundspeedsettings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
logger.addHandler(logging.NullHandler())

name = "Sound Speed Settings"
__version__ = '2023.0.5'
__version__ = '2023.0.6'
__copyright__ = 'Copyright 2023 University of New Hampshire, Center for Coastal and Ocean Mapping'

app_info = AppInfo()
Expand Down

0 comments on commit f5b3e2c

Please sign in to comment.