getfilt: Extract Requested Filter Curve

View source: R/filters.R

getfiltR Documentation

Extract Requested Filter Curve

Description

Returns a target named filter from the internal database of filters.

Usage

getfilt(filter)

Arguments

filter

Either filter name explictly built in to ProSpect, or an unambiguous grep match to one of the available filters in EAZY_filters, e.g. 'cfht_mega_u' unabmigously matches to the full filter name of 'megaprime/cfht_mega_u_cfh9301.dat'. You can also conveniently specify your own tophat with the filter name syntax 'tophat_lo_hi' where 'lo' and 'hi' corresponds to the lower and upper limits of the filter tophat in Angstrom.
For the full set now available see options at filters, where all listed filers are accessible to the getfilt function (with the removal of the preceding "filt_"). The original set available was:

Name Filter reference
FUV GALEX FUV band
NUV GALEX NUV band
u Sloan u band
g Sloan g band
r Sloan r band
i Sloan i band
z Sloan z band
u_VST VST u band
g_VST VST g band
r_VST VST r band
i_VST VST i band
z_VST VST z band
g_HSC HSC g band
r_HSC HSC r band
i_HSC HSC i band
z_HSC HSC z band
Y_HSC HSC Y band
Z VISTA Z band
Y VISTA Y band
J VISTA J band
H VISTA H band
K or Ks VISTA Ks band
Z_UKIRT UKIRT Z band
Y_UKIRT UKIRT Y band
J_UKIRT UKIRT J band
H_UKIRT UKIRT H band
K_UKIRT UKIRT K band
W1 Wise W1 band
W2 Wise W2 band
W3 Wise W3 band
W4 Wise W4 band
I1 Spitzer I1 band
I2 Spitzer I2 band
I3 Spitzer I3 band
I4 Spitzer I4 band
M24 Spitzer M24 band
M70 Spitzer M70 band
M160 Spitzer M160 band
P70 Herschel PACS 70 band
P100 Herschel PACS 100 band
P160 Herschel PACS 160 band
S250 Herschel Spire 250 band
S350 Herschel Spire 350 band
S500 Herschel Spire 500 band
S450 JCMT SCUBA-2 450 band
S850 JCMT SCUBA-2 850 band
1mm Aztec 1mm band
2mm Gizmo 2mm band
Band9 ALMA Band 9
Band8 ALMA Band 8
Band7 ALMA Band 7
Band6 ALMA Band 6
Band5 ALMA Band 5
Band4 ALMA Band 4

Details

Returns a target named filter from the internal database of filters. Filters returned are of the type to be used when calculating AB magnitudes in bandpass.
Note LSST filters can also be accessed with "Rubin" (the preferred new shorthand name for the observatory).

Value

Two column matrix. First column is the wavelength in Angstrom and second column is the filter response.

Author(s)

Aaron Robotham

See Also

photom, bandpass, magABcalc, SFHfunc

Examples

colvec=rev(rainbow(9, end=2/3))
plot(getfilt('u_VST'), type='l', col=colvec[1], xlim=c(3e3,2.5e4), ylim=c(0,1),
xlab = 'Wave / Ang', ylab = 'Response')
lines(getfilt('g_VST'), type='l', col=colvec[2])
lines(getfilt('r_VST'), type='l', col=colvec[3])
lines(getfilt('i_VST'), type='l', col=colvec[4])
lines(getfilt('Z_VISTA'), type='l', col=colvec[5])
lines(getfilt('Y_VISTA'), type='l', col=colvec[6])
lines(getfilt('J_VISTA'), type='l', col=colvec[7])
lines(getfilt('H_VISTA'), type='l', col=colvec[8])
lines(getfilt('K_VISTA'), type='l', col=colvec[9])

asgr/ProSpect documentation built on Feb. 21, 2025, 1:43 a.m.