Date: Thu, 10 Feb 2011 17:57:19 -0500 (EST)
From: Ken Young 
To: Jun-Hui Zhao 
Cc: Claudia J. Cyganowski , eketo@cfa.harvard.edu,
     smamiriad@cfa.harvard.edu
Subject: Re: sma miriad problem

The online software supports source names up to 40 characters in length.
It is very easy to change the source names within mir, and the new name
can be shorter than the old one, if you wish.

Within mir, the array c.source contains all the source names within a
track:

IDL> print,c.source
uranus 3c111 0136+478 0237+288 0721+713 0102+584 2333-237 0750+125 0403-360
2203+317 2348-165 0730-116 0238+166 0423-013 0522-364 0830+241 0607-085
0927+390
0739+016 0339-017 3c84 0854+201 0920+446 0433+053 0359+509 0319+415 1058+015
0747-331 0538-440 1159+292 1310+323 1153+495 1224+213 0927-205 1230+123
titan

If you wish to change the name of, say 3c111 to 3C111_Catalog, you can
just issue the command

IDL> c.source[2]='3C111_Catalog'

and the source name will be changed:

IDL> print,c.source
uranus 3C111_Catalog 0136+478 0237+288 0721+713 0102+584 2333-237 0750+125
0403-360 2203+317 2348-165 0730-116 0238+166 0423-013 0522-364 0830+241
0607-085
0927+390 0739+016 0339-017 3c84 0854+201 0920+446 0433+053 0359+509 0319+415
1058+015 0747-331 0538-440 1159+292 1310+323 1153+495 1224+213 0927-205
1230+123 titan

If you export the data to miriad, the new name will be used in the miriad
file.

Taco


On Thu, 10 Feb 2011, Jun-Hui Zhao wrote:

> Hi Claudia,
>      Yes, Miriad only accepts 8 characters for source name.
> We discussed this issue sometime ago. I thought
> that SMA follows this restriction. Please let me know
> the filename (original one).
>      Jun-Hui
>
> On Thu, 10 Feb 2011, Claudia J. Cyganowski wrote:
>
> > Hi Jun-Hui,
> >
> > We're running into a problem.  We observed two sources per track, and
> > so need to run uvredo to fix the velocity of the source on which we didn't
> > dopplertrack.
> >

> > However, our source names are Gxxx.xxxx, and uvredo is failing on the fact
> > that this is more than 8 characters:
> >
> > eg
> > uvredo vis=rms_g19x_rx0.usb.dec4.if1.tsys.bp.bl.ph.amp
> > out=rms_g19x_rx0.usb.dec4.if1.tsys.bp.bl.ph.amp.dop options=smaveldop
> > dopsour=G192.6005 velocity=lsr
> > UvRedo: version 1.3 16-mar-06
> > ### Fatal Error [uvredo]:  KeyA: value "G192.6005" of keyword "dopsour" is
> > doesn't fit in its Fortran buffer, which is only 8 bytes.
> >
> > or in the 4 GHz version on my machine, it truncates the source name to 8
> > characters and then gives a "dopsour not found" error message.
> >
> > I'm hoping this might be an easy fix (just allow the dopsour name to be 12
> > characters, or 20, or some other larger number).
> >
> > Is there any chance you might be able take a look at this soon?  (Cormac
> > and Luke are leaving tomorrow afternoon, and this uvredo problem is now
> > more urgent than getting the wideband version of sma miriad running on
> > Ubuntu).
> >
> > Thanks very much,
> > Claudia
> >
>