Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delimiter option in OBS outputs #1864

Open
ougx opened this issue Jun 11, 2024 · 3 comments
Open

Add delimiter option in OBS outputs #1864

ougx opened this issue Jun 11, 2024 · 3 comments

Comments

@ougx
Copy link
Contributor

ougx commented Jun 11, 2024

It could be preferable to read space delimited file for some programs such as PEST. It will be great that we can add this option in OBS packages.

@langevin-usgs
Copy link
Contributor

I'm pretty sure you can write an instruction file for PEST that supports CSV files. Is this not the case?

@jtwhite79
Copy link

Example instruction file for two obs and two output times, assuming the csv has a header file:

pif ~
l2 ~,~ !obs1_1! ~,~ !obs2_1!
l1 ~,~ !obs1_2! ~,~ !obs2_2!
...

(pest and pest++ are both optimized to read large csv files)

@ougx
Copy link
Contributor Author

ougx commented Jun 11, 2024

yes, you can; however you need to specify comma like ~,~ where ~ is the PEST maker. It can become very redundant when there are many obs in one line. It will not breaking anything but it is more convenient like the example below:

comparing
l1 w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w w !MR1408452T199308! w !MR1408452T199309! w !MR1408452T199310! w w w !MR1408452T199401! w !MR1408452T199402! w !MR1408452T199403!
vs
l1 ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ ~,~ !MR1408452T199308! ~,~ !MR1408452T199309! ~,~ !MR1408452T199310! ~,~ ~,~ ~,~ !MR1408452T199401! ~,~ !MR1408452T199402! ~,~ !MR1408452T199403!

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

No branches or pull requests

3 participants