Hello Anonymous Questioner,
First - you will probably be told this isn't the correct email list for this
question - this is a general python tutorial list, while your question is numpy
specific, so if this doesn't help, you should probably look to another email
list.
There are a couple general
I have many ncfiles each containing one month of hourly temperature data.
I have worked out how to loop through a number of ncfiles and calculate the
mean for each file at a particular time and even plot this and output as a
*.png.
What I am unsure of is how to calculate the mean at a particular ti
Shwinn Ricci wrote:
Say I have a point that I want to visualize by placing a small marker there
on the surface of an object. However, what if it's a 3-dimensional object?
Would you just use a 3-D coordinate system and then use a rotatable camera
script to wheel around and get a better view of the
Shwinn Ricci wrote:
however, I want to convert position to a floating point number, as the
actual cell value is in the form of X.XXX (where X = digits). When I try
float(position) I get a ValueError saying that the string could not be
converted to a float. What am I doing wrong?
Inspect the st
On Wed, Aug 10, 2011 at 3:16 PM, Shwinn Ricci wrote:
> I am reading values from excel using xlrd and using a variable to store
> them in (as part of a loop), as such:
>
> position = sheet.cell(j, i).value
>
> however, I want to convert position to a floating point number, as the
> actual cell va
Not sure since a simple float("1.111") worked for me
try type() to see what your variable is being returned as.
On Wed, Aug 10, 2011 at 3:16 PM, Shwinn Ricci wrote:
> I am reading values from excel using xlrd and using a variable to store
> them in (as part of a loop), as such:
>
> position =
I am reading values from excel using xlrd and using a variable to store them
in (as part of a loop), as such:
position = sheet.cell(j, i).value
however, I want to convert position to a floating point number, as the
actual cell value is in the form of X.XXX (where X = digits). When I try
float(po
Say I have a point that I want to visualize by placing a small marker there
on the surface of an object. However, what if it's a 3-dimensional object?
Would you just use a 3-D coordinate system and then use a rotatable camera
script to wheel around and get a better view of the point?
__
On 10/08/11 10:41, Walter Prins wrote:
Hi
Steven D'Aprano wrote:
> Thousandth digit??? Python doesn't support floating point numbers
... except of course if you're using an arbitrary precision math package
like mpmath or bigfloat. (I would've thought the fact that the original
poste
Hi
Steven D'Aprano wrote:
> > Thousandth digit??? Python doesn't support floating point numbers with a
> > thousand digits! I think about seventeen is about the limit.
>
... except of course if you're using an arbitrary precision math package
like mpmath or bigfloat. (I would've thought the fact
Steven D'Aprano wrote:
> Shwinn Ricci wrote:
>> When comparing a given value with a database of values, but allowing for
>> freedom due to variation at say, the thousandth digit, how does one
>> generalize the precision to this degree? I don't want to truncate, so is
>> there a round() function th
11 matches
Mail list logo