Great. Thanks.
Gary
On Wed, Jan 20, 2010 at 01:13:30PM +0000, David Berry wrote:
> 2010/1/20 Gary Fuller <[log in to unmask]>:
> > Hi,
> >
> > I have some HARP data and would like to generate an ard file to
> > automatically mask out some strong lines in the spectra in the
> > timeseries datafiles. But I can't figure out how to do it.
> >
> > I know the frequencies of the lines and now have a perl script which
> > runs ndftrace fullframe and can tell which lines fall within the
> > frequency range covered by a given sdf file. (Is there any easier way
> > to do this?) I would like the perl script to write out an ard file
> > describing the region of the spectrum which contains a line so that
> > I can use ardmask to mask out this region of the spectrum for all time
> > and all receptors. The problem is that I don't know how to specify the
> > frequency, receptor and time range in the ard file.
>
> An ARD file such as:
>
> dimension(1)
> coframe(spectrum,system=freq,unit=GHz,StdOfRest=lsr)
> box(345,0.02)
> box(345.4,0.02)
> box(345.6,0.02)
> box(346.4,0.02)
> ...
>
> could be used with kappa:ardmask to mask a 3D harp cube. The "coframe"
> statement defines the coordinate system you want to use, and each
> "box" gives a spectral range to blank out. The first arg is the box
> centre and the second is the box width (both given in the coords
> specified by coframe). You can specify the coordinate system as
> precisely as you like in the coframe statement, using any Frame
> (http://starlink.jach.hawaii.edu/docs/sun210.htx/node575.html)or
> SpecFrame (http://starlink.jach.hawaii.edu/docs/sun210.htx/node604.html)
> attributes. The given boxes will be aligned automatically with the
> data, even if the data is in a different coordinate system.
>
> Any boxes that do not fall within the spectral range of the cube will
> be ignored.
>
> Hmmm.. I *think* this does not rely on any features added since the
> last Starlink release. But if it does, then the next release (Hawaiki)
> is due out yesterday.
>
> David
--
e-mail: [log in to unmask]
http://www.manchester.ac.uk/jodrellbank/~gaf
phone:+44-(0)161-306-3653/fax 275-4247, mobile:+44-(0)795-874-2596
Jodrell Bank Centre for Astrophysics, Alan Turing Building,
School of Physics and Astronomy,University of Manchester,
Oxford Road, Manchester, M13 9PL, UK
|