eradiate.scenes.measure.MultiRadiancemeterMeasure#
- class eradiate.scenes.measure.MultiRadiancemeterMeasure(id='measure', srf=NOTHING, sampler='independent', rfilter='box', spp=1000, spp_allocation=None, spp_min=2, origins=<Quantity([[0. 0. 0.]], 'meter')>, directions=array([[0., 0., 1.]]))#
Bases:
MeasureRadiance meter array measure scene element [
mradiancemeter,multi_radiancemeter].This measure scene element is a thin wrapper around the
mradiancemetersensor kernel plugin. It records the incident power per unit area per unit solid angle along a number of rays defined by itsoriginsanddirectionsparameters.- Parameters:
id (
str, optional, default:"measure") – Identifier of the current scene element.srf (path-like or
strorSpectralResponseFunctionordict, default:DeltaSRF(wavelengths=550.0 * ureg.nm)) – Spectral response function (SRF). If a path is passed, it attempts to load a dataset from that location. If a keyword is passed, e.g.'sentinel_2a-msi-4', the corresponding dataset is looked up through the file resolver.sampler (
{"independent", "stratified", "multijitter", "orthogonal", "ldsampler"}, default:"independent") – Mitsuba sampler used to generate pseudo-random number sequences.rfilter (
{"box", "gaussian", "tent", "mitchell", "catmullrom", "lanczos"}, default:"box") – Reconstruction filter used to scatter samples on sensor pixels. By default, using a box filter is recommended.spp (
int, default:1000) – Sample count target. With the default"weighted"allocation policy (seespp_allocation), it is the number of samples per pixel spent on each output value: every wavelength (mono), every spectral bin (CKD, split across its g-points), or the band as a whole for aBandSRFin CKD mode. With the"uniform"policy, it applies in full to every spectral loop iteration. Samplers other than"independent"may round per-iteration counts up. Seesrf_spp_distribution()and Sample allocation for details.spp_allocation (
SampleAllocationor{"weighted", "uniform"}, optional, default:None) – Policy distributingsppacross spectral loop iterations. If unset, thesample_allocationsetting (environment variableERADIATE_SAMPLE_ALLOCATION) is used when processing.spp_min (
int, default:2) – Minimum sample count per spectral loop iteration when the"weighted"allocation policy splitsspp(e.g. in CKD mode). Ignored in mono mode and by the"uniform"policy. A value of 1 may leave variance outputs undefined (NaN). Raising it raises the minimum validspp: in CKD mode with aBandSRF,spp_mintimes the total number of g-points.origins (array-like, default:
[[0,0,0]] m) – A sequence of points specifying radiance meter array positions.Unit-enabled field (default: ucc[‘length’]).
directions (array-like, default:
[[0,0,1]]) – A sequence of 3-vectors specifying radiance meter array directions.
- Fields:
srf (
SpectralResponseFunction) – Spectral response function (SRF).sampler (
str) – Mitsuba sampler used to generate pseudo-random number sequences.rfilter (
str) – Reconstruction filter used to scatter samples on sensor pixels.spp (
int) – Sample count target.spp_allocation (
SampleAllocationorNone) – Policy distributingsppacross spectral loop iterations.spp_min (
int) – Minimum sample count per spectral loop iteration when the"weighted"allocation policy splitsspp(e.g. in CKD mode).origins (
quantity) – A sequence of points specifying radiance meter array positions.directions (
quantity) – A sequence of 3-vectors specifying radiance meter array directions.
- dataset_attrs()#
Return metadata to be published as global attributes of the result dataset. Subclasses override this to describe aspects of the measurement that are not captured by data variables and coordinates. Values must be NetCDF-serializable: strings, numbers, or flat lists of numbers.
- Returns:
dict– Dataset attributes. Holds by default thesample_allocationpolicy used to computemi_results, if the measure was processed.
- is_distant()#
Return
Trueiff measure records radiometric quantities at infinite distance.
- traverse(callback)#
Traverse this scene element and collect kernel dictionary template and parameter update map contributions.
- Parameters:
callback (
SceneTraversal) – Callback data structure storing the collected data.
- update()#
Enforce internal state consistency. This method should be called when fields are modified. It is automatically called as a post-init step.
- property objects#
Map of child objects associated with this scene element.
- Returns:
dict– A dictionary mapping object names to a corresponding object to be inserted in the Eradiate scene graph.
- property params#
- Returns:
dict[str,SceneParameter] orNone– A dictionary mapping parameter paths, consisting of dot-separated strings, to a corresponding update protocol.
See also
- property template#
Kernel dictionary template contents associated with this scene element.
- Returns:
dict– A flat dictionary mapping dot-separated strings describing the path of an item in the nested scene dictionary to values. Values may be objects which can be directly used by themitsuba.load_dict()function, orDictParameterinstances which must be rendered.
See also