1. Engineering
  2. Computer Science
  3. to be done in python3 dppctxt popccsv these are the...

Question: to be done in python3 dppctxt popccsv these are the...

Question details

To be done in python3
The next set of data are from the KSV/Nima Langmuir trough in H208, and are compression isotherms of a single-molecule thick layer of lipid molecules on the surface of water. 9-11-2018 DPPC. txt 12-15-2018 POPC.cSV had difficulity opening this data with numpy, loadtxt but numpy has more robust methods as wel, lke numpy betore the actual data begins? Use the genfromtext Use the file command.) How many columns of data are there? How many lines of additional information are there of data again with io.Stringt0. Finally read the data into a float variable for plotting using numpy.genfrontext. Here is one Python buit-in commands open and read to load the data as a string. Then convert that string into a file lecular area example that loads the data. Make two plots of the data. Show the isotherm by plotting surface pressure (r or variable P1) versus mean mo (surface area divided by the number of molecules. A/N or variable Mma), in other words a plot of the ideal gas law for 2D (TA NkgT) for constant You will note that over time the surface pressure settles to a vlaue around 30 mNi/m for F of 1400 seconds. OPC and 45 mN/m for DPPC. So filedata string open( 12-15-2018 POPC.cSv. r.encoding- ISO-8859-1-.read filedata io io.String10(filedata string) data nunpy.genfromtxt (fi tedata io,dtype-float,delimiter-, ,skip header-1,unpack-True)

DPPC.txt

t[s] P2[ mN/m] 0.02 0.00024. 23 10.18 0.800 5.000 236.55 144.15-0.798 0.000 24.22 20.32 1.641 5.000 235.29 143.38 -0.851 0.00024.21 30.482.483 5.000 234.03 142.61 -0.845 0.000 24.21 40.62 3.324 5.000 232.76 141.84-0.879 0.00024.22 50.634.149 5.000 231.53 141.09 -0.812 0.000 24.23 60.76 4.991 5.000 230.26 140.320.779 0.00024.23 70.925.8345.000 229.00 139.55 0.760 0.00024.23 80.936.666 5.000 227.75 138.78 -0.811 0.000 24.24 91.14 7.5095.000 226.49 138.01-0.836 0.00024.24 101.31 8.348 5.000 225.23 137.25-0.849 0.000 24.25 111.32 9.183 5.000 223.98 136.48-0.812 0.000 24.25 121.33 10.0185.000 222.72 135.72 -0. 751 0.000 24.25 131.33 10.842 5.000221.49 134.97 -0.783 0.000 24.25 141.53 11.692 5.000 220.21 134.19 -0.809 0.000 24.25 151.55 12.516 5.000 218.98 133.44 -0.788 0.000 24.25 161.72 13.367 5.000 217.70 132.66 -0.783 0.000 24.25 171.92 14.206 5.000 216.44 131.89 -0.742 0.000 24.25 182.11 15.057 5.000 215.16 131.12 -0.692 0.000 24.26 192.32 15.899 5.000 213.90 130.35 -0.637 0.000 24.26 202.52 16.749 5.000 212.63 129.57 -0.648 0.00024.26 AD[ V] 0.000 0.000 237.75 144.88 -0.796 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.09 0.09 0.09 0.09 0.09 00.26 .0 55 0.09 0.09 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10 0.10

POPC.csv

237.75 250.030.399 0 236.58 248,8 0.429 235.33 247.48 0.363 214.0 246.17 -0.3280 232.82 244,85 0.439 231.5 243.53 30 230.3 242.2 0.464 0 229.0S240.88 0.456 o 227.79 239.56 0.459 0 226.52 238.230.395 o 225.25 236,89 0.416 224 235.5704120 222.74 234.25 0.391 0 221.47 232.92 0498 o 220.21 231.59 0.498 O 218.95 230.26 0.506 o 217.69 228.93 0461 216.43 227,610.358 0 215.16 226.280.361 213.91 224.9 0.359 0 212.65 223.64 0.379 0 211.39 222.3 0.401 0 210.12 220.9 0.4780 20H. 219.680.465 O 207.04 21.37 0.460 206.39 217.05 0.428 205.14 215.74 0.4060 203.85 214.4 0.374 0 202.6 213.070.347 0 201.35 211.75 0.471 0 200,09 210.430.489 0 198.83 209.1 0.402C 97.57 207.770.4 196.32 206,46 0401 95.05205.13 0.371 93.8 203.81 0.352 0 102.54 202.49 -О-396 191.28 201.16 0.3550 90,02 199.830.394 88.75198.51 0.461 187.5 197.190.4380 86.25 195,89 0.339 185.02 194.57 04630 183.75 193.250.330 182.48 191.90.3850 181.23 190.590.312 0 179.97 189.260.296 178.71 187.95 0.303 177.45186.62 0.308 176.19 185.29 0.251 174.94 183.9B 0.311 173.69 182.66 0.271 0 172.44 181.35 0.303 0 171.19 180.040.2460 69.92 178.69 0.219 168.68 177.39 0166 16741 176.06 0.005 0 10.07 0.7835 20.07 6175 0.13 2.49 S 40.21 3.284 5 50.39 4.124 S 23.53 80.67 90.857.4845 101.05 8.3325 23.59 .166 S 121.26 131.42 10.851 S 141.S 11692 S 23.57 23.58 161.913.375S 172.03 14.216 5 182.1815.057S 202.35 16.733 5 212.5 17.572 5 222.64 18.417 5 232.65 9.242 5 242.66 20.0745 252.75 20.907 5 262.53 21.741 5 27297 22.5915 283.16 23.434 5 293.21 24.275 303.425.107 5 313,53 25.949 5 323.69 2.795 33.7 27.623 5 143,5 28.467 S 53.59 29.299 S 164.07 30.139 S 374.19 30.982 5 384.39 31.823 5 394.45 32.664 5 404.54 33.459 5 414.56 34.324 5 424.635.16S 34.7335.959 S 444.9236.849S 454.9637.682 5 465.11 38.523 5 23.49 23.44 23.44 23.42 495.4 41.039 5 503.59 41.874 S 15.53 427075 525.58 43.541 5 535.73 44.373 5 545.92 45.223 5 555.92 46.048 5 565.99 46.89S 23.38 23.38

These are the first 20 lines of both files. It does not allow me to copy the text. the question is too long error occurs. so i upload the pics. Please answer at your best.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution