Re: How to remove a line of data from a file [message #81963] |
Mon, 05 November 2012 14:27 |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
I find Craig Markwardt's cmset_op.pro very useful for this sort of thing.
( http://cow.physics.wisc.edu/~craigm/idl/down/cmset_op.pro )
IDL> a = [1,2,4,5,6,8,9,10,12,15,16]
IDL> b = [1,5,10,16]
IDL> print,cmset_op(a,'and',/not2,b)
2 4 6 8 9 12
15
On Monday, November 5, 2012 4:34:46 PM UTC-5, pan...@gmail.com wrote:
> I have got two list, list A is a longer one which has got some non-repetitive numbers and list B is a shorter one which has got some numbers from list A(the numbers in list B are again non-repetitive). I mean what is contained in list B is also found in list A. Now I need to remove those numbers found in list B from list
>
|
|
|
|