fill in 3D array


I am a python newbie, trying to convert my IDL scripts to python. I am kind of stuck at the moment. I am reading in a 1-D data file with 2000 data points. I need to put them in ...
Posted On: Sunday 11th of November 2012 09:11:03 PM Total Views:  534
View Complete with Replies

RELATED TOPICS OF Python Programming PROGRAMMING LANGUAGE




How to find duplicate 3d points?

I have a large data file of upto 1 million x,y,z coordinates of points. I want to identify which points are within 0.01 mm from each other. I can compare the distance from each point to every other point , but this takes 1 million * 1 million operations, or forever! Any quick way to do it, perhaps by inserting just the integer portion of the coordinates into an array, and checking if the integer has already been defined before inserting a new point
VIEWS ON THIS POST

188

Posted on:

Sunday 4th November 2012
View Replies!

Re: Automatically fill in forms on line

Jackie Wang wrote: > Dear all, > > I want to automatically complete the following task: > > 1. Go to http://www.ffiec.gov/Geocode/default.aspx; > 2. Fill in an address in the form "Street Address:" . e.g. "1316 State > Highway 102"; > 3. Fill in a ZIPcode in the form "Zip Code:" . e.g. "04609"; > 4. Click the bottom "search"; > 5. In the opened page, extract and save the number after "Tract Code". > In the example, it will be "9659". > 6. Repeat Step 1 with a new address. > > Can Python realize these steps Can these steps be done witout > openning and IE windows Especially, I dont know how to write code for > step 2, 4 and 5. > Look at the mechanize library at http://wwwsearch.sourceforge.net/mechanize/ > Thank you! A pleasure. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
VIEWS ON THIS POST

138

Posted on:

Sunday 4th November 2012
View Replies!

while-loops enter the last time after condition is filled?

it seems to me from my results that when i use a while-loop it will execute once after the condition is met. ie the conditions is met the code executes one time more and then quits.
VIEWS ON THIS POST

170

Posted on:

Sunday 4th November 2012
View Replies!

You can earn Rs.25000 very month from internet. This is easy formfilling jobs. Work less than 1 hr daily. No investment. Please visit the

You can earn Rs.25000 very month from internet. This is easy form filling jobs. Work less than 1 hr daily. No investment. Please visit the website http://mahesbiotech.googlepages.com/
VIEWS ON THIS POST

205

Posted on:

Sunday 4th November 2012
View Replies!

=?ISO-2022-JP?B?GyRCIighehsoQmJ1eSBjaGVhcCBqb3JkYW4gc2hveGoxMi9qMTMvajE0L2oxNy9qMTgvajE5L2o=?==?ISO-2022-JP?B?MjEvajIzIGNsb3RoZSBqZWFuIGhhbmRiYWcbJEIhWhsoQiQxOS45ORskQiFbGyhCd3d3LmNoZWFwZXN0LXNlbGwuY24bJEIhehsoQg==?==?ISO-2022-JP?B?GyRCIigbKEI=?=

