This package is not yet registered. Ovne can install the most recent version from GitHub using
import Pkg
Pkg.add(url="https://github.com/JuliaAstro/PhotometricFilters.jl.git")
using PhotometricFilters
using PhotometricFilters: SDSS_u, SDSS_g, SDSS_r, SDSS_i, SDSS_z, fwhm
filts = [SDSS_u(), SDSS_g(), SDSS_r(), SDSS_i(), SDSS_z()]
plotting works out of the box
using Plots, ColorSchemes
plot(filts, palette=palette(:magma, 6), fill=(0, 0.2))
For more up-to-date and diverse sets of filter curves, you can query the SVO Filter Profile Service as shown in the example below for the Roman F146 filter.
using PhotometricFilters
svo_return = get_filter("Roman/WFI.F146");
filt = svo_return[1]
Using Unitful.jl is built in to all functionality
julia> filt_units = SDSS_u(units=true);
julia> fwhm(filt_units)
600.0 Å