[Casa-framework] Added quanta tool to casapy
Kumar Golap
kgolap at nrao.edu
Thu Sep 14 22:58:26 EDT 2006
An observation I have
Design wise ....right now quanta.quantity is not more useful that
quantity alone to use...
because i need to use a float and a string....e.g so i need to convert
myself to a float something i know in hours mins and seconds
if you look at the quanta examples in glish
http://aips2.aoc.nrao.edu/docs/user/General/node474.html#quanta
it can interprete a string and convert it to the right quatitty and units
qa.quantity('12h00m00')
gets converted to a time quamntity [0.5,''d']
qa.quantity('180d00m00')
gets converted to an angle quantity [3.142, 'rad')
etc etc...
So will that be possible to implement.
thanks
Kumar
On 9/14/06, Raymond Rusk <Raymond.Rusk at nrc-cnrc.gc.ca> wrote:
> Hi,
>
> Quit a bit of the quanta tool is functional so I have added it to
> code/casac/scripts/casapy.py so that it can be exercised. For my build, I
> had to run 'gmake componentslib' afterwards to make it available.
>
> Raymond
>
> --
> Dr. Raymond Rusk Dr. Raymond Rusk
> ALMA Software Engineer Ingénieur Logiciel ALMA
> National Research Council Canada Conseil national de recherches Canada
> Herzberg Institute of Astrophysics L'Institut Herzberg d'Astrophysique
> DRAO, P.O. Box 248 OFRA, B.P. Box 248
> Penticton, BC V2A 6J9 |\^/| Penticton, (C.-B.) V2A 6J9
> Government of Canada _|\| |/|_ Gouvernement du Canada
> Tel: (250)490-4347 > < Tél: (250)490-4347
> Fax: (250)493-7767 >_./|\._< Fax: (250)493-7767
> Raymond.Rusk at nrc-cnrc.gc.ca Raymond.Rusk at nrc-cnrc.gc.ca
>
More information about the Casa-framework
mailing list