SQMCalibrationModel
Calibrates a robust regression model to map DVNL aggregated predictors to SQM measurements. The model uses a log-linear relationship:Constructor
Small offset added to DVNL values to avoid log(0)
Attributes
The epsilon offset value used in log transformation
The underlying sklearn HuberRegressor model
Whether the model has been fitted to training data
Methods
fit
Fits a log-linear model mapping log(DVNL_agg) + Elevation to SQM.Parameters
The kernel-aggregated DVNL radiance values
The observer’s elevation in meters
Real SQM measurements to fit against
Returns
Returns the fitted model instance for method chaining
predict
Predicts the SQM from new kernel-aggregated DVNL data.Parameters
Aggregated radiance values
Elevation map in meters or a scalar value
Returns
Predicted Zenith SQM values in mag/arcsec²
save
Saves the serialized model using joblib.Path where the model will be saved
load
Loads a serialized model from the given path.Path to the saved model file
Returns
Returns the model instance with loaded parameters