jsl script to save nonpar density quantile on local data filtered bivariate ... please helpRunning script where there's a local data filtered nonparametric density in Bivariate platform and want to save the nonparametric density quantiles but unable to. The script when run saves density quantiles, but not for only the filtered rows like it does when I run in non-script mode.
here is what I am trying
obj=Bivariate(
Y( :mapx ),
X( :mapy ),
Automatic Recalc( 1 ),
Nonpar Density( {Color Theme( "Spectral" )},{Save Density Quantile} ),
Local Data Filter(
Add Filter(
columns( :Label ),
Where(
:Label == {"type1", "type3", "type7", "type20"
}
),
Display( :Label, Size( 181, 102 ), List Display )
)
)
);but again the nonpar density quantile is saved for all rows rather than just filtered rows.
Please help.
Thanks in advance
Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please helpIf you use a Global Data Filter, you will get what you want.
Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please helphow would that work in jsl script?
Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please helpCurrent Data Table() << Data Filter(
Location( {88, 88} ),
Mode( Show( 1 ), Include( 1 ) ),
Add Filter(
columns( :Label ),
Where( :Label == {"type1", "type3", "type7", "type20"} ),
Display( :Label, Size( 181, 102 ), List Display )
)
);
obj=Bivariate(
Y( :mapx ),
X( :mapy ),
Automatic Recalc( 1 ),
Nonpar Density( {Color Theme( "Spectral" )},{Save Density Quantile} )
);Re: jsl script to save nonpar density quantile on local data filtered bivariate ... please helpAnother solution would be to issue the Save command separately from the launch:
obj = Bivariate(...);
Wait(0);
obj<<NONPAR density=""></NONPAR>
The Wait() is sometimes necessary with filters to ensure that the filter activates before the next command proceeds.