gotm-model / code

Source code for the General Ocean Turbulence Model
https://gotm.net
GNU General Public License v2.0
53 stars 44 forks source link

profile data input file, GOTM vs EAT #42

Closed poplarShift closed 5 months ago

poplarShift commented 8 months ago

For depth-dependent variables, GOTM uses this peculiar format:

2017/02/18 00:00:00 155 3
-1.0 7.015652242915384 34.58407328910704
-2.0 7.020741135423573 34.58407194723329
-3.0 7.014843539086093 34.5840706053661

etc,

whereas EAT uses a standard TSV format:

2015-05-01 12:00:00 -15.    11.12   0.32

would it be possible to migrate GOTM to such a TSV format as well?

bolding commented 8 months ago

(Almost) everything is possible.

The reason for the GOTM format is that it much, much easy to read using Fortran as it only takes on pass through. In EAT the observations are handled by Python and Python is way better handling text files than Fortran.

But if anybody wants to develop a reading routine that can be used as a drop-in for what we have now - and in addition support the other format it is fine with me. It would be a big advantage/requirement that the correct format is auto-detected.

Karsten