You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example the information in both catalogs in the same. But the new syntax allows more possibilities, for example adaptive binning, or combining spectra from different instruments (or passbands) with large gaps in between or different spectral resolutions. The ```tr``` (transmission) column, which is just a binary "use/don't use" flag becomes useless since the grid does not need to be uniform anymore.
414
416
415
417
Even when using the old format, the treatment of these spectrum files is also more correct in FAST++. The ```bin``` column correctly combines multiple data points into a single measurement (using inverse variance weighting) rather than simply using the first value of a bin (why this is implemented in this way in FAST-IDL, I do not know). The order of the columns in the file do not matter, while FAST-IDL assumes a fixed format (but does not tell you).
418
+
419
+
420
+
# Additional documentation
421
+
422
+
## Adding new filters
423
+
424
+
For compatibility reasons, the filter database format is the same as that of EAzY and FAST. This is an ASCII/text file which contains all the filters, listed one after the other. The format must be:
425
+
```
426
+
num_pts [optional extra information...]
427
+
id lam trans
428
+
id lam trans
429
+
id lam trans
430
+
...
431
+
num_pts [optional extra information...]
432
+
id lam trans
433
+
id lam trans
434
+
id lam trans
435
+
...
436
+
```
437
+
438
+
In this example ```num_pts``` must be the number of data points in the filter response curve. Then for each data point, ```id``` is the identifier of that point (unused), ```lam``` is the wavelength in Angstrom, and ```trans``` is the filter transmission at that wavelength.
439
+
440
+
The overall normalization factor of the filter transmission does not matter, as the filters are always automatically re-normalized to unit integral before being used in the fit. If ```FILTERS_FORMAT=0```, the integral of ```lam*trans``` is normalized to unity, and if ```FILTERS_FORMAT=1``` then the integral of ```lam^2*trans``` is set to unity. This is exactly the same behavior as in FAST and EAzY.
441
+
442
+
To add new filters, simply append them to the end of the ```FILTER.RES``` file following the format above. For example, if your filter has 11 data points you would write:
443
+
```
444
+
...
445
+
11 my custom favorite filter (lambda0=5000 A)
446
+
1 4000.0 0.00
447
+
2 4200.0 0.10
448
+
3 4400.0 0.20
449
+
4 4600.0 0.40
450
+
5 4800.0 0.50
451
+
6 5000.0 0.55
452
+
7 5200.0 0.60
453
+
8 5400.0 0.40
454
+
9 5600.0 0.20
455
+
10 5800.0 0.10
456
+
11 6000.0 0.00
457
+
```
458
+
459
+
The wavelength step of the tabulated filter does not need to be constant, and the filter is assumed to have zero transmission below the minimum and above the maximum tabulated wavelength.
0 commit comments