[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DS20 aid needed
Chris Albertson wrote:
>
> 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)
>
To be exact,
cl> hedit *.fits IMAGETYP '(IMAGETYP ?= "bias" ? "dark" : IMAGETYP)'
will do it, but the make-a-list approach has the advantage that it
only rewrites the files that need to be changed. "hedit *.fits"
rewrites every file.
This obviously depends on having IRAF installed. If you need to
install IRAF, I have some instructions I've written for myself
after fumbling through it about a half-dozen times; I might be able
to pull them together into something generally useful. It really
helps if you have the installation CD.
> 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.
>
Indeed. vi is a crufty old relic, but it builds character.
I'd say Emacs is better for program development, but sometimes
your only choice is vi. (Emacs is hard to learn because it's huge,
but it has a nice built-in tutorial that covers the basics pretty quickly.)
John