partab quirk
sw wrote on Apr 29, 2008
Morning!
I have a standard observations file (created using mknobsfile) and want my script to correct the object names with the correct Landolt catalogue names. The script is written and fully working apart from one small unforeseen problem that I was hoping someone might be able to help me with.
Basically, the file looks something like this:
I use partab to edit the 110-2 value in column 1, row 1, to something like 110_330.
However, when I do this, it only copies in "110_3" which I assume is because it only allows the same number of characters as are already there initially (5).
Is there any way of forcing it to allow 7 characters?
Much appreciated,
Sam
I have a standard observations file (created using mknobsfile) and want my script to correct the object names with the correct Landolt catalogue names. The script is written and fully working apart from one small unforeseen problem that I was hoping someone might be able to help me with.
Basically, the file looks something like this:
110-2 B 3:32:27.2 1.382 1118.693 628.235
* V 3:36:19.2 1.397 1117.285 632.740
* I 3:41:51.8 1.419 1115.004 629.949
110-3 B 3:32:27.2 1.382 934.606 729.654
* V 3:36:19.2 1.397 933.315 733.874
* I 3:41:51.8 1.419 930.572 731.368
I use partab to edit the 110-2 value in column 1, row 1, to something like 110_330.
partab("110_330","standobs",1,1)However, when I do this, it only copies in "110_3" which I assume is because it only allows the same number of characters as are already there initially (5).
Is there any way of forcing it to allow 7 characters?
Much appreciated,
Sam
Mike Fitzpatrick wrote on Apr 29, 2008
You're correct that the string replaces only up to the same number of chars that are currently permitted for the column. this is enforced by the TABLES library code and not the task so there is no way to change this behavior other than to modify the table to the solumn is e.g. 7 chars wide instead of 5.
Cheers,
-Mike
Cheers,
-Mike
Last post on Apr 29, 2008