python_no_qgis
Essa é uma revisão anterior do documento!
Tabela de conteúdos
Esses códigos podem ser colocados diretamente na Calculadora de Campo, incluindo no Graphical Modeler (campo Fórmula).
Diversidade de Shannon não normalizada
-(if( "PorcentagemResidencial" <> 0, "PorcentagemResidencial"*ln("PorcentagemResidencial"),0)+ if( "PorcentagemComercios" <> 0, "PorcentagemComercios"*ln("PorcentagemComercios"),0)+ if( "PorcentagemInstitucionais" <> 0, "PorcentagemInstitucionais"*ln("PorcentagemInstitucionais"),0)+ if( "PorcentagemHoteis" <> 0, "PorcentagemHoteis"*ln("PorcentagemHoteis"),0))
Diversidade de Shannon normalizada
-((if( "PorcentagemResidencial" <> 0, "PorcentagemResidencial"*ln("PorcentagemResidencial"),0)+ if( "PorcentagemComercios" <> 0, "PorcentagemComercios"*ln("PorcentagemComercios"),0)+ if( "PorcentagemInstitucionais" <> 0, "PorcentagemInstitucionais"*ln("PorcentagemInstitucionais"),0)+ if( "PorcentagemHoteis" <> 0, "PorcentagemHoteis"*ln("PorcentagemHoteis"),0))/ln(4))
Riqueza
if( "TotalResidencias" <> 0, 1,0)+ if( "TotalComercio" <> 0, 1,0)+ if( "TotalInstitucionais" <> 0, 1,0)+ if( "TotalHoteis" <> 0, 1,0)
Simpson
"PorcentagemResidencial"^2+"PorcentagemComercio"^2+"PorcentagemInstitucionais"^2+"PorcentagemHoteis"^2
Hill
# Simpson = campo da tabela com o índice de Simpson já calculado # Shannon = campo da tabela com o índice de Shannon não normalizado (1/Simpson)/exp(Shannon)
Referência: Gehrke, S. R., & Clifton, K. J. (2014). Operationalizing Land Use Diversity at Varying Geographic Scales and Its Connection to Mode Choice: Evidence from Portland, oregon. Transportation Research Record: Journal of the Transportation Research Board, 2453(1), 128–136. https://doi.org/10.3141/2453-16
python_no_qgis.1567797090.txt.gz · Última modificação: 2019/09/06 16:11 por 150.162.53.75