[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DS20 aid needed



I've been using IRAF.  The below is from memory.

I would use "hedit".  I think the string

hedit *.fits IMTYPE dark

Would change every file.  You may want to first build a list
of files that need changing if you can't usa a wild card.
I used "hselect" for that.

hselect *.fits IMTYPE "IMTYPE='bais'" > listofdarks

Writes all the filenames of FITS files IMTYPE=bais to a file
called "listofdarks"

and then I can have hedit work on the list of darks by
using syntax like "hedit @listofdarks ....
hedit will let you give a filename containg a list in the place of
a filename or a wildcard.

Installing IRAF involves more than just "cl".  Maybe 2000 files
need to be "someplace".  "cl" actually goes in /usr/local/bin
as a soft link back to some place in the /iraf directory tree.
This should all be set up.  See if just typing "iraf" works.
if not try "/usr/local/bin/cl".

There are stand alone versions of "hedit" around that do the same
complex mass edits with conditional expressions and soon.  I can
hunt one down if I don't see someone else finding it first.


There may be a better way.  for example I think I could simply
tell hedit to set IMTYPE to "dark" only if it is equal to bias
by setting IMTYPE to the conditional expresion
(IMTYPE==bias? dark : IMTYPE) then I would not need the hselect
run.  But I use the "listofdarks" for other purposes (like making
a master dark)





About vi, You should be able to use the arrow keys to move the
cursor.  Give the authors of vi some credit.  It was the first
time anyone had the idea of moving a cursor in two dimensions and
it was built as an extension of an old existing line editor.  This
thing predates the graphical screen editor and the concept of
software usability studies by a decade.


--- Tom Droege <tdroege2@earthlink.net> wrote:
> Those of you that have actually worked on DS20 should be able to
> handle 
> this one.
> 
> As you know, the dark files are incorrectly labeled "bias" in the
> fits 
> headers.  How can I do a global edit on a directory of .fits files to
> 
> change the "bias" to "dark"?  (If worst comes to worst, I will just
> go take 
> a new set of darks, but it seems like it will be useful to know how
> to do 
> this.)
> 
> I am now running my Linux system and beginning to get familiar with
> it's 
> use, but it is still a struggle.  I am even using vi to edit instead
> of the 
> graphical editor.  Where in the world did they come up with that
> awful key 
> grouping?  They obviously gave no thought to ease of use.  hjkl
> requires 
> moving off the home keys.  :q!  Indeed!  Two shifts!!  This does not
> even 
> make sense on a KSR33.
> 
> In any case, I am ready to try to load some utility to edit the .fits
> 
> header.  Chris, as you know, I have cl on the machine you set up for 
> me.  Will just putting cl into my /usr/bin directory get me IRAF, or
> are 
> there other files to move also?
> 
> While I am asking questions,
> 
> 1.  Mandrake 8.1 lists directories in splendifferous colors.  Red,
> blue, 
> green, even blinking!  What do the colors mean?  What does a trailing
> * 
> mean?  Looks like you get a ~ on a changed version of a file?  I seem
> to 
> have piles of Linux books, but none seem to be properly indexed.  I
> do like 
> the Unix course text.  "Practical UNIX" by Steve Moritsugu.
> 
> 2.  I still have a problem with mount.  I can only umount the cdrom
> from 
> the directory where I mounted it.  Is this the way it works?
> 
> Tom Droege
> 
> 


=====
Chris Albertson 
  Home:   310-376-1029  chrisalbertson90278@yahoo.com
  Cell:   310-990-7550
  Office: 310-336-5189  Christopher.J.Albertson@aero.org

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com