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, pivot_wavelength
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_filter = get_filter("Roman/WFI.F146")
Using Unitful.jl is built in to all functionality
julia> filt = SDSS_u();
julia> pivot_wavelength(filt)
3556.523969910118 Å