Indexes

Most of the settings used an index similar to that used in IDL to specify what filter it applies to. It is important to make sure that the index you specify corresponds to the filter you think it does. The filter index is largely correlated with the flag used in your input file. For example, ponder the following valid input file:

hiderr[2]
filtername[0] = 'B'
filtername[1] = 'V'
filtername[2] = 'I'
colornames[0] = 'Steel Blue'
colornames[1] = 'Lawn Green'
colornames[2] = 'Dark Khaki'
0 1895.82250977 25.739 0.1320
0 1494.77758789 25.842 0.1490
0 1895.75512695 25.493 0.1090
0 1494.91149902 25.523 0.1160
0 1895.93774414 26.127 0.1970
0 1494.84423828 25.455 0.1200
0 1895.88916016 26.031 0.1670
0 1895.87036133 25.727 0.1430
1 1494.64355469 26.689 0.3060
1 1895.80371094 25.653 0.1360
1 1895.46984863 25.641 0.1160
1 1895.53515625 25.651 0.1210
2 1494.44152832 25.604 0.1100
2 1895.66918945 24.907 0.0680
2 1494.39428711 25.598 0.1140
In this case, the filter indexes used by the settings have a one to one correspondance with the flags used in the data lines. However, fitlc actually re-numbers all flag indexes you specify. It re-numbers them so that the internal flags are always sequential. What this means is that if you changed the last three lines so that they said the following:
4 1494.44152832 25.604 0.1100
4 1895.66918945 24.907 0.0680
4 1494.39428711 25.598 0.1140
You would not have to change any of the settings in the file. Internally, fitlc would still refer to the filters as 0,1, and 2. In fact, if you tried to set something like 'hiderr[4]', you would get an error. To add to the confusion, fitlc re-numbers flag indexes so that the lowest flag index you specify becomes the index '0'. What this means is that if you used negative flags or started labeling at 1, you would still start your filter indexes at 0. So for instance, this would be a perfectly valid input file that would give the exact same results as above.
hiderr[2]
filtername[0] = 'B'
filtername[1] = 'V'
filtername[2] = 'I'
colornames[0] = 'Steel Blue'
colornames[1] = 'Lawn Green'
colornames[2] = 'Dark Khaki'
1 1895.82250977 25.739 0.1320
1 1494.77758789 25.842 0.1490
1 1895.75512695 25.493 0.1090
1 1494.91149902 25.523 0.1160
1 1895.93774414 26.127 0.1970
1 1494.84423828 25.455 0.1200
1 1895.88916016 26.031 0.1670
1 1895.87036133 25.727 0.1430
2 1494.64355469 26.689 0.3060
2 1895.80371094 25.653 0.1360
2 1895.46984863 25.641 0.1160
2 1895.53515625 25.651 0.1210
3 1494.44152832 25.604 0.1100
3 1895.66918945 24.907 0.0680
3 1494.39428711 25.598 0.1140