- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to write a program that will read an input file, but it is set up in an odd way. I only need the numbers but I'm not sure how to avoid the words. Also, the thrust curve is segmented and I am unsure how to make it read each segment.
Any help would be appreciated.
Estes C6-3 Specifications
diameter 0.018 meters
length 0.070 meters
initial_mass 0.0241 kg
final_mass 0.0094 kg
max_liftoff_mass 0.1132 kg
measured_delay 2.47 s
total_impulse 8.82 N s
thrust_ranges 5
time s thrust N
5
0.000 0.000
0.031 0.946
0.092 4.826
0.139 9.936
0.192 14.090
4
0.192 14.090
0.209 11.446
0.231 7.381
0.248 6.151
4
0.248 6.151
0.292 5.489
0.370 4.921
0.475 4.448
12
0.475 4.448
0.671 4.258
0.702 4.542
0.723 4.164
0.850 4.448
1.063 4.353
1.211 4.353
1.242 4.069
1.303 4.258
1.468 4.353
1.656 4.448
1.821 4.448
4
1.821 4.448
1.834 2.933
1.847 1.325
1.860 0.000
Any help would be appreciated.
Estes C6-3 Specifications
diameter 0.018 meters
length 0.070 meters
initial_mass 0.0241 kg
final_mass 0.0094 kg
max_liftoff_mass 0.1132 kg
measured_delay 2.47 s
total_impulse 8.82 N s
thrust_ranges 5
time s thrust N
5
0.000 0.000
0.031 0.946
0.092 4.826
0.139 9.936
0.192 14.090
4
0.192 14.090
0.209 11.446
0.231 7.381
0.248 6.151
4
0.248 6.151
0.292 5.489
0.370 4.921
0.475 4.448
12
0.475 4.448
0.671 4.258
0.702 4.542
0.723 4.164
0.850 4.448
1.063 4.353
1.211 4.353
1.242 4.069
1.303 4.258
1.468 4.353
1.656 4.448
1.821 4.448
4
1.821 4.448
1.834 2.933
1.847 1.325
1.860 0.000
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - daemon_dkm
I'm trying to write a program that will read an input file, but it is set up in an odd way. I only need the numbers but I'm not sure how to avoid the words. Also, the thrust curve is segmented and I am unsure how to make it read each segment.
Any help would be appreciated.
Estes C6-3 Specifications
diameter 0.018 meters
length 0.070 meters
initial_mass 0.0241 kg
final_mass 0.0094 kg
max_liftoff_mass 0.1132 kg
measured_delay 2.47 s
total_impulse 8.82 N s
thrust_ranges 5
time s thrust N
5
0.000 0.000
0.031 0.946
0.092 4.826
0.139 9.936
0.192 14.090
4
0.192 14.090
0.209 11.446
0.231 7.381
0.248 6.151
4
0.248 6.151
0.292 5.489
0.370 4.921
0.475 4.448
12
0.475 4.448
0.671 4.258
0.702 4.542
0.723 4.164
0.850 4.448
1.063 4.353
1.211 4.353
1.242 4.069
1.303 4.258
1.468 4.353
1.656 4.448
1.821 4.448
4
1.821 4.448
1.834 2.933
1.847 1.325
1.860 0.000
Any help would be appreciated.
Estes C6-3 Specifications
diameter 0.018 meters
length 0.070 meters
initial_mass 0.0241 kg
final_mass 0.0094 kg
max_liftoff_mass 0.1132 kg
measured_delay 2.47 s
total_impulse 8.82 N s
thrust_ranges 5
time s thrust N
5
0.000 0.000
0.031 0.946
0.092 4.826
0.139 9.936
0.192 14.090
4
0.192 14.090
0.209 11.446
0.231 7.381
0.248 6.151
4
0.248 6.151
0.292 5.489
0.370 4.921
0.475 4.448
12
0.475 4.448
0.671 4.258
0.702 4.542
0.723 4.164
0.850 4.448
1.063 4.353
1.211 4.353
1.242 4.069
1.303 4.258
1.468 4.353
1.656 4.448
1.821 4.448
4
1.821 4.448
1.834 2.933
1.847 1.325
1.860 0.000

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page