.every one, our company have much cheap product . please visit our web, And chose the product of your like ,let go ,hope you shiping happy ,Go www.cheapest-sell.cn Hotmail:cheapestsell@hotmail.com Yahoo: cheapestsell@yahoo.com.cn www.cheapest-sell.net Nike Air Jordan 1 ,Nike Air Jordan 2 Shoes,Nike Air Jordan 3,Nike Air Jordan 4 Shoes ,Nike Air Jordan 5 Chaussure Shoes,Nike Air Jordan 6 Catalog ,Nike Air Jordan 7 Shoes Catalog , Nike Air Jordan 8 Customized ,Nike Air Jordan 9 Shoes Customized ,Nike Air Jordan 10 Wholesalers,Nike Jordan 11 Shoes Wholesalers,Nike Air Jordan 12 retailer,Nike Air Jordan 13 Shoes Factory ,Nike Air Jordan 14 Shoes Sell,Nike Air Jordan 16 Exporter ,Nike Air Jordan 17 Shoes Exporter, Nike Air Jordan 18 Offer, Nike Air Jordan 19 Shoes Offer,Nike Air Jordan 20 Manufacture,Nike Jordan 21 Shoes Manufacture,Nike Jordan 22 CUSTOMIZED , We Import&Export&Trading&Retail&sell&buy&distribution& Wholesale Nike footwear and Nikes Sneakers Jordans Sneakers to this market: USA,America,US,United States,UK,England,United Kingdom,IT,Italy, NT,Netherlands,China,Chinese,Germany,DE,Greece,GR,France, FR,Spain,Portugal,Switzerland,Switzerland,Brazil,Chile,Peru,C Korea,Australia,Hongkong,Canada,Mexico,Etc Nike shoes | china nike shoes | air jordan sneakers | cheap gucci shoes | cheap prada sneakers | gucci sneakers | mix jordan sneakers | chanel sandals | gucci sandals | dior sandals | wholesale jordan sneakers | nike running shoes | nike stock shoes | air jordan at whlesale price | nike shoes air jordan supplier from in china | Lacoste Trainers | puma trainers | louis vuitton purse | prada purse | gucci handbags | chanel purse | coach purse | nike bas kerball shoes | Nike Sneakers| cheap nike sneakers | nike shoes from china | nike replica | copy nike sneakers | nike factory stores | nike stores Nike wholesale - Nike shoes wholesale nike jordan sneakers wholesale( www.cheapest-sell.cn) We (http: //www.cheapest-sell.cn) Wholesale Cheap Jordan Shoes,Michael Jordan Shoes,Nike Jordan Basketball shoes, ... Jordan Shoes,Air Jordan Sneakers,Air Jordan Wholesale of the Air Jordan sneakers have Nike Air in the shoes.Authentic quality Jordan Sneakers Custom Jordan Sneakers Wholesale Jordan Sneakers gucci sneakers prada sneakers in www.cheapest-sell.cn,lv chanel coach dior DG DSQUARED2 DIESEL,miumiu handbags sneakers,shoes,t- shirts,jeans,jackets.We sale new Nike Sneakers,Air Jordan Sneakers,AIR FORCE 1S,Nike Dunks SB,Bape Sta from nike outlets and factory stores,also Nike wholesale-Jordan Shoes,sneakers! china online store! Cheap Lacoste Trainers Please,Lacoste Trainers for Women,Lacoste Shoes Online,Lacoste Shoes for Women,Buy Lacoste Trainers Online,Lacoste Sneakers(www.cheapest-sell.cn) Lacoste Footwear,Black Lacoste Trainers,Lacoste Trinity Trainers(www.cheapest-sell.cn) Lacoste Leisure ***** cheap nike dunks,cheap gucci sneakers(www.cheapest-sell.cn) cheap sunglasses factory,wholesale nike tshirts,cheap air jordans (www.cheapest-sell.cn) nike sb china wholesale,cheap puma sneakers,sneaker wholesale china,jordans sneakers,gucci shirts wholesale,cheap bape trainers,shoe wholesalers in china,cheap nike sneakers,DISCOUNT nike SNEAKERS,Tennis Sneakers,gucci Sneakers, Prada Sneakers,Shoes Jordan's + Wholesale,jordan wholesale manufacturers,nike customes,cheap wholesale jordans *****cheap tiffany necklace,gucci shoes shop,Wholesale Distributor Authentic Nike Shoes,wholesale air forces and jordans,dsquared manufacturers,dsquared womens shoes,dsquared2 jeans,dsquared2 shoes ed hardy caps,ed hardy caps cheap,ed hardy for cheap,ed hardy hats for cheap addidas wholesalers distributor(www.cheapest-sell.cn) bulk air force ones for sale(www.cheapest-sell.cn) Burberry Handbags made in China(www.cheapest-sell.cn) BUY ARMANI SHOES(www.cheapest-sell.cn) Buy holesale from china GUCCI(www.cheapest-sell.cn) buy jordans made in china(www.cheapest-sell.cn) buy nike shoes at wholesale price(www.cheapest-sell.cn)
VIEWS ON THIS POST

119

Posted on:

Monday 5th November 2012
View Replies!

matplotlib fill command on axes plot problem

I am trying to use the fill command to draw a box around an object in an image. I can get the box drawn, but there seems to be a side effect. The fill command is adding white lines to the top and sometimes right side of my axes plots. I am using small images, 124x200, and after the fill command the axes plot is changed to 140x200, with the top 16 lines being all white. I am running it in interactive mode from the python command line. Here is code that reproduces the problem. from pylab import * im_array = zeros((124,200)) ion() figure() imshow(im_array) hold(True) x=40 y=40 fill([x-5,x+5,x+5,x-5],[y+5,y+5,y-5,y-5],ec='r', fill = False) hold(False) Any thoughts on what I might be doing wrong
VIEWS ON THIS POST

218

Posted on:

Monday 5th November 2012
View Replies!

any function to fill zeros to the right?? zfill??

if I want to fill zeros to the right, what function can help\t ex: '1.23'=>'1.2300' but '1.23'.zfill(6)=>'001.23'
VIEWS ON THIS POST

165

Posted on:

Wednesday 7th November 2012
View Replies!

RE: Automatically fill in forms on line

> On Behalf Of Jackie Wang > I want to automatically complete the following task: > > 1. Go to http://www.ffiec.gov/Geocode/default.aspx; .... > > Can Python realize these steps Can these steps be done > witout openning and IE windows Especially, I dont know how > to write code for step 2, 4 and 5. I suggest looking at mechanize: http://wwwsearch.sourceforge.net/mechanize/ If you're going to do this frequently, you also might want to check out the site's policy on robots. Mechanize does have a function to automatically handle a site's robots.txt.
VIEWS ON THIS POST

133

Posted on:

Wednesday 7th November 2012
View Replies!

Automatically fill in forms on line

Dear all, I want to automatically complete the following task: 1. Go to http://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form "Street Address:" . e.g. "1316 State Highway 102"; 3. Fill in a ZIPcode in the form "Zip Code:" . e.g. "04609"; 4. Click the bottom "search"; 5. In the opened page, extract and save the number after "Tract Code". In the example, it will be "9659". 6. Repeat Step 1 with a new address. Can Python realize these steps Can these steps be done witout openning and IE windows Especially, I dont know how to write code for step 2, 4 and 5. Thank you!
VIEWS ON THIS POST

110

Posted on:

Wednesday 7th November 2012
View Replies!

help please, splitter windows like in maya or 3ds max

hi, there, I am doing a 3D modeling project. I like to do it with Python( am a newbie), but have no idea with the wxSplitterWindow to create the 4-view windows( top, front, side, perspective), like the mfc CSplitterWnd guy), anyone can give me some help with wxPython
VIEWS ON THIS POST

