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 
Switch to threaded view of this topic 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
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
>
Re: How to remove a line of data from a file [message #81964 is a reply to message #81963] Mon, 05 November 2012 13:36 Go to previous message
panklbj is currently offline  panklbj
Messages: 5
Registered: November 2012
Junior Member
The final list I want is

2
6
8
9
12
15
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 19:21:00 PDT 2025

Total time taken to generate the page: 0.00601 seconds