Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6383727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:41:08+00:00 2026-05-25T02:41:08+00:00

I am using a file consisting of published scientific data. I’m using this file

  • 0

I am using a file consisting of published scientific data. I’m using this file with a program that reads in the first 5 space delimited data fields, and everything after that is considered a comment by the program.

2 example lines (of thousands):

FeII 1608.4511 0.521 55.36 -1300 M03 Journal of Physics
FeII 1611.23045 0.0321 55.36 1100 01J AJ

The program reads it as:

FeII 1608.4511 0.521 55.36 -1300 
FeII 1611.23045 0.0321 55.36 1100 

These numbers are each measurements and most (don’t get me started) have associated errors that are not listed in this file. I would like to store this information in a useful and updatable way. That is, say the first entry FeII 1608.4511 has an error of plus/minus 0.002. Consider when a new measurement is made and changes it to: FeII 1608.45034 plus/minus 0.0005. I would like to update the value, the error, and record some information about the publication that it came from.

The program that uses this file is legacy code and is both crucial and inflexible: and it needs the file to look like the above output when it’s read in. I would really like for there to be a way to update the input file to include things like errors on the values and publication hyperlinks in comments. I would also like a kind of version control ability to return the state of this large file today; or in 5 months after 20 more lines are updated with new values.

Any suggestions on how best to accomplish this? Should I store everything in some kind of database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:41:09+00:00Added an answer on May 25, 2026 at 2:41 am

    Databases are deeply tied to identity. If a database can’t identify a row by the data that’s in it, a database isn’t going to help you.

    If I were you, I’d start by storing the base file in a version control system, not a database. At 20 changes per 5 months, I’d probably make those changes manually and commit each batch of changes. (I don’t know what might constitute a batch for you. Could be a single change every time.)

    Since the format of the existing file is both crucial and brittle, I’m not sure whether modifying it is a good idea. I think I’d feel better about storing error ranges and publication hyperlinks in a separate file, and using a script to put the pieces together for applications that can use error ranges and hyperlinks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time using map/reduce. I want to write a program that
I have a CLI program consisting of a single vt.c file that compiles and
I've got a data file that is a single line consisting of a nested
I have moderately large binary file consisting of independent blocks like this: header1 data1
i'm currently using File::Basename fileparse to separate out a file's directory, base file name
I'm Using FILE * F opened in _sfopen () I'm reading from the file
I've been using File.ReadAllText() to open a CSV file, but every time I forget
I am using File IO, to save a file in local system(i.e PC C:
Currently I'm using file_get_contents() to submit GET data to an array of sites, but
I am trying to create a file using File newFile = new File(myFile); However

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.