265

Posted on:

Wednesday 7th November 2012
View Replies!

Plotting 3d points

Anybody know of a simple way to plot 3d points Nothing fancy, just points. I've tried looking into Mayavi, but can't really find out how to get get 3 arrays (x,y,z) into a vtk file. I've also seen mlab mentioned, but how do I install that, and import it I can't get the examples i've seen of mlab to make any sense (the importing the module part, that is!). Rasmus Kjedlsen
VIEWS ON THIS POST

156

Posted on:

Wednesday 7th November 2012
View Replies!

how to join array of integers?

i think in Ruby, if you have an array (or list) of integers foo = [1, 2, 3] you can use foo.join(",") to join them into a string "1,2,3" in Python... is the method to use ",".join() but then it must take a list of strings... not integers... any fast method
VIEWS ON THIS POST

179

Posted on:

Wednesday 7th November 2012
View Replies!

ctypes help for "array of character pointers" as an output parameter

I'm wrapping a C function exists in a shared library. Its prototype looks like as follows int getFileNames(int aSize, char **names); The documentation says that the asSize is the number of entries to be returned and names is output array of character pointers of at least aSize elements. So, I defined a function prototype in python, follow ctypes tutorial, and try to run it. The following code section shows what I did. _getNames = TheLib.getNames _getNames.restype = c_int _getNames.argtypes = [ c_int, POINTER(c_char_p) ] def getNames(): aSize = 1024 names = (c_char_p * arraySize)() rc = _getNames(aSize, names) After that, I make a call to getNames() in my python program and, unfortunately, either TypeError or Segmentation fault. Sigh... I wonder that whether the _getNames prototype definition in my code section is correct\t If it isn't, I guess so, how do I do a right one Another, whether the usage in getNames() is correct\t Appreciate for any reply or recommendation.
VIEWS ON THIS POST

