Question: For this problem we will read in some parameters a text file and then write the answer to another text file. We will use NumPy.
For this problem we will read in some
parameters a text file and then write the answer to another text file. We will use NumPy.
You have been researching and came across an equation that describes discharge of a well
held at constant head as a function of time td and four parameters and The
equation is as follows:
a Point You received a comma separated value file from your colleague. The file
has a header containing the parameter names. You want to use these values to
calculate the discharge of the well at and a half days Create a string
variable and set it equal to the csv file name.
b Points Now use create a new variable called params and populate it using the
nploadtxt function to read in the parameters. hint don't forget to set the
delimiter and skiprows parameters
c Point Use the print function to print out the variable params no complete
sentence required
d Point Create a variable for the time td and set it equal to
e points Create the for parameter variables and and set them to the
right values from the parameter file. Hint use the to access the params list
f Points Calculate the discharge at days and store it to a new variable
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
