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

Home » Public Forums » archive » Re: Fuzzy searching of FITS header
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: Fuzzy searching of FITS header [message #74125 is a reply to message #74124] Tue, 21 December 2010 15:00 Go to previous messageGo to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Dec 21, 5:23 pm, David Fanning <n...@dfanning.com> wrote:
> Gray writes:
>> Does anyone have a routine that allows for fuzzy searching of FITS
>> header keywords?  For example, I have a header where I want the value
>> of the following keywords:
>
>> D001DEXP
>> D002DEXP
>> ...
>
>> I don't know a priori how many of them there are, and it would be nice
>> to be able to have a parsing program that would let me give 'DEXP' as
>> a search string and return all of them.  Any suggestions?  
>
> StrPos?
>
>> I know I
>> could construct something that did searches for up to 1000 keywords
>> (000-999) and aborted when it didn't find anything, but that would
>> defeat the purpose of IDL vectorization, wouldn't it?
>
> It's already vectorized! :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Well, sure. But what I WAS using was SXPAR, which pads the search
string w/ spaces and searches 8 characters.

I'm envisioning a routine that uses lists and hashes to return the
keyword and value for all keywords that match any number of search
strings... do I have the time/energy to write it?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idlgrtext fixed-width font
Next Topic: Re: idlgrtext fixed-width font

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

Current Time: Wed Oct 29 14:09:15 PDT 2025

Total time taken to generate the page: 0.04253 seconds