comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to remove a line of data from a file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to remove a line of data from a file [message #81963] Mon, 05 November 2012 14:27 Go to previous message
wlandsman is currently offline  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
>
[Message index]
 
Read Message
Read Message
Previous Topic: How to remove a line of data from a file
Next Topic: IDL 8.2.1 HDF/HDF5 libraries?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:37:23 PDT 2025

Total time taken to generate the page: 0.95856 seconds