148

Posted on:

Wednesday 7th November 2012
View Replies!

Numpy array index handling

Being a Matlab user wanting to switch to Python/SciPy, I'd like to know how the following Matlab code would be written in Python: % First, just some artificial data N = 1000000 ; input = sign(randn(1, N)) ; a = (1 : N) ; % This is what I'd like to do; % for indices where the input has a certain value, compute and store something % for indices where the input has another certain value, compute and store something else output(input < 0) = 10 * a(input < 0) ; output(input > 0) = 20 * a(input > 0) ; I have tried the following in Python: N = 1000000 input = sign(randn(N)) a = arange(N) output = zeros(N) output[input < 0] = 10 * a[input < 0] output[input > 0] = 20 * a[input > 0] However, that gives me in IndexError. Of course I could use a for-loop, but I assume that there is another way (although I haven't been able to find it in any documentation). Many
VIEWS ON THIS POST

164

Posted on:

Saturday 10th November 2012
View Replies!

Re: arrays

Marlin Rowley wrote: > : > > Say I have an array: > > a = (['rrrrggggbbbbaaaa'],['rrrrggggbbbbaaaa']) > > How do I make it so that I now have: > > starting with first element (a[0]) > new_arr[0] = 'r' ...
VIEWS ON THIS POST

148

Posted on:

Saturday 10th November 2012
View Replies!

array in class

class A: this_is_original_variable_only_for_one_inctance = 0 def __init__(self, v): self.this_is_original_variable_only_for_one_inctance = v class B: this_is_common_for_all_instances = [] def __init__(self, v): self.this_is_common_for_all_instances.append(v) ---------------- now I can create some instances of B, but all of them have the same array, why if I ...
VIEWS ON THIS POST

168

Posted on:

Saturday 10th November 2012
View Replies!

On copying arrays

Is there a conceptual difference between best =test[:] and best = [x for x in test] test is a list of real numbers. Had to use the second form to avoid a nasty bug in a program I am ...
VIEWS ON THIS POST

134

Posted on:

Saturday 10th November 2012
View Replies!

pass float array(list) parameter to C

In my program, python is communicated with C use ctypes . I can't find a better way to pass float array(list) parameter to C function. Can someone give me a help...
VIEWS ON THIS POST

142

Posted on:

Saturday 10th November 2012
View Replies!

arrays in lists

Hi! I have a list of arrays and want to find an array with list.index(x). Is that possible. I get an ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() For ...
VIEWS ON THIS POST

164

Posted on:

Saturday 10th November 2012
View Replies!

Re: WindowsXP/ CTypes - How to convert ctypes array to a string?

dudeja.rajat@gmail.com wrote: > I've used CTYPES module to access a function from a dll. This function > provides me the version of the dll. This information is accessible to > me as an array of 4 long inetegers. information as ...
VIEWS ON THIS POST

173

Posted on:

Sunday 11th November 2012
View Replies!