[Casa-framework] Added quanta tool to casapy
Wes Young
wyoung at nrao.edu
Fri Sep 15 03:04:44 EDT 2006
Kumar,
Yes indeed a variant is a variable with unkown type. You can look at
table_cmpt for examples.
wes
wyoung at aoc.nrao.edu
On 15 Sep 2006, at 07:40, Kumar Golap wrote:
>>
>> It might be better to do something on the Python end to convert
>> strings to
>> quantities in analogy with the glish. Then the C++ methods don't
>> have the
>> added overhead of string conversion code if it isn't needed.
>>
>> Anyway, I nearly certainly will not have time this month to write
>> the code
>> needed to generate valid quantities from arbitrary strings since
>> there is
>> considerable work to be done on the atmosphere component. Also,
>> rather
>> than using the existing Glish code as the specification, it would be
>> better to start from a formal specification of string formats that
>> should
>> be parsed.
>
> Its a design issue...how much can be transferred to C++ and how much
> can be done at all at the python level.
>
> The string format accepted are already defined in the glish
> quanta...so may be we should just use that as what we want
> implemented.
>
> Any example you can point me to the usage of a variant....A variant
> i'm guessing is a variable with no fixed type ...am i right ?
>
> I can help by writing some helper functions that will return a
> Quantity from String in C++
>
>
> Cheers,
>
> Kumar
> _______________________________________________
> Casa-framework mailing list
> Casa-framework at donar.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/casa-framework
More information about the Casa-framework
mailing list