From ca2c00931b1f62e05714e0877cc9444e98d8fffc Mon Sep 17 00:00:00 2001 From: Ricardo Dahis Date: Mon, 8 Jan 2024 12:01:27 +1100 Subject: [PATCH 01/15] changes tested in dev --- ...ql => br_tse_eleicoes__bens_candidato.sql} | 21 ++++++++- ...os.sql => br_tse_eleicoes__candidatos.sql} | 21 ++++++++- ...> br_tse_eleicoes__despesas_candidato.sql} | 19 +++++++- ...> br_tse_eleicoes__receitas_candidato.sql} | 19 +++++++- ...l => br_tse_eleicoes__receitas_comite.sql} | 19 +++++++- ...e_eleicoes__receitas_orgao_partidario.sql} | 19 +++++++- .../br_tse_eleicoes__resultados_candidato.sql | 34 ++++++++++++++ models/br_tse_eleicoes/schema.yml | 47 ++++++++++++++++--- 8 files changed, 184 insertions(+), 15 deletions(-) rename models/br_tse_eleicoes/{bens_candidato.sql => br_tse_eleicoes__bens_candidato.sql} (50%) rename models/br_tse_eleicoes/{candidatos.sql => br_tse_eleicoes__candidatos.sql} (78%) rename models/br_tse_eleicoes/{despesas_candidato.sql => br_tse_eleicoes__despesas_candidato.sql} (86%) rename models/br_tse_eleicoes/{receitas_candidato.sql => br_tse_eleicoes__receitas_candidato.sql} (88%) rename models/br_tse_eleicoes/{receitas_comite.sql => br_tse_eleicoes__receitas_comite.sql} (81%) rename models/br_tse_eleicoes/{receitas_orgao_partidario.sql => br_tse_eleicoes__receitas_orgao_partidario.sql} (86%) create mode 100644 models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql diff --git a/models/br_tse_eleicoes/bens_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql similarity index 50% rename from models/br_tse_eleicoes/bens_candidato.sql rename to models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql index 64807101..807bf0a2 100644 --- a/models/br_tse_eleicoes/bens_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql @@ -1,4 +1,21 @@ -SELECT +{{ + config( + schema='br_tse_eleicoes', + alias = 'bens_candidato', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 2006, + "end": 2022, + "interval": 2 + } + } + ) +}} + +SELECT SAFE_CAST(ano AS INT64) ano, SAFE_CAST(sigla_uf AS STRING) sigla_uf, SAFE_CAST(tipo_eleicao AS STRING) tipo_eleicao, @@ -8,4 +25,4 @@ SAFE_CAST(id_tipo_item AS STRING) id_tipo_item, SAFE_CAST(tipo_item AS STRING) tipo_item, SAFE_CAST(descricao_item AS STRING) descricao_item, SAFE_CAST(valor_item AS FLOAT64) valor_item -FROM basedosdados-staging.br_tse_eleicoes_staging.bens_candidato AS t +FROM basedosdados-dev.br_tse_eleicoes_staging.bens_candidato AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/candidatos.sql b/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql similarity index 78% rename from models/br_tse_eleicoes/candidatos.sql rename to models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql index f9dc127b..30bf82dd 100644 --- a/models/br_tse_eleicoes/candidatos.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql @@ -1,3 +1,20 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'candidatos', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 1994, + "end": 2022, + "interval": 2 + } + } + ) +}} + SELECT SAFE_CAST(ano AS INT64) ano, SAFE_CAST(tipo_eleicao AS STRING) tipo_eleicao, @@ -32,7 +49,7 @@ SAFE_CAST(nome_federacao AS STRING) nome_federacao, SAFE_CAST(sigla_federacao AS STRING) sigla_federacao, SAFE_CAST(composicao_federacao AS STRING) composicao_federacao, CASE - WHEN prestou_contas='N' THEN 'Nao' + WHEN prestou_contas='N' THEN 'Não' WHEN prestou_contas='S' THEN 'Sim' END AS prestou_contas -FROM basedosdados-staging.br_tse_eleicoes_staging.candidatos AS t +FROM basedosdados-dev.br_tse_eleicoes_staging.candidatos AS t diff --git a/models/br_tse_eleicoes/despesas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql similarity index 86% rename from models/br_tse_eleicoes/despesas_candidato.sql rename to models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql index 42a3892c..9dfd7583 100644 --- a/models/br_tse_eleicoes/despesas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql @@ -1,4 +1,21 @@ SELECT +{{ + config( + schema='br_tse_eleicoes', + alias = 'despesas_candidato', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 2002, + "end": 2022, + "interval": 2 + } + } + ) +}} + SAFE_CAST(ano AS INT64) ano, SAFE_CAST(turno AS INT64) turno, SAFE_CAST(tipo_eleicao AS STRING) tipo_eleicao, @@ -45,4 +62,4 @@ SAFE_CAST(numero_partido_fornecedor AS STRING) numero_partido_fornecedor, SAFE_CAST(sigla_partido_fornecedor AS STRING) sigla_partido_fornecedor, SAFE_CAST(nome_partido_fornecedor AS STRING) nome_partido_fornecedor, SAFE_CAST(cargo_fornecedor AS STRING) cargo_fornecedor -FROM basedosdados-staging.br_tse_eleicoes_staging.despesas_candidato AS t +FROM basedosdados-dev.br_tse_eleicoes_staging.despesas_candidato AS t diff --git a/models/br_tse_eleicoes/receitas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql similarity index 88% rename from models/br_tse_eleicoes/receitas_candidato.sql rename to models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql index 1b3eb4b6..3dd7ab00 100644 --- a/models/br_tse_eleicoes/receitas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql @@ -1,3 +1,20 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'receitas_candidato', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 2002, + "end": 2022, + "interval": 2 + } + } + ) +}} + SELECT SAFE_CAST(ano AS INT64) ano, SAFE_CAST(turno AS INT64) turno, @@ -56,4 +73,4 @@ SAFE_CAST(data_prestacao_contas AS STRING) data_prestacao_contas, SAFE_CAST(sequencial_prestador_contas AS STRING) sequencial_prestador_contas, SAFE_CAST(cnpj_prestador_contas AS STRING) cnpj_prestador_contas, SAFE_CAST(entrega_conjunto AS STRING) entrega_conjunto -FROM basedosdados-staging.br_tse_eleicoes_staging.receitas_candidato AS t +FROM basedosdados-dev.br_tse_eleicoes_staging.receitas_candidato AS t diff --git a/models/br_tse_eleicoes/receitas_comite.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql similarity index 81% rename from models/br_tse_eleicoes/receitas_comite.sql rename to models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql index e4076ee3..8e1b42bf 100644 --- a/models/br_tse_eleicoes/receitas_comite.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql @@ -1,3 +1,20 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'receitas_comite', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 2002, + "end": 2014, + "interval": 2 + } + } + ) +}} + SELECT SAFE_CAST(ano AS INT64) ano, SAFE_CAST(sigla_uf AS STRING) sigla_uf, @@ -33,4 +50,4 @@ SAFE_CAST(nome_doador_orig_rf AS STRING) nome_doador_orig_rf, SAFE_CAST(tipo_doador_orig AS STRING) tipo_doador_orig, SAFE_CAST(descricao_cnae_2_doador_orig AS STRING) descricao_cnae_2_doador_orig, SAFE_CAST(valor_receita AS FLOAT64) valor_receita, -FROM basedosdados-staging.br_tse_eleicoes_staging.receitas_comite AS t \ No newline at end of file +FROM basedosdados-dev.br_tse_eleicoes_staging.receitas_comite AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/receitas_orgao_partidario.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql similarity index 86% rename from models/br_tse_eleicoes/receitas_orgao_partidario.sql rename to models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql index 5ad15475..cb39e742 100644 --- a/models/br_tse_eleicoes/receitas_orgao_partidario.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql @@ -1,3 +1,20 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'receitas_orgao_partidario', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 2010, + "end": 2022, + "interval": 2 + } + } + ) +}} + SELECT SAFE_CAST(ano AS INT64) ano, SAFE_CAST(sigla_uf_diretorio AS STRING) sigla_uf, @@ -47,4 +64,4 @@ SAFE_CAST(tipo_doador_orig AS STRING) tipo_doador_orig, SAFE_CAST(descricao_cnae_2_doador_orig AS STRING) descricao_cnae_2_doador_orig, SAFE_CAST(nome_doador_orig_rf AS STRING) nome_doador_orig_rf, SAFE_CAST(valor_receita AS FLOAT64) valor_receita -FROM basedosdados-staging.br_tse_eleicoes_staging.receitas_orgao_partidario AS t \ No newline at end of file +FROM basedosdados-dev.br_tse_eleicoes_staging.receitas_orgao_partidario AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql new file mode 100644 index 00000000..e7ecc580 --- /dev/null +++ b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql @@ -0,0 +1,34 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'resultados_candidato', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 1945, + "end": 2022, + "interval": 1 + } + } + ) +}} + +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(turno AS INT64) turno, +SAFE_CAST(tipo_eleicao AS STRING) tipo_eleicao, +SAFE_CAST(sigla_uf AS STRING) sigla_uf, +SAFE_CAST(id_municipio AS STRING) id_municipio, +SAFE_CAST(id_municipio_tse AS STRING) id_municipio_tse, +SAFE_CAST(cargo AS STRING) cargo, +SAFE_CAST(numero_partido AS STRING) numero_partido, +SAFE_CAST(sigla_partido AS STRING) sigla_partido, +SAFE_CAST(numero_candidato AS STRING) numero_candidato, +SAFE_CAST(sequencial_candidato AS STRING) sequencial_candidato, +SAFE_CAST(id_candidato_bd AS STRING) id_candidato_bd, +SAFE_CAST(nome_candidato AS STRING) nome_candidato, +SAFE_CAST(resultado AS STRING) resultado, +SAFE_CAST(votos AS INT64) votos +FROM basedosdados-dev.br_tse_eleicoes_staging.resultados_candidato AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/schema.yml b/models/br_tse_eleicoes/schema.yml index ddea95df..aa943877 100644 --- a/models/br_tse_eleicoes/schema.yml +++ b/models/br_tse_eleicoes/schema.yml @@ -1,7 +1,7 @@ version: 2 models: - - name: candidatos + - name: br_tse_eleicoes__candidatos description: "microdados de candidatos" columns: - name: ano @@ -70,7 +70,7 @@ models: description: Composição Federação - name: prestou_contas description: Indicador de prestação de contas - - name: bens_candidato + - name: br_tse_eleicoes__bens_candidato description: "microdados bens candidato" columns: - name: ano @@ -91,7 +91,7 @@ models: description: Descrição do Item - name: valor_item description: Valor do Item (R$) - - name: receitas_candidato + - name: br_tse_eleicoes__receitas_candidato description: microdados receitas candidato columns: - name: ano @@ -208,7 +208,7 @@ models: description: CNPJ do prestador de contas - name: entrega_conjunto description: Entrega em conjunto - - name: despesas_candidato + - name: br_tse_eleicoes__despesas_candidato description: microdados despesas candidato columns: - name: ano @@ -303,7 +303,7 @@ models: description: Nome do partido do fornecedor - name: cargo_fornecedor description: Cargo do fornecedor - - name: receitas_comite + - name: br_tse_eleicoes__receitas_comite description: Receitas de comitês eleitorais columns: - name: ano @@ -374,7 +374,7 @@ models: description: Descrição da Classificação Nacional de Atividades Econômicas 2.0 do doador originário - name: nome_doador_orig_rf description: Nome do doador originário - Receita Federal - - name: receitas_orgao_partidario + - name: br_tse_eleicoes__receitas_orgao_partidario description: Receitas de comitês eleitorais columns: - name: ano @@ -478,4 +478,37 @@ models: - name: descricao_cnae_2_doador_orig description: Descrição da Classificação Nacional de Atividades Econômicas 2.0 do doador originário - name: nome_doador_orig_rf - description: Nome do doador originário - Receita Federal \ No newline at end of file + description: Nome do doador originário - Receita Federal + - name: br_tse_eleicoes__resultados_candidato + description: Resultados a nível de candidato. + columns: + - name: ano + description: Ano + - name: turno + description: Turno + - name: tipo_eleicao + description: Tipo da eleição + - name: sigla_uf + description: Sigla da unidade da federação + - name: id_municipio + description: ID Município - IBGE 7 Dígitos + - name: id_municipio_tse + description: ID Município - TSE + - name: cargo + description: Cargo + - name: numero_partido + description: Número do partido + - name: sigla_partido + description: Sigla do partido + - name: numero_candidato + description: Número do candidato + - name: sequncial_candidato + description: Sequencial do candidato + - name: id_candidato_bd + description: ID Candidato - Base dos Dados + - name: nome_candidato + description: Nome do candidato + - name: resultado + description: Resultado + - name: votos + description: Número de votos \ No newline at end of file From a4278ac68160a2d371782fc9e5163af7bcb60bec Mon Sep 17 00:00:00 2001 From: Laura Amaral Date: Mon, 8 Jan 2024 14:47:15 -0300 Subject: [PATCH 02/15] fix: dev to staging project --- models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql | 2 +- models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql | 2 +- models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql | 2 +- models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql | 2 +- models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql | 2 +- .../br_tse_eleicoes__receitas_orgao_partidario.sql | 2 +- .../br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql index 807bf0a2..5770aefd 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql @@ -25,4 +25,4 @@ SAFE_CAST(id_tipo_item AS STRING) id_tipo_item, SAFE_CAST(tipo_item AS STRING) tipo_item, SAFE_CAST(descricao_item AS STRING) descricao_item, SAFE_CAST(valor_item AS FLOAT64) valor_item -FROM basedosdados-dev.br_tse_eleicoes_staging.bens_candidato AS t \ No newline at end of file +FROM basedosdados-staging.br_tse_eleicoes_staging.bens_candidato AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql b/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql index 30bf82dd..f5f78bf3 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql @@ -52,4 +52,4 @@ CASE WHEN prestou_contas='N' THEN 'Não' WHEN prestou_contas='S' THEN 'Sim' END AS prestou_contas -FROM basedosdados-dev.br_tse_eleicoes_staging.candidatos AS t +FROM basedosdados-staging.br_tse_eleicoes_staging.candidatos AS t diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql index 9dfd7583..8ddbcfac 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql @@ -62,4 +62,4 @@ SAFE_CAST(numero_partido_fornecedor AS STRING) numero_partido_fornecedor, SAFE_CAST(sigla_partido_fornecedor AS STRING) sigla_partido_fornecedor, SAFE_CAST(nome_partido_fornecedor AS STRING) nome_partido_fornecedor, SAFE_CAST(cargo_fornecedor AS STRING) cargo_fornecedor -FROM basedosdados-dev.br_tse_eleicoes_staging.despesas_candidato AS t +FROM basedosdados-staging.br_tse_eleicoes_staging.despesas_candidato AS t diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql index 3dd7ab00..425476d5 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql @@ -73,4 +73,4 @@ SAFE_CAST(data_prestacao_contas AS STRING) data_prestacao_contas, SAFE_CAST(sequencial_prestador_contas AS STRING) sequencial_prestador_contas, SAFE_CAST(cnpj_prestador_contas AS STRING) cnpj_prestador_contas, SAFE_CAST(entrega_conjunto AS STRING) entrega_conjunto -FROM basedosdados-dev.br_tse_eleicoes_staging.receitas_candidato AS t +FROM basedosdados-staging.br_tse_eleicoes_staging.receitas_candidato AS t diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql index 8e1b42bf..1cd0cdb8 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql @@ -50,4 +50,4 @@ SAFE_CAST(nome_doador_orig_rf AS STRING) nome_doador_orig_rf, SAFE_CAST(tipo_doador_orig AS STRING) tipo_doador_orig, SAFE_CAST(descricao_cnae_2_doador_orig AS STRING) descricao_cnae_2_doador_orig, SAFE_CAST(valor_receita AS FLOAT64) valor_receita, -FROM basedosdados-dev.br_tse_eleicoes_staging.receitas_comite AS t \ No newline at end of file +FROM basedosdados-staging.br_tse_eleicoes_staging.receitas_comite AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql index cb39e742..9aa4a978 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql @@ -64,4 +64,4 @@ SAFE_CAST(tipo_doador_orig AS STRING) tipo_doador_orig, SAFE_CAST(descricao_cnae_2_doador_orig AS STRING) descricao_cnae_2_doador_orig, SAFE_CAST(nome_doador_orig_rf AS STRING) nome_doador_orig_rf, SAFE_CAST(valor_receita AS FLOAT64) valor_receita -FROM basedosdados-dev.br_tse_eleicoes_staging.receitas_orgao_partidario AS t \ No newline at end of file +FROM basedosdados-staging.br_tse_eleicoes_staging.receitas_orgao_partidario AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql index e7ecc580..2a1c02c3 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql @@ -31,4 +31,4 @@ SAFE_CAST(id_candidato_bd AS STRING) id_candidato_bd, SAFE_CAST(nome_candidato AS STRING) nome_candidato, SAFE_CAST(resultado AS STRING) resultado, SAFE_CAST(votos AS INT64) votos -FROM basedosdados-dev.br_tse_eleicoes_staging.resultados_candidato AS t \ No newline at end of file +FROM basedosdados-staging.br_tse_eleicoes_staging.resultados_candidato AS t \ No newline at end of file From ecbb911dcb97e38804783474ac1b7198f3ed5ffe Mon Sep 17 00:00:00 2001 From: Laura Amaral Date: Tue, 16 Jan 2024 15:47:12 -0300 Subject: [PATCH 03/15] include prefect flows --- .../br_bd_metadados__prefect_flow_runs.sql | 20 + .../br_bd_metadados__prefect_flows.sql | 22 + models/br_bd_metadados/schema.yml | 394 ++++++++---------- 3 files changed, 222 insertions(+), 214 deletions(-) create mode 100644 models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql create mode 100644 models/br_bd_metadados/br_bd_metadados__prefect_flows.sql diff --git a/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql b/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql new file mode 100644 index 00000000..2d75e5ca --- /dev/null +++ b/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql @@ -0,0 +1,20 @@ +{{ config(alias='prefect_flow_runs',schema='br_bd_metadados') }} +SELECT +SAFE_CAST(id AS STRING) id, +SAFE_CAST(flow_flow_group_id AS STRING) flow_group_id, +SAFE_CAST(name AS STRING) name, +SAFE_CAST(labels AS STRING) labels, +SAFE_CAST(flow_project_name AS STRING) flow_project_name, +SAFE_CAST(flow_name AS STRING) flow_name, +SAFE_CAST(flow_archived AS BOOL) flow_archived, +SAFE_CAST(dataset_id AS STRING) dataset_id, +SAFE_CAST(table_id AS STRING) table_id, +DATETIME(LEFT(start_time,19)) start_time, +DATETIME(LEFT(end_time,19)) end_time, +SAFE_CAST(state AS STRING) state, +SAFE_CAST(state_message AS STRING) state_message, +SAFE_CAST(task_runs AS STRING) task_runs, +SAFE_CAST(skipped_upload_to_gcs AS BOOL) skipped_upload_to_gcs, +SAFE_CAST(logs AS STRING) error_logs, +FROM basedosdados-staging.br_bd_metadados_staging.prefect_flow_runs AS t + diff --git a/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql b/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql new file mode 100644 index 00000000..a06c553f --- /dev/null +++ b/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql @@ -0,0 +1,22 @@ +{{ config(alias='prefect_flows',schema='br_bd_metadados') }} +SELECT +SAFE_CAST(flow_group_id AS STRING) flow_group_id, +SAFE_CAST(name AS STRING) name, +DATETIME(LEFT(flow_group_flows_aggregate_aggregate_min_created,19)) created, +SAFE_CAST(version AS INT64) latest_version, +DATETIME(LEFT(created,19)) last_update, +SAFE_CAST(schedule_type AS STRING) schedule_type, +SAFE_CAST(schedule_cron AS STRING) schedule_cron, +DATETIME(TRIM(JSON_EXTRACT(schedule_start_date,'$.dt'),'"')) schedule_start_date, +SAFE_CAST(schedule_filters AS STRING) schedule_filters, +SAFE_CAST(schedule_adjustments AS STRING) schedule_adjustments, +SAFE_CAST(schedule_labels AS STRING) schedule_labels, +SAFE_CAST(schedule_parameter_defaults AS STRING) schedule_all_parameters, +SAFE_CAST(schedule_parameters_dataset_id AS STRING) schedule_parameters_dataset_id, +SAFE_CAST(schedule_parameters_table_id AS STRING) schedule_parameters_table_id, +SAFE_CAST(schedule_parameters_dbt_alias AS BOOL) schedule_parameters_dbt_alias, +SAFE_CAST(schedule_parameters_materialization_mode AS STRING) schedule_parameters_materialization_mode, +SAFE_CAST(schedule_parameters_materialize_after_dump AS BOOL) schedule_parameters_materialize_after_dump, +SAFE_CAST(schedule_parameters_update_metadata AS BOOL) schedule_parameters_update_metadata, +FROM basedosdados-staging.br_bd_metadados_staging.prefect_flows AS t + diff --git a/models/br_bd_metadados/schema.yml b/models/br_bd_metadados/schema.yml index 601e1659..bb028618 100644 --- a/models/br_bd_metadados/schema.yml +++ b/models/br_bd_metadados/schema.yml @@ -1,224 +1,190 @@ version: 2 models: - - name: bigquery_tables - description: BigQuery metadata about the BD tables + - name: br_bd_metadados__prefect_flows + description: Insert `prefect_flows` table description here + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - flow_group_id columns: - - name: project_id - description: Project Id - - name: dataset_id - description: Dataset Id - - name: table_id - description: Table Id - - name: type - description: 'Type ' - - name: creation_date - description: Creation Date - - name: last_modified_date - description: Last Modified Date - - name: creation_time - description: Creation Time - - name: last_modified_time - description: Last Modified Time - - name: row_count - description: Row Count - - name: size_mb - description: Size in Mb - - name: organizations - description: "Metadata on organizations in the BD+ platform." - columns: - - name: id - description: "" - - name: name - description: "" - - name: description - description: "" - - name: display_name - description: "" - - name: title - description: "" - - name: package_count - description: "" - - name: date_created - description: "" - - name: datasets - description: "Metadata on datasets in the BD+ platform." - columns: - - name: organization_id - description: "" - - name: id - description: "" - - name: name - description: "" - - name: title - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: themes - description: "" - - name: tags - description: "" - - name: resources - description: "Metadata on resources in the BD+ platform." - columns: - - name: dataset_id - description: "" - - name: id - description: "" + - name: flow_group_id + description: Flow group identifier + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: type - description: "" - - name: external_links - description: "Metadata on external links in the BD+ platform." + description: Flow's name + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: created + description: Timestamp indicating when the flow was initially created + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: latest_version + description: Version number of the latest iteration of the flow + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: last_update + description: Timestamp of the last update made to the flow + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_type + description: Type of scheduling employed for the flow (e.g. CronClock, IntervalClock) + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_cron + description: Cron expression defining the flow's scheduling pattern + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_start_date + description: Date when the scheduled execution of the flow starts + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_filters + description: Filters applied to refine the scheduled execution criteria + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_adjustments + description: Adjustments or configurations for the flow's scheduling + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_labels + description: Labels in the flow's scheduling + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_all_parameters + description: All parameters in the schedule + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_dataset_id + description: Dataset used in scheduling parameters. + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_table_id + description: Table used in scheduling parameters + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_dbt_alias + description: Indicates if the model uses alias in DBT + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_materialization_mode + description: Mode defining where data is materialized + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_materialize_after_dump + description: Indicates if materialization occurs after data dump + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_update_metadata + description: Indicates if metadata is updated + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: br_bd_metadados__prefect_flow_runs + description: Insert `prefect_flow_runs` table description here + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - id columns: - - name: dataset_id - description: "" - - name: id - description: "" - - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: url - description: "" - - name: language - description: "" - - name: has_structured_data - description: "" - - name: has_api - description: "" - - name: is_free - description: "" - - name: requires_registration - description: "" - - name: availability - description: "" - - name: spatial_coverage - description: "" - - name: temporal_coverage - description: "" - - name: update_frequency - description: "" - - name: observation_level - description: "" - - name: information_requests - description: "Metadata on information requests in the BD+ platform." - columns: - - name: dataset_id - description: "" - name: id - description: "" + description: Unique identifier for the flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_group_id + description: Unique identifier for the flow group + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: url - description: "" - - name: origin - description: "" - - name: number - description: "" - - name: opening_date - description: "" - - name: requested_by - description: "" - - name: status - description: "" - - name: data_url - description: "" - - name: spatial_coverage - description: "" - - name: temporal_coverage - description: "" - - name: update_frequency - description: "" - - name: observation_level - description: "" - - name: tables - description: "Metadata on tables in the BD+ platform." - columns: + description: Name associated with the specific flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: labels + description: Labels (determines the project the data will be materialized) + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_project_name + description: Name of the project linked to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_name + description: Name of the flow linked to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_archived + description: Boolean indicating whether the flow run is archived or active + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: dataset_id - description: "" - - name: dataset_name - description: "" - - name: id - description: "" - - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: spatial_coverage - description: "" - - name: temporal_coverage - description: "" - - name: update_frequency - description: "" - - name: observation_level - description: "" - - name: number_rows - description: "" - - name: number_columns - description: "" - - name: outdated - description: "" - - name: metadata - description: "" - - name: data - description: "" - - name: release - description: "" - - name: published_by - description: "" - - name: cleaned_by - description: "" - - name: missing_metadata - description: "" - - name: columns - description: "Metadata on columns in the BD+ platform." - columns: + description: BigQuery dataset id relevant to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: table_id - description: "" - - name: name - description: "" - - name: bigquery_type - description: "" - - name: description - description: "" - - name: temporal_coverage - description: "" - - name: covered_by_dictionary - description: "" - - name: directory_column - description: "" - - name: measurement_unit - description: "" - - name: has_sensitive_data - description: "" - - name: observations - description: "" - - name: is_in_staging - description: "" - - name: is_partition - description: "" - - name: available_options - description: "Metadata on available options in the BD platform." - columns: - - name: element - description: "" - - name: key - description: "" - - name: value - description: "" \ No newline at end of file + description: BigQuery table id relevant to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: start_time + description: Date and time when the flow run was initiated + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: end_time + description: Date and time when the flow run was completed or ended + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: state + description: Current state of the flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: state_message + description: Additional message or information related to the state/status + of the flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: task_runs + description: Information or details regarding individual task runs within + this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: skipped_upload_to_gcs + description: Boolean indicating whether the upload to GCS (Google Cloud Storage) + was skipped or not for this flow run. + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: error_logs + description: Error log records + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 From 6f4c7cea133aad27ffffe855642244f727208100 Mon Sep 17 00:00:00 2001 From: Laura Amaral Date: Tue, 16 Jan 2024 16:11:37 -0300 Subject: [PATCH 04/15] Revert "include prefect flows" This reverts commit ecbb911dcb97e38804783474ac1b7198f3ed5ffe. --- .../br_bd_metadados__prefect_flow_runs.sql | 20 - .../br_bd_metadados__prefect_flows.sql | 22 - models/br_bd_metadados/schema.yml | 394 ++++++++++-------- 3 files changed, 214 insertions(+), 222 deletions(-) delete mode 100644 models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql delete mode 100644 models/br_bd_metadados/br_bd_metadados__prefect_flows.sql diff --git a/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql b/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql deleted file mode 100644 index 2d75e5ca..00000000 --- a/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{ config(alias='prefect_flow_runs',schema='br_bd_metadados') }} -SELECT -SAFE_CAST(id AS STRING) id, -SAFE_CAST(flow_flow_group_id AS STRING) flow_group_id, -SAFE_CAST(name AS STRING) name, -SAFE_CAST(labels AS STRING) labels, -SAFE_CAST(flow_project_name AS STRING) flow_project_name, -SAFE_CAST(flow_name AS STRING) flow_name, -SAFE_CAST(flow_archived AS BOOL) flow_archived, -SAFE_CAST(dataset_id AS STRING) dataset_id, -SAFE_CAST(table_id AS STRING) table_id, -DATETIME(LEFT(start_time,19)) start_time, -DATETIME(LEFT(end_time,19)) end_time, -SAFE_CAST(state AS STRING) state, -SAFE_CAST(state_message AS STRING) state_message, -SAFE_CAST(task_runs AS STRING) task_runs, -SAFE_CAST(skipped_upload_to_gcs AS BOOL) skipped_upload_to_gcs, -SAFE_CAST(logs AS STRING) error_logs, -FROM basedosdados-staging.br_bd_metadados_staging.prefect_flow_runs AS t - diff --git a/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql b/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql deleted file mode 100644 index a06c553f..00000000 --- a/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql +++ /dev/null @@ -1,22 +0,0 @@ -{{ config(alias='prefect_flows',schema='br_bd_metadados') }} -SELECT -SAFE_CAST(flow_group_id AS STRING) flow_group_id, -SAFE_CAST(name AS STRING) name, -DATETIME(LEFT(flow_group_flows_aggregate_aggregate_min_created,19)) created, -SAFE_CAST(version AS INT64) latest_version, -DATETIME(LEFT(created,19)) last_update, -SAFE_CAST(schedule_type AS STRING) schedule_type, -SAFE_CAST(schedule_cron AS STRING) schedule_cron, -DATETIME(TRIM(JSON_EXTRACT(schedule_start_date,'$.dt'),'"')) schedule_start_date, -SAFE_CAST(schedule_filters AS STRING) schedule_filters, -SAFE_CAST(schedule_adjustments AS STRING) schedule_adjustments, -SAFE_CAST(schedule_labels AS STRING) schedule_labels, -SAFE_CAST(schedule_parameter_defaults AS STRING) schedule_all_parameters, -SAFE_CAST(schedule_parameters_dataset_id AS STRING) schedule_parameters_dataset_id, -SAFE_CAST(schedule_parameters_table_id AS STRING) schedule_parameters_table_id, -SAFE_CAST(schedule_parameters_dbt_alias AS BOOL) schedule_parameters_dbt_alias, -SAFE_CAST(schedule_parameters_materialization_mode AS STRING) schedule_parameters_materialization_mode, -SAFE_CAST(schedule_parameters_materialize_after_dump AS BOOL) schedule_parameters_materialize_after_dump, -SAFE_CAST(schedule_parameters_update_metadata AS BOOL) schedule_parameters_update_metadata, -FROM basedosdados-staging.br_bd_metadados_staging.prefect_flows AS t - diff --git a/models/br_bd_metadados/schema.yml b/models/br_bd_metadados/schema.yml index bb028618..601e1659 100644 --- a/models/br_bd_metadados/schema.yml +++ b/models/br_bd_metadados/schema.yml @@ -1,190 +1,224 @@ version: 2 models: - - name: br_bd_metadados__prefect_flows - description: Insert `prefect_flows` table description here - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - flow_group_id + - name: bigquery_tables + description: BigQuery metadata about the BD tables columns: - - name: flow_group_id - description: Flow group identifier - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 + - name: project_id + description: Project Id + - name: dataset_id + description: Dataset Id + - name: table_id + description: Table Id + - name: type + description: 'Type ' + - name: creation_date + description: Creation Date + - name: last_modified_date + description: Last Modified Date + - name: creation_time + description: Creation Time + - name: last_modified_time + description: Last Modified Time + - name: row_count + description: Row Count + - name: size_mb + description: Size in Mb + - name: organizations + description: "Metadata on organizations in the BD+ platform." + columns: + - name: id + description: "" + - name: name + description: "" + - name: description + description: "" + - name: display_name + description: "" + - name: title + description: "" + - name: package_count + description: "" + - name: date_created + description: "" + - name: datasets + description: "Metadata on datasets in the BD+ platform." + columns: + - name: organization_id + description: "" + - name: id + description: "" + - name: name + description: "" + - name: title + description: "" + - name: date_created + description: "" + - name: date_last_modified + description: "" + - name: themes + description: "" + - name: tags + description: "" + - name: resources + description: "Metadata on resources in the BD+ platform." + columns: + - name: dataset_id + description: "" + - name: id + description: "" - name: name - description: Flow's name - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: created - description: Timestamp indicating when the flow was initially created - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: latest_version - description: Version number of the latest iteration of the flow - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: last_update - description: Timestamp of the last update made to the flow - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_type - description: Type of scheduling employed for the flow (e.g. CronClock, IntervalClock) - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_cron - description: Cron expression defining the flow's scheduling pattern - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_start_date - description: Date when the scheduled execution of the flow starts - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_filters - description: Filters applied to refine the scheduled execution criteria - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_adjustments - description: Adjustments or configurations for the flow's scheduling - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_labels - description: Labels in the flow's scheduling - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_all_parameters - description: All parameters in the schedule - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_parameters_dataset_id - description: Dataset used in scheduling parameters. - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_parameters_table_id - description: Table used in scheduling parameters - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_parameters_dbt_alias - description: Indicates if the model uses alias in DBT - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_parameters_materialization_mode - description: Mode defining where data is materialized - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_parameters_materialize_after_dump - description: Indicates if materialization occurs after data dump - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: schedule_parameters_update_metadata - description: Indicates if metadata is updated - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: br_bd_metadados__prefect_flow_runs - description: Insert `prefect_flow_runs` table description here - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - id + description: "" + - name: date_created + description: "" + - name: date_last_modified + description: "" + - name: type + description: "" + - name: external_links + description: "Metadata on external links in the BD+ platform." columns: + - name: dataset_id + description: "" + - name: id + description: "" + - name: name + description: "" + - name: date_created + description: "" + - name: date_last_modified + description: "" + - name: url + description: "" + - name: language + description: "" + - name: has_structured_data + description: "" + - name: has_api + description: "" + - name: is_free + description: "" + - name: requires_registration + description: "" + - name: availability + description: "" + - name: spatial_coverage + description: "" + - name: temporal_coverage + description: "" + - name: update_frequency + description: "" + - name: observation_level + description: "" + - name: information_requests + description: "Metadata on information requests in the BD+ platform." + columns: + - name: dataset_id + description: "" - name: id - description: Unique identifier for the flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: flow_group_id - description: Unique identifier for the flow group - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 + description: "" - name: name - description: Name associated with the specific flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: labels - description: Labels (determines the project the data will be materialized) - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: flow_project_name - description: Name of the project linked to this flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: flow_name - description: Name of the flow linked to this flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: flow_archived - description: Boolean indicating whether the flow run is archived or active - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 + description: "" + - name: date_created + description: "" + - name: date_last_modified + description: "" + - name: url + description: "" + - name: origin + description: "" + - name: number + description: "" + - name: opening_date + description: "" + - name: requested_by + description: "" + - name: status + description: "" + - name: data_url + description: "" + - name: spatial_coverage + description: "" + - name: temporal_coverage + description: "" + - name: update_frequency + description: "" + - name: observation_level + description: "" + - name: tables + description: "Metadata on tables in the BD+ platform." + columns: - name: dataset_id - description: BigQuery dataset id relevant to this flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 + description: "" + - name: dataset_name + description: "" + - name: id + description: "" + - name: name + description: "" + - name: date_created + description: "" + - name: date_last_modified + description: "" + - name: spatial_coverage + description: "" + - name: temporal_coverage + description: "" + - name: update_frequency + description: "" + - name: observation_level + description: "" + - name: number_rows + description: "" + - name: number_columns + description: "" + - name: outdated + description: "" + - name: metadata + description: "" + - name: data + description: "" + - name: release + description: "" + - name: published_by + description: "" + - name: cleaned_by + description: "" + - name: missing_metadata + description: "" + - name: columns + description: "Metadata on columns in the BD+ platform." + columns: - name: table_id - description: BigQuery table id relevant to this flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: start_time - description: Date and time when the flow run was initiated - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: end_time - description: Date and time when the flow run was completed or ended - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: state - description: Current state of the flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: state_message - description: Additional message or information related to the state/status - of the flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: task_runs - description: Information or details regarding individual task runs within - this flow run - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: skipped_upload_to_gcs - description: Boolean indicating whether the upload to GCS (Google Cloud Storage) - was skipped or not for this flow run. - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 - - name: error_logs - description: Error log records - tests: - - dbt_utils.not_null_proportion: - at_least: 0.05 + description: "" + - name: name + description: "" + - name: bigquery_type + description: "" + - name: description + description: "" + - name: temporal_coverage + description: "" + - name: covered_by_dictionary + description: "" + - name: directory_column + description: "" + - name: measurement_unit + description: "" + - name: has_sensitive_data + description: "" + - name: observations + description: "" + - name: is_in_staging + description: "" + - name: is_partition + description: "" + - name: available_options + description: "Metadata on available options in the BD platform." + columns: + - name: element + description: "" + - name: key + description: "" + - name: value + description: "" \ No newline at end of file From bcbc311b3c084ea3b15716ac1a46047aa0a13401 Mon Sep 17 00:00:00 2001 From: Laura Amaral Date: Tue, 16 Jan 2024 16:14:50 -0300 Subject: [PATCH 05/15] include prefect flows tables --- .../br_bd_metadados__prefect_flow_runs.sql | 20 + .../br_bd_metadados__prefect_flows.sql | 22 ++ models/br_bd_metadados/schema.yml | 371 +++++++++--------- 3 files changed, 222 insertions(+), 191 deletions(-) create mode 100644 models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql create mode 100644 models/br_bd_metadados/br_bd_metadados__prefect_flows.sql diff --git a/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql b/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql new file mode 100644 index 00000000..2d75e5ca --- /dev/null +++ b/models/br_bd_metadados/br_bd_metadados__prefect_flow_runs.sql @@ -0,0 +1,20 @@ +{{ config(alias='prefect_flow_runs',schema='br_bd_metadados') }} +SELECT +SAFE_CAST(id AS STRING) id, +SAFE_CAST(flow_flow_group_id AS STRING) flow_group_id, +SAFE_CAST(name AS STRING) name, +SAFE_CAST(labels AS STRING) labels, +SAFE_CAST(flow_project_name AS STRING) flow_project_name, +SAFE_CAST(flow_name AS STRING) flow_name, +SAFE_CAST(flow_archived AS BOOL) flow_archived, +SAFE_CAST(dataset_id AS STRING) dataset_id, +SAFE_CAST(table_id AS STRING) table_id, +DATETIME(LEFT(start_time,19)) start_time, +DATETIME(LEFT(end_time,19)) end_time, +SAFE_CAST(state AS STRING) state, +SAFE_CAST(state_message AS STRING) state_message, +SAFE_CAST(task_runs AS STRING) task_runs, +SAFE_CAST(skipped_upload_to_gcs AS BOOL) skipped_upload_to_gcs, +SAFE_CAST(logs AS STRING) error_logs, +FROM basedosdados-staging.br_bd_metadados_staging.prefect_flow_runs AS t + diff --git a/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql b/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql new file mode 100644 index 00000000..a06c553f --- /dev/null +++ b/models/br_bd_metadados/br_bd_metadados__prefect_flows.sql @@ -0,0 +1,22 @@ +{{ config(alias='prefect_flows',schema='br_bd_metadados') }} +SELECT +SAFE_CAST(flow_group_id AS STRING) flow_group_id, +SAFE_CAST(name AS STRING) name, +DATETIME(LEFT(flow_group_flows_aggregate_aggregate_min_created,19)) created, +SAFE_CAST(version AS INT64) latest_version, +DATETIME(LEFT(created,19)) last_update, +SAFE_CAST(schedule_type AS STRING) schedule_type, +SAFE_CAST(schedule_cron AS STRING) schedule_cron, +DATETIME(TRIM(JSON_EXTRACT(schedule_start_date,'$.dt'),'"')) schedule_start_date, +SAFE_CAST(schedule_filters AS STRING) schedule_filters, +SAFE_CAST(schedule_adjustments AS STRING) schedule_adjustments, +SAFE_CAST(schedule_labels AS STRING) schedule_labels, +SAFE_CAST(schedule_parameter_defaults AS STRING) schedule_all_parameters, +SAFE_CAST(schedule_parameters_dataset_id AS STRING) schedule_parameters_dataset_id, +SAFE_CAST(schedule_parameters_table_id AS STRING) schedule_parameters_table_id, +SAFE_CAST(schedule_parameters_dbt_alias AS BOOL) schedule_parameters_dbt_alias, +SAFE_CAST(schedule_parameters_materialization_mode AS STRING) schedule_parameters_materialization_mode, +SAFE_CAST(schedule_parameters_materialize_after_dump AS BOOL) schedule_parameters_materialize_after_dump, +SAFE_CAST(schedule_parameters_update_metadata AS BOOL) schedule_parameters_update_metadata, +FROM basedosdados-staging.br_bd_metadados_staging.prefect_flows AS t + diff --git a/models/br_bd_metadados/schema.yml b/models/br_bd_metadados/schema.yml index 601e1659..ee997ad6 100644 --- a/models/br_bd_metadados/schema.yml +++ b/models/br_bd_metadados/schema.yml @@ -24,201 +24,190 @@ models: description: Row Count - name: size_mb description: Size in Mb - - name: organizations - description: "Metadata on organizations in the BD+ platform." + - name: br_bd_metadados__prefect_flows + description: Insert `prefect_flows` table description here + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - flow_group_id columns: - - name: id - description: "" - - name: name - description: "" - - name: description - description: "" - - name: display_name - description: "" - - name: title - description: "" - - name: package_count - description: "" - - name: date_created - description: "" - - name: datasets - description: "Metadata on datasets in the BD+ platform." - columns: - - name: organization_id - description: "" - - name: id - description: "" - - name: name - description: "" - - name: title - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: themes - description: "" - - name: tags - description: "" - - name: resources - description: "Metadata on resources in the BD+ platform." - columns: - - name: dataset_id - description: "" - - name: id - description: "" - - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: type - description: "" - - name: external_links - description: "Metadata on external links in the BD+ platform." - columns: - - name: dataset_id - description: "" - - name: id - description: "" + - name: flow_group_id + description: Flow group identifier + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: url - description: "" - - name: language - description: "" - - name: has_structured_data - description: "" - - name: has_api - description: "" - - name: is_free - description: "" - - name: requires_registration - description: "" - - name: availability - description: "" - - name: spatial_coverage - description: "" - - name: temporal_coverage - description: "" - - name: update_frequency - description: "" - - name: observation_level - description: "" - - name: information_requests - description: "Metadata on information requests in the BD+ platform." + description: Flow's name + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: created + description: Timestamp indicating when the flow was initially created + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: latest_version + description: Version number of the latest iteration of the flow + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: last_update + description: Timestamp of the last update made to the flow + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_type + description: Type of scheduling employed for the flow (e.g. CronClock, IntervalClock) + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_cron + description: Cron expression defining the flow's scheduling pattern + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_start_date + description: Date when the scheduled execution of the flow starts + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_filters + description: Filters applied to refine the scheduled execution criteria + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_adjustments + description: Adjustments or configurations for the flow's scheduling + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_labels + description: Labels in the flow's scheduling + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_all_parameters + description: All parameters in the schedule + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_dataset_id + description: Dataset used in scheduling parameters. + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_table_id + description: Table used in scheduling parameters + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_dbt_alias + description: Indicates if the model uses alias in DBT + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_materialization_mode + description: Mode defining where data is materialized + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_materialize_after_dump + description: Indicates if materialization occurs after data dump + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: schedule_parameters_update_metadata + description: Indicates if metadata is updated + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: br_bd_metadados__prefect_flow_runs + description: Insert `prefect_flow_runs` table description here + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - id columns: - - name: dataset_id - description: "" - name: id - description: "" + description: Unique identifier for the flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_group_id + description: Unique identifier for the flow group + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: url - description: "" - - name: origin - description: "" - - name: number - description: "" - - name: opening_date - description: "" - - name: requested_by - description: "" - - name: status - description: "" - - name: data_url - description: "" - - name: spatial_coverage - description: "" - - name: temporal_coverage - description: "" - - name: update_frequency - description: "" - - name: observation_level - description: "" - - name: tables - description: "Metadata on tables in the BD+ platform." - columns: + description: Name associated with the specific flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: labels + description: Labels (determines the project the data will be materialized) + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_project_name + description: Name of the project linked to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_name + description: Name of the flow linked to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: flow_archived + description: Boolean indicating whether the flow run is archived or active + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: dataset_id - description: "" - - name: dataset_name - description: "" - - name: id - description: "" - - name: name - description: "" - - name: date_created - description: "" - - name: date_last_modified - description: "" - - name: spatial_coverage - description: "" - - name: temporal_coverage - description: "" - - name: update_frequency - description: "" - - name: observation_level - description: "" - - name: number_rows - description: "" - - name: number_columns - description: "" - - name: outdated - description: "" - - name: metadata - description: "" - - name: data - description: "" - - name: release - description: "" - - name: published_by - description: "" - - name: cleaned_by - description: "" - - name: missing_metadata - description: "" - - name: columns - description: "Metadata on columns in the BD+ platform." - columns: + description: BigQuery dataset id relevant to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 - name: table_id - description: "" - - name: name - description: "" - - name: bigquery_type - description: "" - - name: description - description: "" - - name: temporal_coverage - description: "" - - name: covered_by_dictionary - description: "" - - name: directory_column - description: "" - - name: measurement_unit - description: "" - - name: has_sensitive_data - description: "" - - name: observations - description: "" - - name: is_in_staging - description: "" - - name: is_partition - description: "" - - name: available_options - description: "Metadata on available options in the BD platform." - columns: - - name: element - description: "" - - name: key - description: "" - - name: value - description: "" \ No newline at end of file + description: BigQuery table id relevant to this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: start_time + description: Date and time when the flow run was initiated + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: end_time + description: Date and time when the flow run was completed or ended + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: state + description: Current state of the flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: state_message + description: Additional message or information related to the state/status + of the flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: task_runs + description: Information or details regarding individual task runs within + this flow run + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: skipped_upload_to_gcs + description: Boolean indicating whether the upload to GCS (Google Cloud Storage) + was skipped or not for this flow run. + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: error_logs + description: Error log records + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 From 29c2f855e622f5f01cb2e3a64480f67264d92db3 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Tue, 9 Jan 2024 12:17:15 -0300 Subject: [PATCH 06/15] [dbt] fix br_inep_enem.dicionario (#392) * fix 336 * trigger ci --- .../br_inep_enem/br_inep_enem__dicionario.sql | 1 + models/br_inep_enem/code/main.py | 32 ++++++++----------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/models/br_inep_enem/br_inep_enem__dicionario.sql b/models/br_inep_enem/br_inep_enem__dicionario.sql index 378c67c7..913e9d6a 100644 --- a/models/br_inep_enem/br_inep_enem__dicionario.sql +++ b/models/br_inep_enem/br_inep_enem__dicionario.sql @@ -5,6 +5,7 @@ ) }} + SELECT SAFE_CAST(id_tabela AS STRING) id_tabela, SAFE_CAST(nome_coluna AS STRING) nome_coluna, diff --git a/models/br_inep_enem/code/main.py b/models/br_inep_enem/code/main.py index ed2d1f52..5fac5173 100644 --- a/models/br_inep_enem/code/main.py +++ b/models/br_inep_enem/code/main.py @@ -219,6 +219,17 @@ def create_intervals(years): return intervals + def make_temporal_cov(interval): + interval_sort = list( + map( + lambda year: "" + if year == max(YEARS) or year == min(YEARS) + else str(year), + np.sort(interval), + ), + ) + return "(1)".join(interval_sort) + def make_ranges(key, value): values_by_key = df.loc[ (df["chave"] == key) & (df["valor"] == value), "valor" @@ -231,17 +242,6 @@ def make_ranges(key, value): intervals = [list(set(interval)) for interval in create_intervals(years)] - def make_temporal_cov(interval): - interval_sort = list( - map( - lambda year: "" - if year == max(YEARS) or year == min(YEARS) - else str(year), - np.sort(interval), - ), - ) - return "(1)".join(interval_sort) - cobertura_temporal = [make_temporal_cov(interval) for interval in intervals] return (str(key), ",".join(cobertura_temporal), str(values_by_key[0])) @@ -254,14 +254,8 @@ def make_temporal_cov(interval): dict_df = pd.DataFrame(ranges, columns=basic_cols) - unique_keys = [i for (i, v) in dict_df["chave"].value_counts().items() if v == 1] - - # Drop temporal coverage if key is unique - def drop_temporal_cov(key, temporal_cov): - return None if key in unique_keys else temporal_cov - - dict_df["cobertura_temporal"] = dict_df[["chave", "cobertura_temporal"]].apply( - lambda values: drop_temporal_cov(*values), axis=1 + dict_df["cobertura_temporal"] = dict_df["cobertura_temporal"].apply( + lambda value: None if value == "(1)" else value ) # Last edits From fa8b02190986ad41b187753b3bdc224ead924b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Gusm=C3=A3o?= Date: Mon, 8 Jan 2024 19:36:33 -0300 Subject: [PATCH 07/15] feat(models): models for the 4 new censo tables --- ...dice_envelhecimento_cor_raca_municipio.sql | 10 ++ ...igenas_indice_envelhecimento_municipio.sql | 10 ++ ...igenas_populacao_grupo_idade_municipio.sql | 9 + ...populacao_residente_cor_raca_municipio.sql | 10 ++ models/br_ibge_censo_2022/schema.yml | 169 +++++++++++++++++- 5 files changed, 207 insertions(+), 1 deletion(-) create mode 100644 models/br_ibge_censo_2022/br_ibge_censo_2022__indice_envelhecimento_cor_raca_municipio.sql create mode 100644 models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql create mode 100644 models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql create mode 100644 models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indice_envelhecimento_cor_raca_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indice_envelhecimento_cor_raca_municipio.sql new file mode 100644 index 00000000..dbd61198 --- /dev/null +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indice_envelhecimento_cor_raca_municipio.sql @@ -0,0 +1,10 @@ +{{ config(alias='indice_envelhecimento_cor_raca_municipio',schema='br_ibge_censo_2022') }} +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(cod_ AS STRING) id_municipio, +SAFE_CAST(cor_ou_raca AS STRING) cor_raca, +SAFE_CAST(REPLACE(indice_de_envelhecimento_idosos_60_anos_ou_mais_de_idade_razao_, ",", ".") AS FLOAT64) indice_envelhecimento, +SAFE_CAST(idade_mediana_anos_ AS INT64) idade_mediana, +SAFE_CAST(REPLACE(razao_de_sexo_razao_, ",", ".") AS FLOAT64) razao_sexo, +FROM basedosdados-staging.br_ibge_censo_2022_staging.indice_envelhecimento_cor_raca_municipio AS t + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql new file mode 100644 index 00000000..e4a68f61 --- /dev/null +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql @@ -0,0 +1,10 @@ +{{ config(alias='indigenas_indice_envelhecimento_municipio',schema='br_ibge_censo_2022') }} +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(cod_ AS STRING) id_municipio, +SAFE_CAST(quesito_de_declaracao_indigena AS STRING) quesito_declaracao_indigena, +SAFE_CAST(REPLACE(indice_de_envelhecimento_da_populacao_indigena_idosos_60_anos_ou_mais_de_idade_razao_, ",", ".") AS FLOAT64) indice_envelhecimento, +SAFE_CAST(idade_mediana_da_populacao_indigena_anos_ AS INT64) idade_mediana, +SAFE_CAST(REPLACE(razao_de_sexo_da_populacao_indigena_razao_, ",", ".") AS FLOAT64) razao_sexo, +FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_indice_envelhecimento_municipio AS t + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql new file mode 100644 index 00000000..14875ac5 --- /dev/null +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql @@ -0,0 +1,9 @@ +{{ config(alias='indigenas_populacao_grupo_idade_municipio',schema='br_ibge_censo_2022') }} +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(cod_ AS STRING) id_municipio, +SAFE_CAST(grupo_de_idade AS STRING) grupo_idade, +SAFE_CAST(sexo AS STRING) sexo, +SAFE_CAST(pessoas_indigenas_pessoas_ AS INT64) populacao_residente, +FROM basedosdados-dev.br_ibge_censo_2022_staging.indigenas_populacao_grupo_idade_municipio AS t + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql new file mode 100644 index 00000000..f4bcc725 --- /dev/null +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql @@ -0,0 +1,10 @@ +{{ config(alias='populacao_residente_cor_raca_municipio',schema='br_ibge_censo_2022') }} +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(cod_ AS STRING) id_municipio, +SAFE_CAST(idade AS STRING) grupo_idade, +SAFE_CAST(sexo AS STRING) sexo, +SAFE_CAST(cor_ou_raca AS STRING) cor_raca, +SAFE_CAST(populacao_residente_pessoas_ AS INT64) populacao_residente, +FROM basedosdados-dev.br_ibge_censo_2022_staging.populacao_residente_cor_raca_municipio AS t + diff --git a/models/br_ibge_censo_2022/schema.yml b/models/br_ibge_censo_2022/schema.yml index b9533ea2..e9a2bde2 100644 --- a/models/br_ibge_censo_2022/schema.yml +++ b/models/br_ibge_censo_2022/schema.yml @@ -2,7 +2,7 @@ version: 2 models: - name: br_ibge_censo_2022__quilombolas_domicilio_morador_municipio - description: Domicílios particulares permanentes ocupados e Moradores, total e quilombolas, em domicílios particulares permanentes, segundo localização do domicílio. + description: Domicílios particulares permanentes ocupados e Moradores, total e quilombolas, em domicílios particulares permanentes, segundo localização do domicílio. tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: @@ -613,3 +613,170 @@ models: tests: - dbt_utils.not_null_proportion: at_least: 0.05 + - name: br_ibge_censo_2022__indigenas_indice_envelhecimento_grupo_idade_municipio + description: teste + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - ano + - id_municipio + - quesito_declaracao_indigena + columns: + - name: ano + description: Ano + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: id_municipio + description: ID Município IBGE 7 dígitos + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - relationships: + to: ref('br_bd_diretorios_brasil__municipio') + field: id + - name: quesito_declaracao_indigena + description: Quesito de declaração indígena + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: indice_envelhecimento + description: Índice de envelhecimento da população indígena + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: idade_mediana + description: Idade mediana da população indígena + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: razao_sexo + description: Razão de sexo da população indígena + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio + description: teste + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - ano + - id_municipio + - grupo_idade + - sexo + columns: + - name: ano + description: Ano + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: id_municipio + description: ID Município IBGE 7 dígitos + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - relationships: + to: ref('br_bd_diretorios_brasil__municipio') + field: id + - name: grupo_idade + description: Grupo de Idade + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: sexo + description: Sexo + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: populacao_residente + description: População Residentne + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: br_ibge_censo_2022__indice_envelhecimento_cor_raca_municipio + description: teste + here + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - ano + - id_municipio + - cor_raca + columns: + - name: ano + description: Ano + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: id_municipio + description: ID Município IBGE 7 dígitos + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - relationships: + to: ref('br_bd_diretorios_brasil__municipio') + field: id + - name: cor_raca + description: Cor ou Raça + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: indice_envelhecimento + description: 'Índice de envelhecimento (Idosos: 60 anos ou mais de idade)' + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: idade_mediana + description: Idade mediana + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: razao_sexo + description: Razão de sexo + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: br_ibge_censo_2022__populacao_residente_cor_raca_municipio + description: teste + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - ano + - id_municipio + - grupo_idade + - sexo + - cor_raca + columns: + - name: ano + description: Ano + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: id_municipio + description: ID Município IBGE 7 dígitos + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - relationships: + to: ref('br_bd_diretorios_brasil__municipio') + field: id + - name: grupo_idade + description: Grupo de Idade + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: sexo + description: Sexo + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: cor_raca + description: Cor ou Raça + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 + - name: populacao_residente + description: População + tests: + - dbt_utils.not_null_proportion: + at_least: 0.05 From 6088c4a28cef85090f32fade21bf663060c6cf24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Gusm=C3=A3o?= Date: Mon, 8 Jan 2024 19:44:29 -0300 Subject: [PATCH 08/15] feat(schema): adding description --- models/br_ibge_censo_2022/schema.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/models/br_ibge_censo_2022/schema.yml b/models/br_ibge_censo_2022/schema.yml index e9a2bde2..7ee38bbb 100644 --- a/models/br_ibge_censo_2022/schema.yml +++ b/models/br_ibge_censo_2022/schema.yml @@ -614,7 +614,7 @@ models: - dbt_utils.not_null_proportion: at_least: 0.05 - name: br_ibge_censo_2022__indigenas_indice_envelhecimento_grupo_idade_municipio - description: teste + description: Índice de envelhecimento, idade mediana e razão de sexo da população indígena, por quesito de declaração indígena tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: @@ -656,7 +656,7 @@ models: - dbt_utils.not_null_proportion: at_least: 0.05 - name: br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio - description: teste + description: População indígena, por grupos de idade e sexo tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: @@ -694,7 +694,7 @@ models: - dbt_utils.not_null_proportion: at_least: 0.05 - name: br_ibge_censo_2022__indice_envelhecimento_cor_raca_municipio - description: teste + description: Índice de envelhecimento, idade mediana e razão de sexo, por cor ou raça here tests: - dbt_utils.unique_combination_of_columns: @@ -737,7 +737,7 @@ models: - dbt_utils.not_null_proportion: at_least: 0.05 - name: br_ibge_censo_2022__populacao_residente_cor_raca_municipio - description: teste + description: População residente, por cor ou raça, segundo o sexo e a idade tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: From c3b2eb680cc875ebfe67ef98ee4e263b742dc8e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Gusm=C3=A3o?= Date: Mon, 8 Jan 2024 21:18:08 -0300 Subject: [PATCH 09/15] fix(idade column): fixing idade columns --- ..._censo_2022__indigenas_populacao_grupo_idade_municipio.sql | 4 ++-- .../br_ibge_censo_2022__populacao_grupo_idade_uf.sql | 1 + ...bge_censo_2022__populacao_residente_cor_raca_municipio.sql | 3 ++- .../br_ibge_censo_2022__populacao_residente_municipio.sql | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql index 14875ac5..76af53d1 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql @@ -5,5 +5,5 @@ SAFE_CAST(cod_ AS STRING) id_municipio, SAFE_CAST(grupo_de_idade AS STRING) grupo_idade, SAFE_CAST(sexo AS STRING) sexo, SAFE_CAST(pessoas_indigenas_pessoas_ AS INT64) populacao_residente, -FROM basedosdados-dev.br_ibge_censo_2022_staging.indigenas_populacao_grupo_idade_municipio AS t - +FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_populacao_grupo_idade_municipio AS t +where (grupo_idade LIKE '% a %' or grupo_idade LIKE '100 anos ou mais') diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql index a1725131..58cbd725 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql @@ -6,6 +6,7 @@ SAFE_CAST(`população` AS INT64) populacao, FROM basedosdados-staging.br_ibge_censo_2022_staging.populacao_grupo_idade_uf AS t left join `basedosdados.br_bd_diretorios_brasil.uf` t2 on t.unidade_da_federacao = t2.nome +where (grupo_idade LIKE '% a %' or grupo_idade LIKE '100 anos ou mais') diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql index f4bcc725..30edbbf5 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql @@ -6,5 +6,6 @@ SAFE_CAST(idade AS STRING) grupo_idade, SAFE_CAST(sexo AS STRING) sexo, SAFE_CAST(cor_ou_raca AS STRING) cor_raca, SAFE_CAST(populacao_residente_pessoas_ AS INT64) populacao_residente, -FROM basedosdados-dev.br_ibge_censo_2022_staging.populacao_residente_cor_raca_municipio AS t +FROM basedosdados-staging.br_ibge_censo_2022_staging.populacao_residente_cor_raca_municipio AS t +where (grupo_idade LIKE '% a %' or grupo_idade LIKE '100 anos ou mais') diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql index 70fe2ab9..dda8c1e9 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql @@ -13,3 +13,4 @@ select t2.cod as id_municipio, ibge.* except(municipio, nome_municipio,sigla_uf) from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 on ibge.municipio = t2.municipio +where (idade LIKE '% a %' or idade LIKE '100 anos ou mais') \ No newline at end of file From c44fc11d43c63ed370a9b01096150ec42e89439f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Gusm=C3=A3o?= Date: Tue, 9 Jan 2024 14:44:34 -0300 Subject: [PATCH 10/15] feat(queries): adding changes to table approve --- ...nso_2022__indigenas_domicilio_morador_municipio.sql | 2 ++ ...022__indigenas_domicilio_morador_terra_indigena.sql | 4 +++- ...icilio_pelo_menos_um_morador_indigena_municipio.sql | 3 +++ ...o_pelo_menos_um_morador_indigena_terra_indigena.sql | 2 ++ ...2022__indigenas_indice_envelhecimento_municipio.sql | 2 ++ ...2022__indigenas_populacao_grupo_idade_municipio.sql | 2 +- ...o_2022__indigenas_populacao_residente_municipio.sql | 3 ++- ...2__indigenas_populacao_residente_terra_indigena.sql | 4 +++- .../br_ibge_censo_2022__populacao_grupo_idade_uf.sql | 1 - ...so_2022__populacao_residente_cor_raca_municipio.sql | 1 - ..._ibge_censo_2022__populacao_residente_municipio.sql | 1 - ...o_2022__quilombolas_domicilio_morador_municipio.sql | 2 ++ ...ombolas_domicilio_morador_territorio_quilombola.sql | 9 +++++++-- ...ilio_pelo_menos_um_morador_quilombola_municipio.sql | 2 ++ ...nos_um_morador_quilombola_territorio_quilombola.sql | 7 ++++++- ...2022__quilombolas_populacao_residente_municipio.sql | 3 ++- ...bolas_populacao_residente_territorio_quilombola.sql | 10 ++++++++-- 17 files changed, 45 insertions(+), 13 deletions(-) diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_municipio.sql index 94d6b873..169b4fea 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_municipio.sql @@ -19,3 +19,5 @@ on ibge.municipio = t2.municipio + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_terra_indigena.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_terra_indigena.sql index 59d9d414..ebaa9cce 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_terra_indigena.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_morador_terra_indigena.sql @@ -12,4 +12,6 @@ SAFE_CAST(domicilios_particulares_permanentes_ocupados_localizados_em_terras_ind SAFE_CAST(moradores_em_domicilios_particulares_permanentes_ocupados_localizados_em_terras_indigenas_pessoas_ AS INT64) moradores, SAFE_CAST(moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_localizados_em_terras_indigenas_pessoas_ AS INT64) moradores_indigenas, #SAFE_CAST(REPLACE(media_de_moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_indigena_localizados_em_terras_indigenas_pessoas_, ",", ".") AS FLOAT64) media_moradores_indigenas_domicilios_terras_indigenas, -FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_domicilio_morador_terra_indigena AS t \ No newline at end of file +FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_domicilio_morador_terra_indigena AS t + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_municipio.sql index 47b30445..80877dd5 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_municipio.sql @@ -16,3 +16,6 @@ from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 on ibge.municipio = t2.municipio + + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_terra_indigena.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_terra_indigena.sql index 8e5fca99..3bfb9513 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_terra_indigena.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_domicilio_pelo_menos_um_morador_indigena_terra_indigena.sql @@ -8,3 +8,5 @@ SAFE_CAST(moradores_em_domicilios_particulares_permanentes_ocupados_com_pelo_men SAFE_CAST(moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_indigena_pessoas_ AS INT64) moradores_indigenas, #SAFE_CAST(REPLACE(media_de_moradores_indigenas_em_domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_indigena_pessoas_, ",", ".") AS FLOAT64) media_moradores_indigenas_domicilios_terras_indigenas_pelo_menos_um, FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_domicilio_pelo_menos_um_morador_indigena_terra_indigena AS t + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql index e4a68f61..f94b7ead 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_indice_envelhecimento_municipio.sql @@ -8,3 +8,5 @@ SAFE_CAST(idade_mediana_da_populacao_indigena_anos_ AS INT64) idade_mediana, SAFE_CAST(REPLACE(razao_de_sexo_da_populacao_indigena_razao_, ",", ".") AS FLOAT64) razao_sexo, FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_indice_envelhecimento_municipio AS t + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql index 76af53d1..beb7055e 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_grupo_idade_municipio.sql @@ -6,4 +6,4 @@ SAFE_CAST(grupo_de_idade AS STRING) grupo_idade, SAFE_CAST(sexo AS STRING) sexo, SAFE_CAST(pessoas_indigenas_pessoas_ AS INT64) populacao_residente, FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_populacao_grupo_idade_municipio AS t -where (grupo_idade LIKE '% a %' or grupo_idade LIKE '100 anos ou mais') + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_municipio.sql index a0ecec07..28c8be81 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_municipio.sql @@ -12,4 +12,5 @@ FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_populacao_residen select t2.cod as id_municipio, ibge.* except(municipio, nome_municipio,sigla_uf) from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 -on ibge.municipio = t2.municipio \ No newline at end of file +on ibge.municipio = t2.municipio + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_terra_indigena.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_terra_indigena.sql index 67a08e33..0855f63d 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_terra_indigena.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__indigenas_populacao_residente_terra_indigena.sql @@ -11,4 +11,6 @@ SAFE_CAST(TRIM(REGEXP_EXTRACT(terra_indigena_por_unidade_da_federacao, r'([^\(]+ SAFE_CAST(pessoas_residentes_em_terras_indigenas_pessoas_ AS INT64) populacao_residente, SAFE_CAST(pessoas_indigenas_residentes_em_terras_indigenas_pessoas_ AS INT64) pessoas_indigenas, SAFE_CAST(quesito_de_declaracao_indigena AS STRING) quesito_declaracao_indigena, -FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_populacao_residente_terra_indigena AS t \ No newline at end of file +FROM basedosdados-staging.br_ibge_censo_2022_staging.indigenas_populacao_residente_terra_indigena AS t + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql index 58cbd725..a1725131 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_grupo_idade_uf.sql @@ -6,7 +6,6 @@ SAFE_CAST(`população` AS INT64) populacao, FROM basedosdados-staging.br_ibge_censo_2022_staging.populacao_grupo_idade_uf AS t left join `basedosdados.br_bd_diretorios_brasil.uf` t2 on t.unidade_da_federacao = t2.nome -where (grupo_idade LIKE '% a %' or grupo_idade LIKE '100 anos ou mais') diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql index 30edbbf5..af0ee66a 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_cor_raca_municipio.sql @@ -7,5 +7,4 @@ SAFE_CAST(sexo AS STRING) sexo, SAFE_CAST(cor_ou_raca AS STRING) cor_raca, SAFE_CAST(populacao_residente_pessoas_ AS INT64) populacao_residente, FROM basedosdados-staging.br_ibge_censo_2022_staging.populacao_residente_cor_raca_municipio AS t -where (grupo_idade LIKE '% a %' or grupo_idade LIKE '100 anos ou mais') diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql index dda8c1e9..70fe2ab9 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__populacao_residente_municipio.sql @@ -13,4 +13,3 @@ select t2.cod as id_municipio, ibge.* except(municipio, nome_municipio,sigla_uf) from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 on ibge.municipio = t2.municipio -where (idade LIKE '% a %' or idade LIKE '100 anos ou mais') \ No newline at end of file diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_municipio.sql index c7f91150..f64eb5c3 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_municipio.sql @@ -15,3 +15,5 @@ select t2.cod as id_municipio, ibge.* except(municipio, nome_municipio,sigla_uf) from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 on ibge.municipio = t2.municipio + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_territorio_quilombola.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_territorio_quilombola.sql index ed638692..6be98984 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_territorio_quilombola.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_morador_territorio_quilombola.sql @@ -1,8 +1,13 @@ {{ config(alias='quilombolas_domicilio_morador_territorio_quilombola',schema='br_ibge_censo_2022') }} SELECT -SAFE_CAST(cod_ AS STRING) id_territorio_quilombola, +SAFE_CAST(cod_ as STRING) id_territorio_quilombola, SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'([^\(]+)')) AS STRING) territorio_quilombola, -SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'\(([^)]+)\)')) AS STRING) sigla_uf, + CASE + WHEN REGEXP_CONTAINS(territorio_quilombola_por_unidade_da_federacao, r'\(\w{2}\)') THEN + SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'\((\w{2})\)')) AS STRING) + ELSE + SAFE_CAST(TRIM(SPLIT(SPLIT(territorio_quilombola_por_unidade_da_federacao, '(')[SAFE_OFFSET(2)], ')')[SAFE_OFFSET(0)]) AS STRING) + END AS sigla_uf, SAFE_CAST(domicilios_particulares_permanentes_ocupados_localizados_em_territorios_quilombolas_domicilios_ AS STRING) domicilios, SAFE_CAST(moradores_em_domicilios_particulares_permanentes_ocupados_localizados_em_territorios_quilombolas_pessoas_ AS INT64) moradores, SAFE_CAST(moradores_quilombolas_em_domicilios_particulares_permanentes_ocupados_localizados_em_territorios_quilombolas_pessoas_ AS INT64) moradores_quilombolas, diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_municipio.sql index 976fb847..a6177e4a 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_municipio.sql @@ -16,3 +16,5 @@ from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 on ibge.municipio = t2.municipio + + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_territorio_quilombola.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_territorio_quilombola.sql index 88aace2a..c3b503d3 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_territorio_quilombola.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_domicilio_pelo_menos_um_morador_quilombola_territorio_quilombola.sql @@ -2,7 +2,12 @@ SELECT SAFE_CAST(cod_ as STRING) id_territorio_quilombola, SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'([^\(]+)')) AS STRING) territorio_quilombola, -SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'\(([^)]+)\)')) AS STRING) sigla_uf, + CASE + WHEN REGEXP_CONTAINS(territorio_quilombola_por_unidade_da_federacao, r'\(\w{2}\)') THEN + SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'\((\w{2})\)')) AS STRING) + ELSE + SAFE_CAST(TRIM(SPLIT(SPLIT(territorio_quilombola_por_unidade_da_federacao, '(')[SAFE_OFFSET(2)], ')')[SAFE_OFFSET(0)]) AS STRING) + END AS sigla_uf, SAFE_CAST(domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_quilombola_domicilios_ AS STRING) domicilios, SAFE_CAST(moradores_em_domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_quilombola_pessoas_ AS INT64) moradores, SAFE_CAST(moradores_quilombolas_em_domicilios_particulares_permanentes_ocupados_com_pelo_menos_um_morador_quilombola_pessoas_ AS INT64) moradores_quilombolas, diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_municipio.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_municipio.sql index 368e509c..d0c8d778 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_municipio.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_municipio.sql @@ -11,4 +11,5 @@ FROM basedosdados-staging.br_ibge_censo_2022_staging.quilombolas_populacao_resid select t2.cod as id_municipio, ibge.* except(municipio, nome_municipio,sigla_uf) from ibge left join `basedosdados-dev.br_ibge_censo_2022_staging.auxiliary_table` t2 -on ibge.municipio = t2.municipio \ No newline at end of file +on ibge.municipio = t2.municipio + diff --git a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_territorio_quilombola.sql b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_territorio_quilombola.sql index d4a8e404..412e9c1b 100644 --- a/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_territorio_quilombola.sql +++ b/models/br_ibge_censo_2022/br_ibge_censo_2022__quilombolas_populacao_residente_territorio_quilombola.sql @@ -1,7 +1,13 @@ {{ config(alias='quilombolas_populacao_residente_territorio_quilombola',schema='br_ibge_censo_2022') }} SELECT +SAFE_CAST(cod_ as STRING) id_territorio_quilombola, SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'([^\(]+)')) AS STRING) territorio_quilombola, -SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'\(([^)]+)\)')) AS STRING) sigla_uf, + CASE + WHEN REGEXP_CONTAINS(territorio_quilombola_por_unidade_da_federacao, r'\(\w{2}\)') THEN + SAFE_CAST(TRIM(REGEXP_EXTRACT(territorio_quilombola_por_unidade_da_federacao, r'\((\w{2})\)')) AS STRING) + ELSE + SAFE_CAST(TRIM(SPLIT(SPLIT(territorio_quilombola_por_unidade_da_federacao, '(')[SAFE_OFFSET(2)], ')')[SAFE_OFFSET(0)]) AS STRING) + END AS sigla_uf, SAFE_CAST(pessoas_quilombolas_residentes_em_territorios_quilombolas_pessoas_ AS INT64) pessoas_quilombolas, SAFE_CAST(pessoas_residentes_em_territorios_quilombolas_pessoas_ AS INT64) populacao_residente, -FROM basedosdados-staging.br_ibge_censo_2022_staging.quilombolas_populacao_residente_territorio_quilombola AS t \ No newline at end of file +FROM basedosdados-staging.br_ibge_censo_2022_staging.quilombolas_populacao_residente_territorio_quilombola AS t From b3e01ce34d250898b26c7e7b98f61adaeebc8a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Gusm=C3=A3o?= Date: Thu, 11 Jan 2024 18:46:17 -0300 Subject: [PATCH 11/15] fix(model): fix datahackers model --- .../br_datahackers_state_data__microdados.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/br_datahackers_state_data/br_datahackers_state_data__microdados.sql b/models/br_datahackers_state_data/br_datahackers_state_data__microdados.sql index d99faed2..6b6b685d 100644 --- a/models/br_datahackers_state_data/br_datahackers_state_data__microdados.sql +++ b/models/br_datahackers_state_data/br_datahackers_state_data__microdados.sql @@ -353,5 +353,5 @@ SAFE_CAST(p8_d_8 AS INT64) p8_d_8, SAFE_CAST(p8_d_9 AS INT64) p8_d_9, SAFE_CAST(p8_d_10 AS INT64) p8_d_10, SAFE_CAST(p8_d_11 AS INT64) p8_d_11, -FROM basedosdados-staging.br_datahackers_state_data_staging.microdados AS t +FROM basedosdados-dev.br_datahackers_state_data_staging.microdados AS t From c8b2078ed4a98bd2200565ffd1a6174ebcebf0ca Mon Sep 17 00:00:00 2001 From: Winzen Date: Fri, 12 Jan 2024 14:55:49 -0300 Subject: [PATCH 12/15] =?UTF-8?q?Adi=C3=A7=C3=A3o=20do=20dataset=20world?= =?UTF-8?q?=5Fwwf=5Fhydrosheds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbt_project.yml | 3 + .../code/hydrosheds_atlas.ipynb | 193 ++ models/world_wwf_hydrosheds/schema.yaml | 2351 +++++++++++++++++ .../world_wwf_hydrosheds__basins_atlas.sql | 306 +++ .../world_wwf_hydrosheds__lakes_atlas.sql | 317 +++ .../world_wwf_hydrosheds__rivers_atlas.sql | 307 +++ 6 files changed, 3477 insertions(+) create mode 100644 models/world_wwf_hydrosheds/code/hydrosheds_atlas.ipynb create mode 100644 models/world_wwf_hydrosheds/schema.yaml create mode 100644 models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql create mode 100644 models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql create mode 100644 models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql diff --git a/dbt_project.yml b/dbt_project.yml index d1d4cf41..87191da5 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -277,6 +277,9 @@ models: world_oceanos_mapeamento: +materialized: table +schema: world_oceanos_mapeamento + world_wwf_hydrosheds: + +materialized: table + +schema: world_wwf_hydrosheds test_dataset: +materialized: table +schema: test_dataset diff --git a/models/world_wwf_hydrosheds/code/hydrosheds_atlas.ipynb b/models/world_wwf_hydrosheds/code/hydrosheds_atlas.ipynb new file mode 100644 index 00000000..f11452df --- /dev/null +++ b/models/world_wwf_hydrosheds/code/hydrosheds_atlas.ipynb @@ -0,0 +1,193 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "metadata": { + "colab": { + "provenance": [] + }, + "kernelspec": { + "name": "python3", + "display_name": "Python 3" + }, + "language_info": { + "name": "python" + } + }, + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "id": "wpHkRnNHJJdE" + }, + "outputs": [], + "source": [ + "https://www.hydrosheds.org/products" + ] + }, + { + "cell_type": "code", + "source": [ + "pip install pyogrio" + ], + "metadata": { + "id": "5b33Qz9CJSVX" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "code", + "source": [ + "from ast import main\n", + "import requests\n", + "from zipfile import ZipFile\n", + "from pyogrio import read_dataframe\n", + "import pandas as pd\n", + "import geopandas as gpd\n", + "import concurrent.futures\n", + "import os\n", + "import re\n", + "\n", + "def download_url(url, save_path, chunk_size=128):\n", + " r = requests.get(url, stream=True)\n", + " with open(save_path, 'wb') as fd:\n", + " for chunk in r.iter_content(chunk_size=chunk_size):\n", + " fd.write(chunk)\n", + "\n", + "def extrair(path, path_output):\n", + " # loading the temp.zip and creating a zip object\n", + " with ZipFile(path, 'r') as zObject:\n", + "\n", + " # Extracting all the members of the zip\n", + " # into a specific location.\n", + " zObject.extractall(\n", + " path=path_output)\n", + "\n", + "def threads_tasks(funcion, list1, list2):\n", + " with concurrent.futures.ThreadPoolExecutor() as executor:\n", + " future = executor.map(funcion, list1, list2)\n", + "\n", + "def tables(zip_names: list,\n", + " links: list,\n", + " skip: bool=False,\n", + " flagment: bool=False,\n", + " re_pattern: str=\"\",\n", + " partition: str=\"\"):\n", + "\n", + " if not skip:\n", + "\n", + " threads_tasks(download_url, links, zip_names)\n", + " output_folders = [folder.replace(\".zip\", \"\") + \"/\" for folder in zip_names]\n", + " threads_tasks(extrair, zip_names, output_folders)\n", + " folder_zip = zip_name[0].replace(\".zip\", \"\")\n", + " folders_snp = [f\"{folder_zip}/\" + folder for folder in os.listdir(folder_zip) if folder.count(\"_shp\")]\n", + " files_snp = [folders_snp[0] + \"/\" + folder for folder in os.listdir(folders_snp[0]) if folder.count(\".shp\")]\n", + "\n", + " if flagment:\n", + " for file in files_snp:\n", + "\n", + " df_gio_fragment = read_dataframe(f'/content/' + file)\n", + " df_gio_fragment.columns = df_gio_fragment.columns.str.lower()\n", + "\n", + " region_name = re.findall(re_pattern, file)[0]\n", + " folder_name = f\"output/{partition}=\" + region_name\n", + " create_folder([folder_name])\n", + "\n", + " df_gio_fragment.to_csv(folder_name + f\"/{region_name}.csv\", index=False)\n", + "\n", + " else:\n", + "\n", + " dfs = pd.concat([read_dataframe(f'/content/' + file) for file in files_snp[:1]])\n", + " df_gio = gpd.GeoDataFrame(dfs)\n", + " return df_gio\n", + "\n", + "def create_folder(name_folders: list) -> None:\n", + "\n", + " for folder in name_folders:\n", + " try:\n", + " os.mkdir(folder)\n", + " except:\n", + " pass\n" + ], + "metadata": { + "id": "TtxthjyEJVD-" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "# RiverAtlas" + ], + "metadata": { + "id": "Ap__vD7LJ-We" + } + }, + { + "cell_type": "code", + "source": [ + "link = [\"https://figshare.com/ndownloader/files/20087486\"]\n", + "zip_name = [\"Global_RiverATLAS.zip\"]\n", + "create_folder([\"output\", \"input\"])\n", + "RiverATLASTESTE = tables(zip_name, link, False, True)" + ], + "metadata": { + "id": "EP5KIxJbJxX2" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "#BasinAtlas" + ], + "metadata": { + "id": "BTFtQtjBKC7e" + } + }, + { + "cell_type": "code", + "source": [ + "link = [\"https://figshare.com/ndownloader/files/20087237\"]\n", + "zip_name = [\"Global_BasinATLAS.zip\"]\n", + "create_folder([\"output\", \"input\"])\n", + "BasinATLASTESTE = tables(zip_name, link, False, True,\n", + " re_pattern=\"lev(\\d*).shp\",\n", + " partition=\"level\")" + ], + "metadata": { + "id": "-ay26hSvJzRG" + }, + "execution_count": null, + "outputs": [] + }, + { + "cell_type": "markdown", + "source": [ + "# LakeAtlas" + ], + "metadata": { + "id": "IgD_tMfIKFem" + } + }, + { + "cell_type": "code", + "source": [ + "link = [\"https://figshare.com/ndownloader/files/35959547\"]\n", + "zip_name = [\"Global_LakeATLAS.zip\"]\n", + "create_folder([\"output\", \"input\"])\n", + "LakeATLASTESTE = tables(zip_name, link, False, True,\n", + " re_pattern=\"_([a-z]{3}_[a-z]{4}).shp\",\n", + " partition=\"region\")" + ], + "metadata": { + "id": "aN89ppSBJ06_" + }, + "execution_count": null, + "outputs": [] + } + ] +} \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/schema.yaml b/models/world_wwf_hydrosheds/schema.yaml new file mode 100644 index 00000000..db3e6c99 --- /dev/null +++ b/models/world_wwf_hydrosheds/schema.yaml @@ -0,0 +1,2351 @@ +version: 2 + +models: + - name: world_wwf_hydrosheds__rivers_atlas + description: HydroRIVERS represents a vectorized line network of all global rivers that have a catchment area of at least 10 km² or an average river flow of at least 0.1 m³/sec, or both. + columns: + - name: hyriv_id + description: 'Unique identifier for each river reach. ' + - name: next_down + description: 'HYRIV_ID of the next downstream line segment. This field can + be used for navigation (up- and downstream) within the river network. ' + - name: main_riv + description: HYRIV_ID of the most downstream reach of the connected river + basin + - name: length_km + description: Length of the river reach segment, in kilometers. + - name: dist_dn_km + description: Distance from the reach outlet, i.e., the most downstream pixel + of the reach, to the final downstream location along the river network, + in kilometers. This downstream location is either the pour point into + the ocean or an endorheic sink + - name: dist_up_km + description: Distance from the reach outlet, i.e., the most downstream pixel + of the reach, to the most upstream location along the river network, in + kilometers. The most upstream location is the furthest upstream point + from this reach on the watershed divide + - name: catch_skm + description: Area of the catchment that contributes directly to the individual + reach, in square kilometers. The catchment only relates to the reach itself, + while the contributing area of all upstream reaches is not included + - name: upland_skm + description: Total upstream area, in square kilometers, calculated from the + headwaters to the pour point (i.e. the most downstream pixel) of the reach. + The upstream area only comprises the directly connected watershed area, + i.e. it does not include endorheic regions that may be nested within the + larger basin. + - name: endorheic + description: Indicator for endorheic (inland) basins without surface flow + connection to the ocean + - name: dis_av_cms + description: Average long-term discharge estimate for river reach, in cubic + meters per second. + - name: ord_stra + description: Indicator of river order following the Strahler ordering system + - name: ord_clas + description: Indicator of river order following the classical ordering system + - name: ord_flow + description: Indicator of river order using river flow to distinguish logarithmic + size classes + - name: hybas_l12 + description: HYBAS_ID of the corresponding HydroBASINS sub-basin in which + the river reach resides + - name: dis_m3_pyr + description: Natural Discharge {p} at reach pour point {yr} annual average + - name: dis_m3_pmn + description: Natural Discharge {p} at reach pour point {mn} annual minimum + - name: dis_m3_pmx + description: Natural Discharge {p} at reach pour point {mx} annual maximum + - name: run_mm_cyr + description: Land Surface Runoff {c} in reach catchment {yr} annual average + - name: inu_pc_cmn + description: Inundation Extent {c} in reach catchment {mn} annual minimum + - name: inu_pc_umn + description: Inundation Extent {u} in total watershed upstream of reach pour + point {mn} annual minimum + - name: inu_pc_cmx + description: Inundation Extent {c} in reach catchment {mx} annual maximum + - name: inu_pc_umx + description: Inundation Extent {u} in total watershed upstream of reach pour + point {mx} annual maximum + - name: inu_pc_clt + description: Inundation Extent {c} in reach catchment {lt} long-term maximum + - name: inu_pc_ult + description: Inundation Extent {u} in total watershed upstream of reach pour + point {lt} long-term maximum + - name: lka_pc_cse + description: Limnicity (Percent Lake Area) {c} in reach catchment {se} spatial + extent (%) + - name: lka_pc_use + description: Limnicity (Percent Lake Area) {u} in total watershed upstream + of reach pour point {se} spatial extent (%) + - name: lkv_mc_usu + description: Lake Volume {u} in total watershed upstream of reach pour point + {su} sum + - name: rev_mc_usu + description: Reservoir Volume {u} in total watershed upstream of reach pour + point {su} sum + - name: dor_pc_pva + description: Degree of Regulation {p} at reach pour point {va} value + - name: ria_ha_csu + description: vazio + - name: ria_ha_usu + description: River Area {u} in total watershed upstream of reach pour point + {su} sum + - name: riv_tc_csu + description: vazio + - name: riv_tc_usu + description: River Volume {u} in total watershed upstream of reach pour point + {su} sum + - name: gwt_cm_cav + description: Groundwater Table Depth {c} in reach catchment {av} average + - name: ele_mt_cav + description: Elevation {c} in reach catchment {av} average + - name: ele_mt_uav + description: Elevation {u} in total watershed upstream of reach pour point + {av} average + - name: ele_mt_cmn + description: Elevation {c} in reach catchment {mn} minimum + - name: ele_mt_cmx + description: Elevation {c} in reach catchment {mx} maximum + - name: slp_dg_cav + description: Terrain Slope {c} in reach catchment {av} average + - name: slp_dg_uav + description: Terrain Slope {u} in total watershed upstream of reach pour point + {av} average + - name: sgr_dk_rav + description: Stream Gradient {r} along reach segment {av} average + - name: clz_cl_cmj + description: Climate Zones {c} in reach catchment {mj} spatial majority + - name: cls_cl_cmj + description: Climate Strata {c} in reach catchment {mj} spatial majority + - name: tmp_dc_cyr + description: Air Temperature {c} in reach catchment {yr} annual average + - name: tmp_dc_uyr + description: Air Temperature {u} in total watershed upstream of reach pour + point {yr} annual average + - name: tmp_dc_cmn + description: Air Temperature {c} in reach catchment {mn} annual minimum + - name: tmp_dc_cmx + description: Air Temperature {c} in reach catchment {mx} annual maximum + - name: tmp_dc_c01 + description: Air Temperature {c} in reach catchment {01} monthly average + - name: tmp_dc_c02 + description: Air Temperature {c} in reach catchment {02} monthly average + - name: tmp_dc_c03 + description: Air Temperature {c} in reach catchment {03} monthly average + - name: tmp_dc_c04 + description: Air Temperature {c} in reach catchment {04} monthly average + - name: tmp_dc_c05 + description: Air Temperature {c} in reach catchment {05} monthly average + - name: tmp_dc_c06 + description: Air Temperature {c} in reach catchment {06} monthly average + - name: tmp_dc_c07 + description: Air Temperature {c} in reach catchment {07} monthly average + - name: tmp_dc_c08 + description: Air Temperature {c} in reach catchment {08} monthly average + - name: tmp_dc_c09 + description: Air Temperature {c} in reach catchment {09} monthly average + - name: tmp_dc_c10 + description: Air Temperature {c} in reach catchment {10} monthly average + - name: tmp_dc_c11 + description: Air Temperature {c} in reach catchment {11} monthly average + - name: tmp_dc_c12 + description: Air Temperature {c} in reach catchment {12} monthly average + - name: pre_mm_cyr + description: Precipitation {c} in reach catchment {yr} annual average + - name: pre_mm_uyr + description: Precipitation {u} in total watershed upstream of reach pour point + {yr} annual average + - name: pre_mm_c01 + description: Precipitation {c} in reach catchment {01} monthly average + - name: pre_mm_c02 + description: Precipitation {c} in reach catchment {02} monthly average + - name: pre_mm_c03 + description: Precipitation {c} in reach catchment {03} monthly average + - name: pre_mm_c04 + description: Precipitation {c} in reach catchment {04} monthly average + - name: pre_mm_c05 + description: Precipitation {c} in reach catchment {05} monthly average + - name: pre_mm_c06 + description: Precipitation {c} in reach catchment {06} monthly average + - name: pre_mm_c07 + description: Precipitation {c} in reach catchment {07} monthly average + - name: pre_mm_c08 + description: Precipitation {c} in reach catchment {08} monthly average + - name: pre_mm_c09 + description: Precipitation {c} in reach catchment {09} monthly average + - name: pre_mm_c10 + description: Precipitation {c} in reach catchment {10} monthly average + - name: pre_mm_c11 + description: Precipitation {c} in reach catchment {11} monthly average + - name: pre_mm_c12 + description: Precipitation {c} in reach catchment {12} monthly average + - name: pet_mm_cyr + description: Potential Evapotranspiration {c} in reach catchment {yr} annual + average + - name: pet_mm_uyr + description: Potential Evapotranspiration {u} in total watershed upstream + of reach pour point {yr} annual average + - name: pet_mm_c01 + description: Potential Evapotranspiration {c} in reach catchment {01} monthly + average + - name: pet_mm_c02 + description: Potential Evapotranspiration {c} in reach catchment {02} monthly + average + - name: pet_mm_c03 + description: Potential Evapotranspiration {c} in reach catchment {03} monthly + average + - name: pet_mm_c04 + description: Potential Evapotranspiration {c} in reach catchment {04} monthly + average + - name: pet_mm_c05 + description: Potential Evapotranspiration {c} in reach catchment {05} monthly + average + - name: pet_mm_c06 + description: Potential Evapotranspiration {c} in reach catchment {06} monthly + average + - name: pet_mm_c07 + description: Potential Evapotranspiration {c} in reach catchment {07} monthly + average + - name: pet_mm_c08 + description: Potential Evapotranspiration {c} in reach catchment {08} monthly + average + - name: pet_mm_c09 + description: Potential Evapotranspiration {c} in reach catchment {09} monthly + average + - name: pet_mm_c10 + description: Potential Evapotranspiration {c} in reach catchment {10} monthly + average + - name: pet_mm_c11 + description: Potential Evapotranspiration {c} in reach catchment {11} monthly + average + - name: pet_mm_c12 + description: Potential Evapotranspiration {c} in reach catchment {12} monthly + average + - name: aet_mm_cyr + description: Actual Evapotranspiration {c} in reach catchment {yr} annual + average + - name: aet_mm_uyr + description: Actual Evapotranspiration {u} in total watershed upstream of + reach pour point {yr} annual average + - name: aet_mm_c01 + description: Actual Evapotranspiration {c} in reach catchment {01} monthly + average + - name: aet_mm_c02 + description: Actual Evapotranspiration {c} in reach catchment {02} monthly + average + - name: aet_mm_c03 + description: Actual Evapotranspiration {c} in reach catchment {03} monthly + average + - name: aet_mm_c04 + description: Actual Evapotranspiration {c} in reach catchment {04} monthly + average + - name: aet_mm_c05 + description: Actual Evapotranspiration {c} in reach catchment {05} monthly + average + - name: aet_mm_c06 + description: Actual Evapotranspiration {c} in reach catchment {06} monthly + average + - name: aet_mm_c07 + description: Actual Evapotranspiration {c} in reach catchment {07} monthly + average + - name: aet_mm_c08 + description: Actual Evapotranspiration {c} in reach catchment {08} monthly + average + - name: aet_mm_c09 + description: Actual Evapotranspiration {c} in reach catchment {09} monthly + average + - name: aet_mm_c10 + description: Actual Evapotranspiration {c} in reach catchment {10} monthly + average + - name: aet_mm_c11 + description: Actual Evapotranspiration {c} in reach catchment {11} monthly + average + - name: aet_mm_c12 + description: Actual Evapotranspiration {c} in reach catchment {12} monthly + average + - name: ari_ix_cav + description: Global Aridity Index {c} in reach catchment {av} average + - name: ari_ix_uav + description: Global Aridity Index {u} in total watershed upstream of reach + pour point {av} average + - name: cmi_ix_cyr + description: Climate Moisture Index {c} in reach catchment {yr} annual average + - name: cmi_ix_uyr + description: Climate Moisture Index {u} in total watershed upstream of reach + pour point {yr} annual average + - name: cmi_ix_c01 + description: Climate Moisture Index {c} in reach catchment {01} monthly average + - name: cmi_ix_c02 + description: Climate Moisture Index {c} in reach catchment {02} monthly average + - name: cmi_ix_c03 + description: Climate Moisture Index {c} in reach catchment {03} monthly average + - name: cmi_ix_c04 + description: Climate Moisture Index {c} in reach catchment {04} monthly average + - name: cmi_ix_c05 + description: Climate Moisture Index {c} in reach catchment {05} monthly average + - name: cmi_ix_c06 + description: Climate Moisture Index {c} in reach catchment {06} monthly average + - name: cmi_ix_c07 + description: Climate Moisture Index {c} in reach catchment {07} monthly average + - name: cmi_ix_c08 + description: Climate Moisture Index {c} in reach catchment {08} monthly average + - name: cmi_ix_c09 + description: Climate Moisture Index {c} in reach catchment {09} monthly average + - name: cmi_ix_c10 + description: Climate Moisture Index {c} in reach catchment {10} monthly average + - name: cmi_ix_c11 + description: Climate Moisture Index {c} in reach catchment {11} monthly average + - name: cmi_ix_c12 + description: Climate Moisture Index {c} in reach catchment {12} monthly average + - name: snw_pc_cyr + description: Snow Cover Extent {c} in reach catchment {yr} annual average + - name: snw_pc_uyr + description: Snow Cover Extent {u} in total watershed upstream of reach pour + point {yr} annual average + - name: snw_pc_cmx + description: Snow Cover Extent {c} in reach catchment {mx} annual maximum + - name: snw_pc_c01 + description: Snow Cover Extent {c} in reach catchment {01} monthly average + - name: snw_pc_c02 + description: Snow Cover Extent {c} in reach catchment {02} monthly average + - name: snw_pc_c03 + description: Snow Cover Extent {c} in reach catchment {03} monthly average + - name: snw_pc_c04 + description: Snow Cover Extent {c} in reach catchment {04} monthly average + - name: snw_pc_c05 + description: Snow Cover Extent {c} in reach catchment {05} monthly average + - name: snw_pc_c06 + description: Snow Cover Extent {c} in reach catchment {06} monthly average + - name: snw_pc_c07 + description: Snow Cover Extent {c} in reach catchment {07} monthly average + - name: snw_pc_c08 + description: Snow Cover Extent {c} in reach catchment {08} monthly average + - name: snw_pc_c09 + description: Snow Cover Extent {c} in reach catchment {09} monthly average + - name: snw_pc_c10 + description: Snow Cover Extent {c} in reach catchment {10} monthly average + - name: snw_pc_c11 + description: Snow Cover Extent {c} in reach catchment {11} monthly average + - name: snw_pc_c12 + description: Snow Cover Extent {c} in reach catchment {12} monthly average + - name: glc_cl_cmj + description: Land Cover Classes {c} in reach catchment {mj} spatial majority + - name: glc_pc_c01 + description: Land Cover Extent {c} in reach catchment {01} spatial extent + (%) by class + - name: glc_pc_c02 + description: Land Cover Extent {c} in reach catchment {02} spatial extent + (%) by class + - name: glc_pc_c03 + description: Land Cover Extent {c} in reach catchment {03} spatial extent + (%) by class + - name: glc_pc_c04 + description: Land Cover Extent {c} in reach catchment {04} spatial extent + (%) by class + - name: glc_pc_c05 + description: Land Cover Extent {c} in reach catchment {05} spatial extent + (%) by class + - name: glc_pc_c06 + description: Land Cover Extent {c} in reach catchment {06} spatial extent + (%) by class + - name: glc_pc_c07 + description: Land Cover Extent {c} in reach catchment {07} spatial extent + (%) by class + - name: glc_pc_c08 + description: Land Cover Extent {c} in reach catchment {08} spatial extent + (%) by class + - name: glc_pc_c09 + description: Land Cover Extent {c} in reach catchment {09} spatial extent + (%) by class + - name: glc_pc_c10 + description: Land Cover Extent {c} in reach catchment {10} spatial extent + (%) by class + - name: glc_pc_c11 + description: Land Cover Extent {c} in reach catchment {11} spatial extent + (%) by class + - name: glc_pc_c12 + description: Land Cover Extent {c} in reach catchment {12} spatial extent + (%) by class + - name: glc_pc_c13 + description: Land Cover Extent {c} in reach catchment {13} spatial extent + (%) by class + - name: glc_pc_c14 + description: Land Cover Extent {c} in reach catchment {14} spatial extent + (%) by class + - name: glc_pc_c15 + description: Land Cover Extent {c} in reach catchment {15} spatial extent + (%) by class + - name: glc_pc_c16 + description: Land Cover Extent {c} in reach catchment {16} spatial extent + (%) by class + - name: glc_pc_c17 + description: Land Cover Extent {c} in reach catchment {17} spatial extent + (%) by class + - name: glc_pc_c18 + description: Land Cover Extent {c} in reach catchment {18} spatial extent + (%) by class + - name: glc_pc_c19 + description: Land Cover Extent {c} in reach catchment {19} spatial extent + (%) by class + - name: glc_pc_c20 + description: Land Cover Extent {c} in reach catchment {20} spatial extent + (%) by class + - name: glc_pc_c21 + description: Land Cover Extent {c} in reach catchment {21} spatial extent + (%) by class + - name: glc_pc_c22 + description: Land Cover Extent {c} in reach catchment {22} spatial extent + (%) by class + - name: glc_pc_u01 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {01} spatial extent (%) by class + - name: glc_pc_u02 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {02} spatial extent (%) by class + - name: glc_pc_u03 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {03} spatial extent (%) by class + - name: glc_pc_u04 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {04} spatial extent (%) by class + - name: glc_pc_u05 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {05} spatial extent (%) by class + - name: glc_pc_u06 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {06} spatial extent (%) by class + - name: glc_pc_u07 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {07} spatial extent (%) by class + - name: glc_pc_u08 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {08} spatial extent (%) by class + - name: glc_pc_u09 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {09} spatial extent (%) by class + - name: glc_pc_u10 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {10} spatial extent (%) by class + - name: glc_pc_u11 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {11} spatial extent (%) by class + - name: glc_pc_u12 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {12} spatial extent (%) by class + - name: glc_pc_u13 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {13} spatial extent (%) by class + - name: glc_pc_u14 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {14} spatial extent (%) by class + - name: glc_pc_u15 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {15} spatial extent (%) by class + - name: glc_pc_u16 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {16} spatial extent (%) by class + - name: glc_pc_u17 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {17} spatial extent (%) by class + - name: glc_pc_u18 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {18} spatial extent (%) by class + - name: glc_pc_u19 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {19} spatial extent (%) by class + - name: glc_pc_u20 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {20} spatial extent (%) by class + - name: glc_pc_u21 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {21} spatial extent (%) by class + - name: glc_pc_u22 + description: Land Cover Extent {u} in total watershed upstream of reach pour + point {22} spatial extent (%) by class + - name: pnv_cl_cmj + description: Potential Natural Vegetation Classes {c} in reach catchment {mj} + spatial majority + - name: pnv_pc_c01 + description: Potential Natural Vegetation Extent {c} in reach catchment {01} + spatial extent (%) by class + - name: pnv_pc_c02 + description: Potential Natural Vegetation Extent {c} in reach catchment {02} + spatial extent (%) by class + - name: pnv_pc_c03 + description: Potential Natural Vegetation Extent {c} in reach catchment {03} + spatial extent (%) by class + - name: pnv_pc_c04 + description: Potential Natural Vegetation Extent {c} in reach catchment {04} + spatial extent (%) by class + - name: pnv_pc_c05 + description: Potential Natural Vegetation Extent {c} in reach catchment {05} + spatial extent (%) by class + - name: pnv_pc_c06 + description: Potential Natural Vegetation Extent {c} in reach catchment {06} + spatial extent (%) by class + - name: pnv_pc_c07 + description: Potential Natural Vegetation Extent {c} in reach catchment {07} + spatial extent (%) by class + - name: pnv_pc_c08 + description: Potential Natural Vegetation Extent {c} in reach catchment {08} + spatial extent (%) by class + - name: pnv_pc_c09 + description: Potential Natural Vegetation Extent {c} in reach catchment {09} + spatial extent (%) by class + - name: pnv_pc_c10 + description: Potential Natural Vegetation Extent {c} in reach catchment {10} + spatial extent (%) by class + - name: pnv_pc_c11 + description: Potential Natural Vegetation Extent {c} in reach catchment {11} + spatial extent (%) by class + - name: pnv_pc_c12 + description: Potential Natural Vegetation Extent {c} in reach catchment {12} + spatial extent (%) by class + - name: pnv_pc_c13 + description: Potential Natural Vegetation Extent {c} in reach catchment {13} + spatial extent (%) by class + - name: pnv_pc_c14 + description: Potential Natural Vegetation Extent {c} in reach catchment {14} + spatial extent (%) by class + - name: pnv_pc_c15 + description: Potential Natural Vegetation Extent {c} in reach catchment {15} + spatial extent (%) by class + - name: pnv_pc_u01 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {01} spatial extent (%) by class + - name: pnv_pc_u02 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {02} spatial extent (%) by class + - name: pnv_pc_u03 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {03} spatial extent (%) by class + - name: pnv_pc_u04 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {04} spatial extent (%) by class + - name: pnv_pc_u05 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {05} spatial extent (%) by class + - name: pnv_pc_u06 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {06} spatial extent (%) by class + - name: pnv_pc_u07 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {07} spatial extent (%) by class + - name: pnv_pc_u08 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {08} spatial extent (%) by class + - name: pnv_pc_u09 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {09} spatial extent (%) by class + - name: pnv_pc_u10 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {10} spatial extent (%) by class + - name: pnv_pc_u11 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {11} spatial extent (%) by class + - name: pnv_pc_u12 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {12} spatial extent (%) by class + - name: pnv_pc_u13 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {13} spatial extent (%) by class + - name: pnv_pc_u14 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {14} spatial extent (%) by class + - name: pnv_pc_u15 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of reach pour point {15} spatial extent (%) by class + - name: wet_cl_cmj + description: Wetland Classes {c} in reach catchment {mj} spatial majority + - name: wet_pc_cg1 + description: vazio + - name: wet_pc_ug1 + description: vazio + - name: wet_pc_cg2 + description: vazio + - name: wet_pc_ug2 + description: vazio + - name: wet_pc_c01 + description: Wetland Extent {c} in reach catchment {01} spatial extent (%) + by class + - name: wet_pc_c02 + description: Wetland Extent {c} in reach catchment {02} spatial extent (%) + by class + - name: wet_pc_c03 + description: Wetland Extent {c} in reach catchment {03} spatial extent (%) + by class + - name: wet_pc_c04 + description: Wetland Extent {c} in reach catchment {04} spatial extent (%) + by class + - name: wet_pc_c05 + description: Wetland Extent {c} in reach catchment {05} spatial extent (%) + by class + - name: wet_pc_c06 + description: Wetland Extent {c} in reach catchment {06} spatial extent (%) + by class + - name: wet_pc_c07 + description: Wetland Extent {c} in reach catchment {07} spatial extent (%) + by class + - name: wet_pc_c08 + description: Wetland Extent {c} in reach catchment {08} spatial extent (%) + by class + - name: wet_pc_c09 + description: Wetland Extent {c} in reach catchment {09} spatial extent (%) + by class + - name: wet_pc_u01 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {01} spatial extent (%) by class + - name: wet_pc_u02 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {02} spatial extent (%) by class + - name: wet_pc_u03 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {03} spatial extent (%) by class + - name: wet_pc_u04 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {04} spatial extent (%) by class + - name: wet_pc_u05 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {05} spatial extent (%) by class + - name: wet_pc_u06 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {06} spatial extent (%) by class + - name: wet_pc_u07 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {07} spatial extent (%) by class + - name: wet_pc_u08 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {08} spatial extent (%) by class + - name: wet_pc_u09 + description: Wetland Extent {u} in total watershed upstream of reach pour + point {09} spatial extent (%) by class + - name: for_pc_cse + description: Forest Cover Extent {c} in reach catchment {se} spatial extent + (%) + - name: for_pc_use + description: Forest Cover Extent {u} in total watershed upstream of reach + pour point {se} spatial extent (%) + - name: crp_pc_cse + description: Cropland Extent {c} in reach catchment {se} spatial extent (%) + - name: crp_pc_use + description: Cropland Extent {u} in total watershed upstream of reach pour + point {se} spatial extent (%) + - name: pst_pc_cse + description: Pasture Extent {c} in reach catchment {se} spatial extent (%) + - name: pst_pc_use + description: Pasture Extent {u} in total watershed upstream of reach pour + point {se} spatial extent (%) + - name: ire_pc_cse + description: Irrigated Area Extent (Equipped) {c} in reach catchment {se} + spatial extent (%) + - name: ire_pc_use + description: Irrigated Area Extent (Equipped) {u} in total watershed upstream + of reach pour point {se} spatial extent (%) + - name: gla_pc_cse + description: Glacier Extent {c} in reach catchment {se} spatial extent (%) + - name: gla_pc_use + description: Glacier Extent {u} in total watershed upstream of reach pour + point {se} spatial extent (%) + - name: prm_pc_cse + description: Permafrost Extent {c} in reach catchment {se} spatial extent + (%) + - name: prm_pc_use + description: Permafrost Extent {u} in total watershed upstream of reach pour + point {se} spatial extent (%) + - name: pac_pc_cse + description: Protected Area Extent {c} in reach catchment {se} spatial extent + (%) + - name: pac_pc_use + description: Protected Area Extent {u} in total watershed upstream of reach + pour point {se} spatial extent (%) + - name: tbi_cl_cmj + description: Terrestrial Biomes {c} in reach catchment {mj} spatial majority + - name: tec_cl_cmj + description: Terrestrial Ecoregions {c} in reach catchment {mj} spatial majority + - name: fmh_cl_cmj + description: Freshwater Major Habitat Types {c} in reach catchment {mj} spatial + majority + - name: fec_cl_cmj + description: Freshwater Ecoregions {c} in reach catchment {mj} spatial majority + - name: cly_pc_cav + description: Clay Fraction in Soil {c} in reach catchment {av} average + - name: cly_pc_uav + description: Clay Fraction in Soil {u} in total watershed upstream of reach + pour point {av} average + - name: slt_pc_cav + description: Silt Fraction in Soil {c} in reach catchment {av} average + - name: slt_pc_uav + description: Silt Fraction in Soil {u} in total watershed upstream of reach + pour point {av} average + - name: snd_pc_cav + description: Sand Fraction in Soil {c} in reach catchment {av} average + - name: snd_pc_uav + description: Sand Fraction in Soil {u} in total watershed upstream of reach + pour point {av} average + - name: soc_th_cav + description: Organic Carbon Content in Soil {c} in reach catchment {av} average + - name: soc_th_uav + description: Organic Carbon Content in Soil {u} in total watershed upstream + of reach pour point {av} average + - name: swc_pc_cyr + description: Soil Water Content {c} in reach catchment {yr} annual average + - name: swc_pc_uyr + description: Soil Water Content {u} in total watershed upstream of reach pour + point {yr} annual average + - name: swc_pc_c01 + description: Soil Water Content {c} in reach catchment {01} monthly average + - name: swc_pc_c02 + description: Soil Water Content {c} in reach catchment {02} monthly average + - name: swc_pc_c03 + description: Soil Water Content {c} in reach catchment {03} monthly average + - name: swc_pc_c04 + description: Soil Water Content {c} in reach catchment {04} monthly average + - name: swc_pc_c05 + description: Soil Water Content {c} in reach catchment {05} monthly average + - name: swc_pc_c06 + description: Soil Water Content {c} in reach catchment {06} monthly average + - name: swc_pc_c07 + description: Soil Water Content {c} in reach catchment {07} monthly average + - name: swc_pc_c08 + description: Soil Water Content {c} in reach catchment {08} monthly average + - name: swc_pc_c09 + description: Soil Water Content {c} in reach catchment {09} monthly average + - name: swc_pc_c10 + description: Soil Water Content {c} in reach catchment {10} monthly average + - name: swc_pc_c11 + description: Soil Water Content {c} in reach catchment {11} monthly average + - name: swc_pc_c12 + description: Soil Water Content {c} in reach catchment {12} monthly average + - name: lit_cl_cmj + description: Lithological Classes {c} in reach catchment {mj} spatial majority + - name: kar_pc_cse + description: Karst Area Extent {c} in reach catchment {se} spatial extent + (%) + - name: kar_pc_use + description: Karst Area Extent {u} in total watershed upstream of reach pour + point {se} spatial extent (%) + - name: ero_kh_cav + description: Soil Erosion {c} in reach catchment {av} average + - name: ero_kh_uav + description: Soil Erosion {u} in total watershed upstream of reach pour point + {av} average + - name: pop_ct_csu + description: Population Count {c} in reach catchment {su} sum + - name: pop_ct_usu + description: Population Count {u} in total watershed upstream of reach pour + point {su} sum + - name: ppd_pk_cav + description: Population Density {c} in reach catchment {av} average + - name: ppd_pk_uav + description: Population Density {u} in total watershed upstream of reach pour + point {av} average + - name: urb_pc_cse + description: Urban Extent {c} in reach catchment {se} spatial extent (%) + - name: urb_pc_use + description: Urban Extent {u} in total watershed upstream of reach pour point + {se} spatial extent (%) + - name: nli_ix_cav + description: Nighttime Lights {c} in reach catchment {av} average + - name: nli_ix_uav + description: Nighttime Lights {u} in total watershed upstream of reach pour + point {av} average + - name: rdd_mk_cav + description: Road Density {c} in reach catchment {av} average + - name: rdd_mk_uav + description: Road Density {u} in total watershed upstream of reach pour point + {av} average + - name: hft_ix_c93 + description: Human Footprint {c} in reach catchment {93} year 1993 + - name: hft_ix_u93 + description: Human Footprint {u} in total watershed upstream of reach pour + point {93} year 1993 + - name: hft_ix_c09 + description: Human Footprint {c} in reach catchment {09} year 2009 + - name: hft_ix_u09 + description: Human Footprint {u} in total watershed upstream of reach pour + point {09} year 2009 + - name: gad_id_cmj + description: Global Administrative Areas {c} in reach catchment {mj} spatial + majority + - name: gdp_ud_cav + description: Gross Domestic Product {c} in reach catchment {av} average + - name: gdp_ud_csu + description: Gross Domestic Product {c} in reach catchment {su} sum + - name: gdp_ud_usu + description: vazio + - name: hdi_ix_cav + description: Human Development Index {c} in reach catchment {av} average + - name: geometry + description: "Data layers are provided in geographic (latitude/longitude)\ + \ projection, referenced to datum\nWGS84" + - name: world_wwf_hydrosheds__basins_atlas + description: HydroBASINS represents a series of vectorized polygon layers that depict sub-basin boundaries at a global scale + columns: + - name: hybas_id + description: Unique basin identifier. The code consists of 10 digits + - name: next_down + description: Hybas_id of the next downstream polygon. This field can be used + for navigation (up- and downstream) within the river network + - name: next_sink + description: Hybas_id of the next downstream sink + - name: main_bas + description: 'Hybas_id of the most downstream sink, i.e. the outlet of the + main river basin. ' + - name: dist_sink + description: Distance from polygon outlet to the next downstream sink along + the river network,in kilometers. + - name: dist_main + description: Distance from polygon outlet to the most downstream sink, i.e. + the outlet of the main river basin along the river network, in kilometers. + - name: sub_area + description: Area of the individual polygon (i.e. sub-basin), in square kilometers. + - name: up_area + description: Total upstream area, in square kilometers, calculated from the + headwaters to the polygon location (including the polygon) + - name: pfaf_id + description: The Pfafstetter code + - name: endo + description: Indicator for endorheic (inland) basins without surface flow + connection to the ocean + - name: coast + description: Indicator for lumped coastal basins. Coastal basins represent + conglomerates of small coastal watersheds that drain into the ocean between + larger river basins + - name: order + description: Indicator of river order (classical ordering system) + - name: sort + description: Indicator showing the record number (sequence) in which the original + polygons are stored in the shapefile (i.e. counting upwards from 1 in + the original shapefile) + - name: dis_m3_pyr + description: Natural Discharge {p} at sub-basin pour point {yr} annual average + - name: dis_m3_pmn + description: Natural Discharge {p} at sub-basin pour point {mn} annual minimum + - name: dis_m3_pmx + description: Natural Discharge {p} at sub-basin pour point {mx} annual maximum + - name: run_mm_syr + description: Land Surface Runoff {s} in sub-basin {yr} annual average + - name: inu_pc_smn + description: Inundation Extent {s} in sub-basin {mn} annual minimum + - name: inu_pc_umn + description: Inundation Extent {u} in total watershed upstream of sub-basin + pour point {mn} annual minimum + - name: inu_pc_smx + description: Inundation Extent {s} in sub-basin {mx} annual maximum + - name: inu_pc_umx + description: Inundation Extent {u} in total watershed upstream of sub-basin + pour point {mx} annual maximum + - name: inu_pc_slt + description: Inundation Extent {s} in sub-basin {lt} long-term maximum + - name: inu_pc_ult + description: Inundation Extent {u} in total watershed upstream of sub-basin + pour point {lt} long-term maximum + - name: lka_pc_sse + description: Limnicity (Percent Lake Area) {s} in sub-basin {se} spatial extent + (%) + - name: lka_pc_use + description: Limnicity (Percent Lake Area) {u} in total watershed upstream + of sub-basin pour point {se} spatial extent (%) + - name: lkv_mc_usu + description: Lake Volume {u} in total watershed upstream of sub-basin pour + point {su} sum + - name: rev_mc_usu + description: Reservoir Volume {u} in total watershed upstream of sub-basin + pour point {su} sum + - name: dor_pc_pva + description: Degree of Regulation {p} at sub-basin pour point {va} value + - name: ria_ha_ssu + description: River Area {s} in sub-basin {su} sum + - name: ria_ha_usu + description: River Area {u} in total watershed upstream of sub-basin pour + point {su} sum + - name: riv_tc_ssu + description: River Volume {s} in sub-basin {su} sum + - name: riv_tc_usu + description: River Volume {u} in total watershed upstream of sub-basin pour + point {su} sum + - name: gwt_cm_sav + description: Groundwater Table Depth {s} in sub-basin {av} average + - name: ele_mt_sav + description: Elevation {s} in sub-basin {av} average + - name: ele_mt_uav + description: Elevation {u} in total watershed upstream of sub-basin pour point + {av} average + - name: ele_mt_smn + description: Elevation {s} in sub-basin {mn} minimum + - name: ele_mt_smx + description: Elevation {s} in sub-basin {mx} maximum + - name: slp_dg_sav + description: Terrain Slope {s} in sub-basin {av} average + - name: slp_dg_uav + description: Terrain Slope {u} in total watershed upstream of sub-basin pour + point {av} average + - name: sgr_dk_sav + description: Stream Gradient {s} in sub-basin {av} average + - name: clz_cl_smj + description: Climate Zones {s} in sub-basin {mj} spatial majority + - name: cls_cl_smj + description: Climate Strata {s} in sub-basin {mj} spatial majority + - name: tmp_dc_syr + description: Air Temperature {s} in sub-basin {yr} annual average + - name: tmp_dc_uyr + description: Air Temperature {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: tmp_dc_smn + description: Air Temperature {s} in sub-basin {mn} annual minimum + - name: tmp_dc_smx + description: Air Temperature {s} in sub-basin {mx} annual maximum + - name: tmp_dc_s01 + description: Air Temperature {s} in sub-basin {01} monthly average + - name: tmp_dc_s02 + description: Air Temperature {s} in sub-basin {02} monthly average + - name: tmp_dc_s03 + description: Air Temperature {s} in sub-basin {03} monthly average + - name: tmp_dc_s04 + description: Air Temperature {s} in sub-basin {04} monthly average + - name: tmp_dc_s05 + description: Air Temperature {s} in sub-basin {05} monthly average + - name: tmp_dc_s06 + description: Air Temperature {s} in sub-basin {06} monthly average + - name: tmp_dc_s07 + description: Air Temperature {s} in sub-basin {07} monthly average + - name: tmp_dc_s08 + description: Air Temperature {s} in sub-basin {08} monthly average + - name: tmp_dc_s09 + description: Air Temperature {s} in sub-basin {09} monthly average + - name: tmp_dc_s10 + description: Air Temperature {s} in sub-basin {10} monthly average + - name: tmp_dc_s11 + description: Air Temperature {s} in sub-basin {11} monthly average + - name: tmp_dc_s12 + description: Air Temperature {s} in sub-basin {12} monthly average + - name: pre_mm_syr + description: Precipitation {s} in sub-basin {yr} annual average + - name: pre_mm_uyr + description: Precipitation {u} in total watershed upstream of sub-basin pour + point {yr} annual average + - name: pre_mm_s01 + description: Precipitation {s} in sub-basin {01} monthly average + - name: pre_mm_s02 + description: Precipitation {s} in sub-basin {02} monthly average + - name: pre_mm_s03 + description: Precipitation {s} in sub-basin {03} monthly average + - name: pre_mm_s04 + description: Precipitation {s} in sub-basin {04} monthly average + - name: pre_mm_s05 + description: Precipitation {s} in sub-basin {05} monthly average + - name: pre_mm_s06 + description: Precipitation {s} in sub-basin {06} monthly average + - name: pre_mm_s07 + description: Precipitation {s} in sub-basin {07} monthly average + - name: pre_mm_s08 + description: Precipitation {s} in sub-basin {08} monthly average + - name: pre_mm_s09 + description: Precipitation {s} in sub-basin {09} monthly average + - name: pre_mm_s10 + description: Precipitation {s} in sub-basin {10} monthly average + - name: pre_mm_s11 + description: Precipitation {s} in sub-basin {11} monthly average + - name: pre_mm_s12 + description: Precipitation {s} in sub-basin {12} monthly average + - name: pet_mm_syr + description: Potential Evapotranspiration {s} in sub-basin {yr} annual average + - name: pet_mm_uyr + description: Potential Evapotranspiration {u} in total watershed upstream + of sub-basin pour point {yr} annual average + - name: pet_mm_s01 + description: Potential Evapotranspiration {s} in sub-basin {01} monthly average + - name: pet_mm_s02 + description: Potential Evapotranspiration {s} in sub-basin {02} monthly average + - name: pet_mm_s03 + description: Potential Evapotranspiration {s} in sub-basin {03} monthly average + - name: pet_mm_s04 + description: Potential Evapotranspiration {s} in sub-basin {04} monthly average + - name: pet_mm_s05 + description: Potential Evapotranspiration {s} in sub-basin {05} monthly average + - name: pet_mm_s06 + description: Potential Evapotranspiration {s} in sub-basin {06} monthly average + - name: pet_mm_s07 + description: Potential Evapotranspiration {s} in sub-basin {07} monthly average + - name: pet_mm_s08 + description: Potential Evapotranspiration {s} in sub-basin {08} monthly average + - name: pet_mm_s09 + description: Potential Evapotranspiration {s} in sub-basin {09} monthly average + - name: pet_mm_s10 + description: Potential Evapotranspiration {s} in sub-basin {10} monthly average + - name: pet_mm_s11 + description: Potential Evapotranspiration {s} in sub-basin {11} monthly average + - name: pet_mm_s12 + description: Potential Evapotranspiration {s} in sub-basin {12} monthly average + - name: aet_mm_syr + description: Actual Evapotranspiration {s} in sub-basin {yr} annual average + - name: aet_mm_uyr + description: Actual Evapotranspiration {u} in total watershed upstream of + sub-basin pour point {yr} annual average + - name: aet_mm_s01 + description: Actual Evapotranspiration {s} in sub-basin {01} monthly average + - name: aet_mm_s02 + description: Actual Evapotranspiration {s} in sub-basin {02} monthly average + - name: aet_mm_s03 + description: Actual Evapotranspiration {s} in sub-basin {03} monthly average + - name: aet_mm_s04 + description: Actual Evapotranspiration {s} in sub-basin {04} monthly average + - name: aet_mm_s05 + description: Actual Evapotranspiration {s} in sub-basin {05} monthly average + - name: aet_mm_s06 + description: Actual Evapotranspiration {s} in sub-basin {06} monthly average + - name: aet_mm_s07 + description: Actual Evapotranspiration {s} in sub-basin {07} monthly average + - name: aet_mm_s08 + description: Actual Evapotranspiration {s} in sub-basin {08} monthly average + - name: aet_mm_s09 + description: Actual Evapotranspiration {s} in sub-basin {09} monthly average + - name: aet_mm_s10 + description: Actual Evapotranspiration {s} in sub-basin {10} monthly average + - name: aet_mm_s11 + description: Actual Evapotranspiration {s} in sub-basin {11} monthly average + - name: aet_mm_s12 + description: Actual Evapotranspiration {s} in sub-basin {12} monthly average + - name: ari_ix_sav + description: Global Aridity Index {s} in sub-basin {av} average + - name: ari_ix_uav + description: Global Aridity Index {u} in total watershed upstream of sub-basin + pour point {av} average + - name: cmi_ix_syr + description: Climate Moisture Index {s} in sub-basin {yr} annual average + - name: cmi_ix_uyr + description: Climate Moisture Index {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: cmi_ix_s01 + description: Climate Moisture Index {s} in sub-basin {01} monthly average + - name: cmi_ix_s02 + description: Climate Moisture Index {s} in sub-basin {02} monthly average + - name: cmi_ix_s03 + description: Climate Moisture Index {s} in sub-basin {03} monthly average + - name: cmi_ix_s04 + description: Climate Moisture Index {s} in sub-basin {04} monthly average + - name: cmi_ix_s05 + description: Climate Moisture Index {s} in sub-basin {05} monthly average + - name: cmi_ix_s06 + description: Climate Moisture Index {s} in sub-basin {06} monthly average + - name: cmi_ix_s07 + description: Climate Moisture Index {s} in sub-basin {07} monthly average + - name: cmi_ix_s08 + description: Climate Moisture Index {s} in sub-basin {08} monthly average + - name: cmi_ix_s09 + description: Climate Moisture Index {s} in sub-basin {09} monthly average + - name: cmi_ix_s10 + description: Climate Moisture Index {s} in sub-basin {10} monthly average + - name: cmi_ix_s11 + description: Climate Moisture Index {s} in sub-basin {11} monthly average + - name: cmi_ix_s12 + description: Climate Moisture Index {s} in sub-basin {12} monthly average + - name: snw_pc_syr + description: Snow Cover Extent {s} in sub-basin {yr} annual average + - name: snw_pc_uyr + description: Snow Cover Extent {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: snw_pc_smx + description: Snow Cover Extent {s} in sub-basin {mx} annual maximum + - name: snw_pc_s01 + description: Snow Cover Extent {s} in sub-basin {01} monthly average + - name: snw_pc_s02 + description: Snow Cover Extent {s} in sub-basin {02} monthly average + - name: snw_pc_s03 + description: Snow Cover Extent {s} in sub-basin {03} monthly average + - name: snw_pc_s04 + description: Snow Cover Extent {s} in sub-basin {04} monthly average + - name: snw_pc_s05 + description: Snow Cover Extent {s} in sub-basin {05} monthly average + - name: snw_pc_s06 + description: Snow Cover Extent {s} in sub-basin {06} monthly average + - name: snw_pc_s07 + description: Snow Cover Extent {s} in sub-basin {07} monthly average + - name: snw_pc_s08 + description: Snow Cover Extent {s} in sub-basin {08} monthly average + - name: snw_pc_s09 + description: Snow Cover Extent {s} in sub-basin {09} monthly average + - name: snw_pc_s10 + description: Snow Cover Extent {s} in sub-basin {10} monthly average + - name: snw_pc_s11 + description: Snow Cover Extent {s} in sub-basin {11} monthly average + - name: snw_pc_s12 + description: Snow Cover Extent {s} in sub-basin {12} monthly average + - name: glc_cl_smj + description: Land Cover Classes {s} in sub-basin {mj} spatial majority + - name: glc_pc_s01 + description: Land Cover Extent {s} in sub-basin {01} spatial extent (%) by + class + - name: glc_pc_s02 + description: Land Cover Extent {s} in sub-basin {02} spatial extent (%) by + class + - name: glc_pc_s03 + description: Land Cover Extent {s} in sub-basin {03} spatial extent (%) by + class + - name: glc_pc_s04 + description: Land Cover Extent {s} in sub-basin {04} spatial extent (%) by + class + - name: glc_pc_s05 + description: Land Cover Extent {s} in sub-basin {05} spatial extent (%) by + class + - name: glc_pc_s06 + description: Land Cover Extent {s} in sub-basin {06} spatial extent (%) by + class + - name: glc_pc_s07 + description: Land Cover Extent {s} in sub-basin {07} spatial extent (%) by + class + - name: glc_pc_s08 + description: Land Cover Extent {s} in sub-basin {08} spatial extent (%) by + class + - name: glc_pc_s09 + description: Land Cover Extent {s} in sub-basin {09} spatial extent (%) by + class + - name: glc_pc_s10 + description: Land Cover Extent {s} in sub-basin {10} spatial extent (%) by + class + - name: glc_pc_s11 + description: Land Cover Extent {s} in sub-basin {11} spatial extent (%) by + class + - name: glc_pc_s12 + description: Land Cover Extent {s} in sub-basin {12} spatial extent (%) by + class + - name: glc_pc_s13 + description: Land Cover Extent {s} in sub-basin {13} spatial extent (%) by + class + - name: glc_pc_s14 + description: Land Cover Extent {s} in sub-basin {14} spatial extent (%) by + class + - name: glc_pc_s15 + description: Land Cover Extent {s} in sub-basin {15} spatial extent (%) by + class + - name: glc_pc_s16 + description: Land Cover Extent {s} in sub-basin {16} spatial extent (%) by + class + - name: glc_pc_s17 + description: Land Cover Extent {s} in sub-basin {17} spatial extent (%) by + class + - name: glc_pc_s18 + description: Land Cover Extent {s} in sub-basin {18} spatial extent (%) by + class + - name: glc_pc_s19 + description: Land Cover Extent {s} in sub-basin {19} spatial extent (%) by + class + - name: glc_pc_s20 + description: Land Cover Extent {s} in sub-basin {20} spatial extent (%) by + class + - name: glc_pc_s21 + description: Land Cover Extent {s} in sub-basin {21} spatial extent (%) by + class + - name: glc_pc_s22 + description: Land Cover Extent {s} in sub-basin {22} spatial extent (%) by + class + - name: glc_pc_u01 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {01} spatial extent (%) by class + - name: glc_pc_u02 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {02} spatial extent (%) by class + - name: glc_pc_u03 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {03} spatial extent (%) by class + - name: glc_pc_u04 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {04} spatial extent (%) by class + - name: glc_pc_u05 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {05} spatial extent (%) by class + - name: glc_pc_u06 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {06} spatial extent (%) by class + - name: glc_pc_u07 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {07} spatial extent (%) by class + - name: glc_pc_u08 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {08} spatial extent (%) by class + - name: glc_pc_u09 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {09} spatial extent (%) by class + - name: glc_pc_u10 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {10} spatial extent (%) by class + - name: glc_pc_u11 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {11} spatial extent (%) by class + - name: glc_pc_u12 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {12} spatial extent (%) by class + - name: glc_pc_u13 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {13} spatial extent (%) by class + - name: glc_pc_u14 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {14} spatial extent (%) by class + - name: glc_pc_u15 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {15} spatial extent (%) by class + - name: glc_pc_u16 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {16} spatial extent (%) by class + - name: glc_pc_u17 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {17} spatial extent (%) by class + - name: glc_pc_u18 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {18} spatial extent (%) by class + - name: glc_pc_u19 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {19} spatial extent (%) by class + - name: glc_pc_u20 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {20} spatial extent (%) by class + - name: glc_pc_u21 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {21} spatial extent (%) by class + - name: glc_pc_u22 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {22} spatial extent (%) by class + - name: pnv_cl_smj + description: Potential Natural Vegetation Classes {s} in sub-basin {mj} spatial + majority + - name: pnv_pc_s01 + description: Potential Natural Vegetation Extent {s} in sub-basin {01} spatial + extent (%) by class + - name: pnv_pc_s02 + description: Potential Natural Vegetation Extent {s} in sub-basin {02} spatial + extent (%) by class + - name: pnv_pc_s03 + description: Potential Natural Vegetation Extent {s} in sub-basin {03} spatial + extent (%) by class + - name: pnv_pc_s04 + description: Potential Natural Vegetation Extent {s} in sub-basin {04} spatial + extent (%) by class + - name: pnv_pc_s05 + description: Potential Natural Vegetation Extent {s} in sub-basin {05} spatial + extent (%) by class + - name: pnv_pc_s06 + description: Potential Natural Vegetation Extent {s} in sub-basin {06} spatial + extent (%) by class + - name: pnv_pc_s07 + description: Potential Natural Vegetation Extent {s} in sub-basin {07} spatial + extent (%) by class + - name: pnv_pc_s08 + description: Potential Natural Vegetation Extent {s} in sub-basin {08} spatial + extent (%) by class + - name: pnv_pc_s09 + description: Potential Natural Vegetation Extent {s} in sub-basin {09} spatial + extent (%) by class + - name: pnv_pc_s10 + description: Potential Natural Vegetation Extent {s} in sub-basin {10} spatial + extent (%) by class + - name: pnv_pc_s11 + description: Potential Natural Vegetation Extent {s} in sub-basin {11} spatial + extent (%) by class + - name: pnv_pc_s12 + description: Potential Natural Vegetation Extent {s} in sub-basin {12} spatial + extent (%) by class + - name: pnv_pc_s13 + description: Potential Natural Vegetation Extent {s} in sub-basin {13} spatial + extent (%) by class + - name: pnv_pc_s14 + description: Potential Natural Vegetation Extent {s} in sub-basin {14} spatial + extent (%) by class + - name: pnv_pc_s15 + description: Potential Natural Vegetation Extent {s} in sub-basin {15} spatial + extent (%) by class + - name: pnv_pc_u01 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {01} spatial extent (%) by class + - name: pnv_pc_u02 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {02} spatial extent (%) by class + - name: pnv_pc_u03 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {03} spatial extent (%) by class + - name: pnv_pc_u04 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {04} spatial extent (%) by class + - name: pnv_pc_u05 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {05} spatial extent (%) by class + - name: pnv_pc_u06 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {06} spatial extent (%) by class + - name: pnv_pc_u07 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {07} spatial extent (%) by class + - name: pnv_pc_u08 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {08} spatial extent (%) by class + - name: pnv_pc_u09 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {09} spatial extent (%) by class + - name: pnv_pc_u10 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {10} spatial extent (%) by class + - name: pnv_pc_u11 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {11} spatial extent (%) by class + - name: pnv_pc_u12 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {12} spatial extent (%) by class + - name: pnv_pc_u13 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {13} spatial extent (%) by class + - name: pnv_pc_u14 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {14} spatial extent (%) by class + - name: pnv_pc_u15 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {15} spatial extent (%) by class + - name: wet_cl_smj + description: Wetland Classes {s} in sub-basin {mj} spatial majority + - name: wet_pc_sg1 + description: vazio + - name: wet_pc_ug1 + description: vazio + - name: wet_pc_sg2 + description: vazio + - name: wet_pc_ug2 + description: vazio + - name: wet_pc_s01 + description: Wetland Extent {s} in sub-basin {01} spatial extent (%) by class + - name: wet_pc_s02 + description: Wetland Extent {s} in sub-basin {02} spatial extent (%) by class + - name: wet_pc_s03 + description: Wetland Extent {s} in sub-basin {03} spatial extent (%) by class + - name: wet_pc_s04 + description: Wetland Extent {s} in sub-basin {04} spatial extent (%) by class + - name: wet_pc_s05 + description: Wetland Extent {s} in sub-basin {05} spatial extent (%) by class + - name: wet_pc_s06 + description: Wetland Extent {s} in sub-basin {06} spatial extent (%) by class + - name: wet_pc_s07 + description: Wetland Extent {s} in sub-basin {07} spatial extent (%) by class + - name: wet_pc_s08 + description: Wetland Extent {s} in sub-basin {08} spatial extent (%) by class + - name: wet_pc_s09 + description: Wetland Extent {s} in sub-basin {09} spatial extent (%) by class + - name: wet_pc_u01 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {01} spatial extent (%) by class + - name: wet_pc_u02 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {02} spatial extent (%) by class + - name: wet_pc_u03 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {03} spatial extent (%) by class + - name: wet_pc_u04 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {04} spatial extent (%) by class + - name: wet_pc_u05 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {05} spatial extent (%) by class + - name: wet_pc_u06 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {06} spatial extent (%) by class + - name: wet_pc_u07 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {07} spatial extent (%) by class + - name: wet_pc_u08 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {08} spatial extent (%) by class + - name: wet_pc_u09 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {09} spatial extent (%) by class + - name: for_pc_sse + description: Forest Cover Extent {s} in sub-basin {se} spatial extent (%) + - name: for_pc_use + description: Forest Cover Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: crp_pc_sse + description: Cropland Extent {s} in sub-basin {se} spatial extent (%) + - name: crp_pc_use + description: Cropland Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: pst_pc_sse + description: Pasture Extent {s} in sub-basin {se} spatial extent (%) + - name: pst_pc_use + description: Pasture Extent {u} in total watershed upstream of sub-basin pour + point {se} spatial extent (%) + - name: ire_pc_sse + description: Irrigated Area Extent (Equipped) {s} in sub-basin {se} spatial + extent (%) + - name: ire_pc_use + description: Irrigated Area Extent (Equipped) {u} in total watershed upstream + of sub-basin pour point {se} spatial extent (%) + - name: gla_pc_sse + description: Glacier Extent {s} in sub-basin {se} spatial extent (%) + - name: gla_pc_use + description: Glacier Extent {u} in total watershed upstream of sub-basin pour + point {se} spatial extent (%) + - name: prm_pc_sse + description: Permafrost Extent {s} in sub-basin {se} spatial extent (%) + - name: prm_pc_use + description: Permafrost Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: pac_pc_sse + description: Protected Area Extent {s} in sub-basin {se} spatial extent (%) + - name: pac_pc_use + description: Protected Area Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: tbi_cl_smj + description: Terrestrial Biomes {s} in sub-basin {mj} spatial majority + - name: tec_cl_smj + description: Terrestrial Ecoregions {s} in sub-basin {mj} spatial majority + - name: fmh_cl_smj + description: Freshwater Major Habitat Types {s} in sub-basin {mj} spatial + majority + - name: fec_cl_smj + description: Freshwater Ecoregions {s} in sub-basin {mj} spatial majority + - name: cly_pc_sav + description: Clay Fraction in Soil {s} in sub-basin {av} average + - name: cly_pc_uav + description: Clay Fraction in Soil {u} in total watershed upstream of sub-basin + pour point {av} average + - name: slt_pc_sav + description: Silt Fraction in Soil {s} in sub-basin {av} average + - name: slt_pc_uav + description: Silt Fraction in Soil {u} in total watershed upstream of sub-basin + pour point {av} average + - name: snd_pc_sav + description: Sand Fraction in Soil {s} in sub-basin {av} average + - name: snd_pc_uav + description: Sand Fraction in Soil {u} in total watershed upstream of sub-basin + pour point {av} average + - name: soc_th_sav + description: Organic Carbon Content in Soil {s} in sub-basin {av} average + - name: soc_th_uav + description: Organic Carbon Content in Soil {u} in total watershed upstream + of sub-basin pour point {av} average + - name: swc_pc_syr + description: Soil Water Content {s} in sub-basin {yr} annual average + - name: swc_pc_uyr + description: Soil Water Content {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: swc_pc_s01 + description: Soil Water Content {s} in sub-basin {01} monthly average + - name: swc_pc_s02 + description: Soil Water Content {s} in sub-basin {02} monthly average + - name: swc_pc_s03 + description: Soil Water Content {s} in sub-basin {03} monthly average + - name: swc_pc_s04 + description: Soil Water Content {s} in sub-basin {04} monthly average + - name: swc_pc_s05 + description: Soil Water Content {s} in sub-basin {05} monthly average + - name: swc_pc_s06 + description: Soil Water Content {s} in sub-basin {06} monthly average + - name: swc_pc_s07 + description: Soil Water Content {s} in sub-basin {07} monthly average + - name: swc_pc_s08 + description: Soil Water Content {s} in sub-basin {08} monthly average + - name: swc_pc_s09 + description: Soil Water Content {s} in sub-basin {09} monthly average + - name: swc_pc_s10 + description: Soil Water Content {s} in sub-basin {10} monthly average + - name: swc_pc_s11 + description: Soil Water Content {s} in sub-basin {11} monthly average + - name: swc_pc_s12 + description: Soil Water Content {s} in sub-basin {12} monthly average + - name: lit_cl_smj + description: Lithological Classes {s} in sub-basin {mj} spatial majority + - name: kar_pc_sse + description: Karst Area Extent {s} in sub-basin {se} spatial extent (%) + - name: kar_pc_use + description: Karst Area Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: ero_kh_sav + description: Soil Erosion {s} in sub-basin {av} average + - name: ero_kh_uav + description: Soil Erosion {u} in total watershed upstream of sub-basin pour + point {av} average + - name: pop_ct_ssu + description: Population Count {s} in sub-basin {su} sum + - name: pop_ct_usu + description: Population Count {u} in total watershed upstream of sub-basin + pour point {su} sum + - name: ppd_pk_sav + description: Population Density {s} in sub-basin {av} average + - name: ppd_pk_uav + description: Population Density {u} in total watershed upstream of sub-basin + pour point {av} average + - name: urb_pc_sse + description: vazio + - name: urb_pc_use + description: Urban Extent {u} in total watershed upstream of reach pour point + {se} spatial extent (%) + - name: nli_ix_sav + description: Nighttime Lights {s} in sub-basin {av} average + - name: nli_ix_uav + description: Nighttime Lights {u} in total watershed upstream of sub-basin + pour point {av} average + - name: rdd_mk_sav + description: Road Density {s} in sub-basin {av} average + - name: rdd_mk_uav + description: Road Density {u} in total watershed upstream of sub-basin pour + point {av} average + - name: hft_ix_s93 + description: Human Footprint {s} in sub-basin {93} year 1993 + - name: hft_ix_u93 + description: Human Footprint {u} in total watershed upstream of sub-basin + pour point {93} year 1993 + - name: hft_ix_s09 + description: Human Footprint {s} in sub-basin {09} year 2009 + - name: hft_ix_u09 + description: Human Footprint {u} in total watershed upstream of sub-basin + pour point {09} year 2009 + - name: gad_id_smj + description: Global Administrative Areas {s} in sub-basin {mj} spatial majority + - name: gdp_ud_sav + description: Gross Domestic Product {s} in sub-basin {av} average + - name: gdp_ud_ssu + description: Gross Domestic Product {s} in sub-basin {su} sum + - name: gdp_ud_usu + description: vazio + - name: hdi_ix_sav + description: Human Development Index {s} in sub-basin {av} average + - name: geometry + description: "The polygon data sets of HydroBASINS are distributed in ESRI\ + \ ‘shapefile’ format (ESRI 1998).\nEach HydroBASINS shapefile consists\ + \ of five main files (.dbf, .sbn, .sbx, .shp, .shx).\nAdditionally, basic\ + \ metadata information is provided in XML format (.xml). Projection\n\ + information is provided in an ASCII text file (.prj). All shapefiles are\ + \ in geographic\n(latitude/longitude) projection, referenced to datum\ + \ WGS84" + - name: world_wwf_hydrosheds__lakes_atlas + description: HydroLAKES aims to provide the shoreline polygons of all global lakes with a surface area of at least 10 ha + columns: + - name: hylak_id + description: Unique lake identifier + - name: lake_name + description: Name of lake or reservoir + - name: country + description: Country that the lake (or reservoir) is located in + - name: continent + description: Continent that the lake (or reservoir) is located in + - name: poly_src + description: Source of original lake polygon + - name: lake_type + description: Indicator for lake type + - name: grand_id + description: ID of the corresponding reservoir in the GRanD database + - name: lake_area + description: Lake surface area (i.e. polygon area) + - name: shore_len + description: Length of shoreline (i.e. polygon outline) + - name: shore_dev + description: Shoreline development, measured as the ratio between shoreline + length and the circumference of a circle with the same area + - name: vol_total + description: Total lake or reservoir volume, in million cubic meters (1 mcm + = 0.001 km 3). + - name: vol_res + description: Reported reservoir volume, or storage volume of added lake regulation, + in million cubic meters (1 mcm = 0.001 km3) + - name: vol_src + description: Total volume source + - name: depth_avg + description: Average lake depth, in meters + - name: dis_avg + description: Average long-term discharge flowing through the lake, in cubic + meters per second + - name: res_time + description: Average residence time of the lake water, in days + - name: elevation + description: Elevation of lake surface, in meters above sea level + - name: slope_100 + description: Average slope within a 100 meter buffer around the lake polygon, + in degrees + - name: wshd_area + description: Area of the watershed associated with the lake, in square kilometers + - name: pour_long + description: Longitude of the lake pour point, in decimal degrees + - name: pour_lat + description: Latitude of the lake pour point, in decimal degrees + - name: hybas_l12 + description: HYBAS_ID of the corresponding HydroBASINS sub-basin in which + the river reach resides. This ID refers to HydroBASINS at Pfafstetter + level 12 (without lakes) + - name: hyriv_rch + description: HYRIV_ID of the corresponding HydroRIVERS stream reach into which + the lake drains at its pour point location + - name: hyriv_cat + description: HYRIV_ID of the corresponding HydroRIVERS reach catchment (i.e., + the catchment that directly drains into the stream reach) in which the + lake’s pour point resides + - name: dis_m3_pyr + description: Natural Discharge {p} at lake pour point {yr} annual average + - name: dis_m3_pmn + description: Natural Discharge {p} at lake pour point {mn} annual minimum + - name: dis_m3_pmx + description: Natural Discharge {p} at lake pour point {mx} annual maximum + - name: run_mm_vyr + description: Land Surface Runoff {v} within 3 km vicinity of lake {yr} annual + average + - name: inu_pc_vmn + description: Inundation Extent {v} within 3 km vicinity of lake {mn} annual + minimum + - name: inu_pc_umn + description: Inundation Extent {u} in total watershed upstream of lake pour + point {mn} annual minimum + - name: inu_pc_vmx + description: Inundation Extent {v} within 3 km vicinity of lake {mx} annual + maximum + - name: inu_pc_umx + description: Inundation Extent {u} in total watershed upstream of lake pour + point {mx} annual maximum + - name: inu_pc_vlt + description: Inundation Extent {v} within 3 km vicinity of lake {lt} long-term + maximum + - name: inu_pc_ult + description: Inundation Extent {u} in total watershed upstream of lake pour + point {lt} long-term maximum + - name: lka_pc_vse + description: Limnicity (Percent Lake Area) {v} within 3 km vicinity of lake + {se} spatial extent (%) + - name: lka_pc_use + description: Limnicity (Percent Lake Area) {u} in total watershed upstream + of lake pour point {se} spatial extent (%) + - name: lkv_mc_usu + description: Lake Volume {u} in total watershed upstream of lake pour point + {su} sum + - name: rev_mc_usu + description: Reservoir Volume {u} in total watershed upstream of lake pour + point {su} sum + - name: dor_pc_pva + description: Degree of Regulation {p} at lake pour point {va} value + - name: ria_ha_vsu + description: River Area {v} within 3 km vicinity of lake {su} sum + - name: ria_ha_usu + description: River Area {u} in total watershed upstream of lake pour point + {su} sum + - name: riv_tc_vsu + description: River Volume {v} within 3 km vicinity of lake {su} sum + - name: riv_tc_usu + description: River Volume {u} in total watershed upstream of lake pour point + {su} sum + - name: gwt_cm_vav + description: Groundwater Table Depth {v} within 3 km vicinity of lake {av} + average + - name: ele_mt_lav + description: Elevation {l} in lake {av} average + - name: ele_mt_uav + description: Elevation {u} in total watershed upstream of lake pour point + {av} average + - name: ele_mt_lmn + description: Elevation {l} in lake {mn} minimum + - name: ele_mt_vmx + description: Elevation {v} within 3 km vicinity of lake {mx} maximum + - name: slp_dg_vav + description: Terrain Slope {v} within 3 km vicinity of lake {av} average + - name: slp_dg_uav + description: Terrain Slope {u} in total watershed upstream of lake pour point + {av} average + - name: sgr_dk_vav + description: Stream Gradient {v} within 3 km vicinity of lake {av} average + - name: clz_cl_lmj + description: Climate Zones {l} inside lake polygon {mj} spatial majority + - name: cls_cl_lmj + description: Climate Strata {l} inside lake polygon {mj} spatial majority + - name: tmp_dc_lyr + description: Air Temperature {l} inside lake polygon {yr} annual average + - name: tmp_dc_uyr + description: Air Temperature {u} in total watershed upstream of lake pour + point {yr} annual average + - name: tmp_dc_lmn + description: Air Temperature {l} inside lake polygon {mn} annual minimum + - name: tmp_dc_lmx + description: Air Temperature {l} inside lake polygon {mx} annual maximum + - name: tmp_dc_l01 + description: Air Temperature {l} inside lake polygon {01} monthly average + - name: tmp_dc_l02 + description: Air Temperature {l} inside lake polygon {02} monthly average + - name: tmp_dc_l03 + description: Air Temperature {l} inside lake polygon {03} monthly average + - name: tmp_dc_l04 + description: Air Temperature {l} inside lake polygon {04} monthly average + - name: tmp_dc_l05 + description: Air Temperature {l} inside lake polygon {05} monthly average + - name: tmp_dc_l06 + description: Air Temperature {l} inside lake polygon {06} monthly average + - name: tmp_dc_l07 + description: Air Temperature {l} inside lake polygon {07} monthly average + - name: tmp_dc_l08 + description: Air Temperature {l} inside lake polygon {08} monthly average + - name: tmp_dc_l09 + description: Air Temperature {l} inside lake polygon {09} monthly average + - name: tmp_dc_l10 + description: Air Temperature {l} inside lake polygon {10} monthly average + - name: tmp_dc_l11 + description: Air Temperature {l} inside lake polygon {11} monthly average + - name: tmp_dc_l12 + description: Air Temperature {l} inside lake polygon {12} monthly average + - name: pre_mm_lyr + description: Precipitation {l} inside lake polygon {yr} annual average + - name: pre_mm_uyr + description: Precipitation {u} in total watershed upstream of lake pour point + {yr} annual average + - name: pre_mm_l01 + description: Precipitation {l} inside lake polygon {01} monthly average + - name: pre_mm_l02 + description: Precipitation {l} inside lake polygon {02} monthly average + - name: pre_mm_l03 + description: Precipitation {l} inside lake polygon {03} monthly average + - name: pre_mm_l04 + description: Precipitation {l} inside lake polygon {04} monthly average + - name: pre_mm_l05 + description: Precipitation {l} inside lake polygon {05} monthly average + - name: pre_mm_l06 + description: Precipitation {l} inside lake polygon {06} monthly average + - name: pre_mm_l07 + description: Precipitation {l} inside lake polygon {07} monthly average + - name: pre_mm_l08 + description: Precipitation {l} inside lake polygon {08} monthly average + - name: pre_mm_l09 + description: Precipitation {l} inside lake polygon {09} monthly average + - name: pre_mm_l10 + description: Precipitation {l} inside lake polygon {10} monthly average + - name: pre_mm_l11 + description: Precipitation {l} inside lake polygon {11} monthly average + - name: pre_mm_l12 + description: Precipitation {l} inside lake polygon {12} monthly average + - name: pet_mm_lyr + description: Potential Evapotranspiration {l} inside lake polygon {yr} annual + average + - name: pet_mm_uyr + description: Potential Evapotranspiration {u} in total watershed upstream + of lake pour point {yr} annual average + - name: pet_mm_l01 + description: Potential Evapotranspiration {l} inside lake polygon {01} monthly + average + - name: pet_mm_l02 + description: Potential Evapotranspiration {l} inside lake polygon {02} monthly + average + - name: pet_mm_l03 + description: Potential Evapotranspiration {l} inside lake polygon {03} monthly + average + - name: pet_mm_l04 + description: Potential Evapotranspiration {l} inside lake polygon {04} monthly + average + - name: pet_mm_l05 + description: Potential Evapotranspiration {l} inside lake polygon {05} monthly + average + - name: pet_mm_l06 + description: Potential Evapotranspiration {l} inside lake polygon {06} monthly + average + - name: pet_mm_l07 + description: Potential Evapotranspiration {l} inside lake polygon {07} monthly + average + - name: pet_mm_l08 + description: Potential Evapotranspiration {l} inside lake polygon {08} monthly + average + - name: pet_mm_l09 + description: Potential Evapotranspiration {l} inside lake polygon {09} monthly + average + - name: pet_mm_l10 + description: Potential Evapotranspiration {l} inside lake polygon {10} monthly + average + - name: pet_mm_l11 + description: Potential Evapotranspiration {l} inside lake polygon {11} monthly + average + - name: pet_mm_l12 + description: Potential Evapotranspiration {l} inside lake polygon {12} monthly + average + - name: aet_mm_vyr + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {yr} + annual average + - name: aet_mm_uyr + description: Actual Evapotranspiration {u} in total watershed upstream of + lake pour point {yr} annual average + - name: aet_mm_v01 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {01} + monthly average + - name: aet_mm_v02 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {02} + monthly average + - name: aet_mm_v03 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {03} + monthly average + - name: aet_mm_v04 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {04} + monthly average + - name: aet_mm_v05 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {05} + monthly average + - name: aet_mm_v06 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {06} + monthly average + - name: aet_mm_v07 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {07} + monthly average + - name: aet_mm_v08 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {08} + monthly average + - name: aet_mm_v09 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {09} + monthly average + - name: aet_mm_v10 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {10} + monthly average + - name: aet_mm_v11 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {11} + monthly average + - name: aet_mm_v12 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {12} + monthly average + - name: ari_ix_lav + description: Global Aridity Index {l} inside lake polygon {av} average + - name: ari_ix_uav + description: Global Aridity Index {u} in total watershed upstream of lake + pour point {av} average + - name: cmi_ix_lyr + description: Climate Moisture Index {l} inside lake polygon {yr} annual average + - name: cmi_ix_uyr + description: Climate Moisture Index {u} in total watershed upstream of lake + pour point {yr} annual average + - name: cmi_ix_l01 + description: Climate Moisture Index {l} inside lake polygon {01} monthly average + - name: cmi_ix_l02 + description: Climate Moisture Index {l} inside lake polygon {02} monthly average + - name: cmi_ix_l03 + description: Climate Moisture Index {l} inside lake polygon {03} monthly average + - name: cmi_ix_l04 + description: Climate Moisture Index {l} inside lake polygon {04} monthly average + - name: cmi_ix_l05 + description: Climate Moisture Index {l} inside lake polygon {05} monthly average + - name: cmi_ix_l06 + description: Climate Moisture Index {l} inside lake polygon {06} monthly average + - name: cmi_ix_l07 + description: Climate Moisture Index {l} inside lake polygon {07} monthly average + - name: cmi_ix_l08 + description: Climate Moisture Index {l} inside lake polygon {08} monthly average + - name: cmi_ix_l09 + description: Climate Moisture Index {l} inside lake polygon {09} monthly average + - name: cmi_ix_l10 + description: Climate Moisture Index {l} inside lake polygon {10} monthly average + - name: cmi_ix_l11 + description: Climate Moisture Index {l} inside lake polygon {11} monthly average + - name: cmi_ix_l12 + description: Climate Moisture Index {l} inside lake polygon {12} monthly average + - name: snw_pc_vyr + description: Snow Cover Extent {v} within 3 km vicinity of lake {yr} annual + average + - name: snw_pc_uyr + description: Snow Cover Extent {u} in total watershed upstream of lake pour + point {yr} annual average + - name: snw_pc_vmx + description: Snow Cover Extent {v} within 3 km vicinity of lake {mx} annual + maximum + - name: snw_pc_v01 + description: Snow Cover Extent {v} within 3 km vicinity of lake {01} monthly + average + - name: snw_pc_v02 + description: Snow Cover Extent {v} within 3 km vicinity of lake {02} monthly + average + - name: snw_pc_v03 + description: Snow Cover Extent {v} within 3 km vicinity of lake {03} monthly + average + - name: snw_pc_v04 + description: Snow Cover Extent {v} within 3 km vicinity of lake {04} monthly + average + - name: snw_pc_v05 + description: Snow Cover Extent {v} within 3 km vicinity of lake {05} monthly + average + - name: snw_pc_v06 + description: Snow Cover Extent {v} within 3 km vicinity of lake {06} monthly + average + - name: snw_pc_v07 + description: Snow Cover Extent {v} within 3 km vicinity of lake {07} monthly + average + - name: snw_pc_v08 + description: Snow Cover Extent {v} within 3 km vicinity of lake {08} monthly + average + - name: snw_pc_v09 + description: Snow Cover Extent {v} within 3 km vicinity of lake {09} monthly + average + - name: snw_pc_v10 + description: Snow Cover Extent {v} within 3 km vicinity of lake {10} monthly + average + - name: snw_pc_v11 + description: Snow Cover Extent {v} within 3 km vicinity of lake {11} monthly + average + - name: snw_pc_v12 + description: Snow Cover Extent {v} within 3 km vicinity of lake {12} monthly + average + - name: glc_cl_vmj + description: Land Cover Classes {v} within 3 km vicinity of lake {mj} spatial + majority + - name: glc_pc_v01 + description: Land Cover Extent {v} within 3 km vicinity of lake {01} spatial + extent (%) by class + - name: glc_pc_v02 + description: Land Cover Extent {v} within 3 km vicinity of lake {02} spatial + extent (%) by class + - name: glc_pc_v03 + description: Land Cover Extent {v} within 3 km vicinity of lake {03} spatial + extent (%) by class + - name: glc_pc_v04 + description: Land Cover Extent {v} within 3 km vicinity of lake {04} spatial + extent (%) by class + - name: glc_pc_v05 + description: Land Cover Extent {v} within 3 km vicinity of lake {05} spatial + extent (%) by class + - name: glc_pc_v06 + description: Land Cover Extent {v} within 3 km vicinity of lake {06} spatial + extent (%) by class + - name: glc_pc_v07 + description: Land Cover Extent {v} within 3 km vicinity of lake {07} spatial + extent (%) by class + - name: glc_pc_v08 + description: Land Cover Extent {v} within 3 km vicinity of lake {08} spatial + extent (%) by class + - name: glc_pc_v09 + description: Land Cover Extent {v} within 3 km vicinity of lake {09} spatial + extent (%) by class + - name: glc_pc_v10 + description: Land Cover Extent {v} within 3 km vicinity of lake {10} spatial + extent (%) by class + - name: glc_pc_v11 + description: Land Cover Extent {v} within 3 km vicinity of lake {11} spatial + extent (%) by class + - name: glc_pc_v12 + description: Land Cover Extent {v} within 3 km vicinity of lake {12} spatial + extent (%) by class + - name: glc_pc_v13 + description: Land Cover Extent {v} within 3 km vicinity of lake {13} spatial + extent (%) by class + - name: glc_pc_v14 + description: Land Cover Extent {v} within 3 km vicinity of lake {14} spatial + extent (%) by class + - name: glc_pc_v15 + description: Land Cover Extent {v} within 3 km vicinity of lake {15} spatial + extent (%) by class + - name: glc_pc_v16 + description: Land Cover Extent {v} within 3 km vicinity of lake {16} spatial + extent (%) by class + - name: glc_pc_v17 + description: Land Cover Extent {v} within 3 km vicinity of lake {17} spatial + extent (%) by class + - name: glc_pc_v18 + description: Land Cover Extent {v} within 3 km vicinity of lake {18} spatial + extent (%) by class + - name: glc_pc_v19 + description: Land Cover Extent {v} within 3 km vicinity of lake {19} spatial + extent (%) by class + - name: glc_pc_v20 + description: Land Cover Extent {v} within 3 km vicinity of lake {20} spatial + extent (%) by class + - name: glc_pc_v21 + description: Land Cover Extent {v} within 3 km vicinity of lake {21} spatial + extent (%) by class + - name: glc_pc_v22 + description: Land Cover Extent {v} within 3 km vicinity of lake {22} spatial + extent (%) by class + - name: glc_pc_u01 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {01} spatial extent (%) by class + - name: glc_pc_u02 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {02} spatial extent (%) by class + - name: glc_pc_u03 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {03} spatial extent (%) by class + - name: glc_pc_u04 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {04} spatial extent (%) by class + - name: glc_pc_u05 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {05} spatial extent (%) by class + - name: glc_pc_u06 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {06} spatial extent (%) by class + - name: glc_pc_u07 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {07} spatial extent (%) by class + - name: glc_pc_u08 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {08} spatial extent (%) by class + - name: glc_pc_u09 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {09} spatial extent (%) by class + - name: glc_pc_u10 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {10} spatial extent (%) by class + - name: glc_pc_u11 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {11} spatial extent (%) by class + - name: glc_pc_u12 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {12} spatial extent (%) by class + - name: glc_pc_u13 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {13} spatial extent (%) by class + - name: glc_pc_u14 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {14} spatial extent (%) by class + - name: glc_pc_u15 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {15} spatial extent (%) by class + - name: glc_pc_u16 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {16} spatial extent (%) by class + - name: glc_pc_u17 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {17} spatial extent (%) by class + - name: glc_pc_u18 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {18} spatial extent (%) by class + - name: glc_pc_u19 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {19} spatial extent (%) by class + - name: glc_pc_u20 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {20} spatial extent (%) by class + - name: glc_pc_u21 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {21} spatial extent (%) by class + - name: glc_pc_u22 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {22} spatial extent (%) by class + - name: pnv_cl_vmj + description: Potential Natural Vegetation Classes {v} within 3 km vicinity + of lake {mj} spatial majority + - name: pnv_pc_v01 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {01} spatial extent (%) by class + - name: pnv_pc_v02 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {02} spatial extent (%) by class + - name: pnv_pc_v03 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {03} spatial extent (%) by class + - name: pnv_pc_v04 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {04} spatial extent (%) by class + - name: pnv_pc_v05 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {05} spatial extent (%) by class + - name: pnv_pc_v06 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {06} spatial extent (%) by class + - name: pnv_pc_v07 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {07} spatial extent (%) by class + - name: pnv_pc_v08 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {08} spatial extent (%) by class + - name: pnv_pc_v09 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {09} spatial extent (%) by class + - name: pnv_pc_v10 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {10} spatial extent (%) by class + - name: pnv_pc_v11 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {11} spatial extent (%) by class + - name: pnv_pc_v12 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {12} spatial extent (%) by class + - name: pnv_pc_v13 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {13} spatial extent (%) by class + - name: pnv_pc_v14 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {14} spatial extent (%) by class + - name: pnv_pc_v15 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {15} spatial extent (%) by class + - name: pnv_pc_u01 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {01} spatial extent (%) by class + - name: pnv_pc_u02 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {02} spatial extent (%) by class + - name: pnv_pc_u03 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {03} spatial extent (%) by class + - name: pnv_pc_u04 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {04} spatial extent (%) by class + - name: pnv_pc_u05 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {05} spatial extent (%) by class + - name: pnv_pc_u06 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {06} spatial extent (%) by class + - name: pnv_pc_u07 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {07} spatial extent (%) by class + - name: pnv_pc_u08 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {08} spatial extent (%) by class + - name: pnv_pc_u09 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {09} spatial extent (%) by class + - name: pnv_pc_u10 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {10} spatial extent (%) by class + - name: pnv_pc_u11 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {11} spatial extent (%) by class + - name: pnv_pc_u12 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {12} spatial extent (%) by class + - name: pnv_pc_u13 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {13} spatial extent (%) by class + - name: pnv_pc_u14 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {14} spatial extent (%) by class + - name: pnv_pc_u15 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {15} spatial extent (%) by class + - name: wet_cl_vmj + description: Wetland Classes {v} within 3 km vicinity of lake {mj} spatial + majority + - name: wet_pc_vg1 + description: vazio + - name: wet_pc_ug1 + description: vazio + - name: wet_pc_vg2 + description: vazio + - name: wet_pc_ug2 + description: vazio + - name: wet_pc_v01 + description: Wetland Extent {v} within 3 km vicinity of lake {01} spatial + extent (%) by class + - name: wet_pc_v02 + description: Wetland Extent {v} within 3 km vicinity of lake {02} spatial + extent (%) by class + - name: wet_pc_v03 + description: Wetland Extent {v} within 3 km vicinity of lake {03} spatial + extent (%) by class + - name: wet_pc_v04 + description: Wetland Extent {v} within 3 km vicinity of lake {04} spatial + extent (%) by class + - name: wet_pc_v05 + description: Wetland Extent {v} within 3 km vicinity of lake {05} spatial + extent (%) by class + - name: wet_pc_v06 + description: Wetland Extent {v} within 3 km vicinity of lake {06} spatial + extent (%) by class + - name: wet_pc_v07 + description: Wetland Extent {v} within 3 km vicinity of lake {07} spatial + extent (%) by class + - name: wet_pc_v08 + description: Wetland Extent {v} within 3 km vicinity of lake {08} spatial + extent (%) by class + - name: wet_pc_v09 + description: Wetland Extent {v} within 3 km vicinity of lake {09} spatial + extent (%) by class + - name: wet_pc_u01 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {01} spatial extent (%) by class + - name: wet_pc_u02 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {02} spatial extent (%) by class + - name: wet_pc_u03 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {03} spatial extent (%) by class + - name: wet_pc_u04 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {04} spatial extent (%) by class + - name: wet_pc_u05 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {05} spatial extent (%) by class + - name: wet_pc_u06 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {06} spatial extent (%) by class + - name: wet_pc_u07 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {07} spatial extent (%) by class + - name: wet_pc_u08 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {08} spatial extent (%) by class + - name: wet_pc_u09 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {09} spatial extent (%) by class + - name: for_pc_vse + description: Forest Cover Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: for_pc_use + description: Forest Cover Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: crp_pc_vse + description: Cropland Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: crp_pc_use + description: Cropland Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: pst_pc_vse + description: Pasture Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: pst_pc_use + description: Pasture Extent {u} in total watershed upstream of lake pour point + {se} spatial extent (%) + - name: ire_pc_vse + description: Irrigated Area Extent (Equipped) {v} within 3 km vicinity of + lake {se} spatial extent (%) + - name: ire_pc_use + description: Irrigated Area Extent (Equipped) {u} in total watershed upstream + of lake pour point {se} spatial extent (%) + - name: gla_pc_vse + description: Glacier Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: gla_pc_use + description: Glacier Extent {u} in total watershed upstream of lake pour point + {se} spatial extent (%) + - name: prm_pc_vse + description: Permafrost Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: prm_pc_use + description: Permafrost Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: pac_pc_lse + description: Protected Area Extent {l} inside lake polygon {se} spatial extent + (%) + - name: pac_pc_use + description: Protected Area Extent {u} in total watershed upstream of lake + pour point {se} spatial extent (%) + - name: tbi_cl_lmj + description: Terrestrial Biomes {l} inside lake polygon {mj} spatial majority + - name: tec_cl_lmj + description: Terrestrial Ecoregions {l} inside lake polygon {mj} spatial majority + - name: fmh_cl_lmj + description: Freshwater Major Habitat Types {l} inside lake polygon {mj} spatial + majority + - name: fec_cl_lmj + description: Freshwater Ecoregions {l} inside lake polygon {mj} spatial majority + - name: cly_pc_vav + description: Clay Fraction in Soil {v} within 3 km vicinity of lake {av} average + - name: cly_pc_uav + description: Clay Fraction in Soil {u} in total watershed upstream of lake + pour point {av} average + - name: slt_pc_vav + description: Silt Fraction in Soil {v} within 3 km vicinity of lake {av} average + - name: slt_pc_uav + description: Silt Fraction in Soil {u} in total watershed upstream of lake + pour point {av} average + - name: snd_pc_vav + description: Sand Fraction in Soil {v} within 3 km vicinity of lake {av} average + - name: snd_pc_uav + description: Sand Fraction in Soil {u} in total watershed upstream of lake + pour point {av} average + - name: soc_th_vav + description: Organic Carbon Content in Soil {v} within 3 km vicinity of lake + {av} average + - name: soc_th_uav + description: Organic Carbon Content in Soil {u} in total watershed upstream + of lake pour point {av} average + - name: swc_pc_vyr + description: Soil Water Content {v} within 3 km vicinity of lake {yr} annual + average + - name: swc_pc_uyr + description: Soil Water Content {u} in total watershed upstream of lake pour + point {yr} annual average + - name: swc_pc_v01 + description: Soil Water Content {v} within 3 km vicinity of lake {01} monthly + average + - name: swc_pc_v02 + description: Soil Water Content {v} within 3 km vicinity of lake {02} monthly + average + - name: swc_pc_v03 + description: Soil Water Content {v} within 3 km vicinity of lake {03} monthly + average + - name: swc_pc_v04 + description: Soil Water Content {v} within 3 km vicinity of lake {04} monthly + average + - name: swc_pc_v05 + description: Soil Water Content {v} within 3 km vicinity of lake {05} monthly + average + - name: swc_pc_v06 + description: Soil Water Content {v} within 3 km vicinity of lake {06} monthly + average + - name: swc_pc_v07 + description: Soil Water Content {v} within 3 km vicinity of lake {07} monthly + average + - name: swc_pc_v08 + description: Soil Water Content {v} within 3 km vicinity of lake {08} monthly + average + - name: swc_pc_v09 + description: Soil Water Content {v} within 3 km vicinity of lake {09} monthly + average + - name: swc_pc_v10 + description: Soil Water Content {v} within 3 km vicinity of lake {10} monthly + average + - name: swc_pc_v11 + description: Soil Water Content {v} within 3 km vicinity of lake {11} monthly + average + - name: swc_pc_v12 + description: Soil Water Content {v} within 3 km vicinity of lake {12} monthly + average + - name: lit_cl_vmj + description: Lithological Classes {v} within 3 km vicinity of lake {mj} spatial + majority + - name: kar_pc_vse + description: Karst Area Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: kar_pc_use + description: Karst Area Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: ero_kh_vav + description: Soil Erosion {v} within 3 km vicinity of lake {av} average + - name: ero_kh_uav + description: Soil Erosion {u} in total watershed upstream of lake pour point + {av} average + - name: pop_ct_vsu + description: Population Count {v} within 3 km vicinity of lake {su} sum + - name: pop_ct_usu + description: Population Count {u} in total watershed upstream of lake pour + point {su} sum + - name: ppd_pk_vav + description: Population Density {v} within 3 km vicinity of lake {av} average + - name: ppd_pk_uav + description: Population Density {u} in total watershed upstream of lake pour + point {av} average + - name: urb_pc_vse + description: Urban Extent {v} within 3 km vicinity of lake {se} spatial extent + (%) + - name: urb_pc_use + description: Urban Extent {u} in total watershed upstream of lake pour point + {se} spatial extent (%) + - name: nli_ix_vav + description: Nighttime Lights {v} within 3 km vicinity of lake {av} average + - name: nli_ix_uav + description: Nighttime Lights {u} in total watershed upstream of lake pour + point {av} average + - name: rdd_mk_vav + description: Road Density {v} within 3 km vicinity of lake {av} average + - name: rdd_mk_uav + description: Road Density {u} in total watershed upstream of lake pour point + {av} average + - name: hft_ix_v93 + description: Human Footprint {v} within 3 km vicinity of lake {93} year 1993 + - name: hft_ix_u93 + description: Human Footprint {u} in total watershed upstream of lake pour + point {93} year 1993 + - name: hft_ix_v09 + description: Human Footprint {v} within 3 km vicinity of lake {09} year 2009 + - name: hft_ix_u09 + description: Human Footprint {u} in total watershed upstream of lake pour + point {09} year 2009 + - name: gad_id_lmj + description: Global Administrative Areas {l} inside lake polygon {mj} spatial + majority + - name: gdp_ud_vav + description: Gross Domestic Product {v} within 3 km vicinity of lake {av} + average + - name: gdp_ud_vsu + description: Gross Domestic Product {v} within 3 km vicinity of lake {su} + sum + - name: gdp_ud_usu + description: Gross Domestic Product {u} in total watershed upstream of lake + pour point {su} sum + - name: hdi_ix_vav + description: Human Development Index {v} within 3 km vicinity of lake {av} + average + - name: geometry + description: "Data layers are provided in geographic (latitude/longitude)\ + \ projection, referenced to datum\nWGS84" \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql new file mode 100644 index 00000000..4d2de5ea --- /dev/null +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql @@ -0,0 +1,306 @@ +{{ + config( + alias='basins_atlas', + schema='world_wwf_hydrosheds', + materialized='table', + cluster_by='level' + ) + }} +SELECT +SAFE_CAST(level AS STRING) level, +SAFE_CAST(hybas_id AS STRING) hybas_id, +SAFE_CAST(next_down AS STRING) next_down, +SAFE_CAST(next_sink AS STRING) next_sink, +SAFE_CAST(main_bas AS STRING) main_bas, +SAFE_CAST(dist_sink AS FLOAT64) dist_sink, +SAFE_CAST(dist_main AS FLOAT64) dist_main, +SAFE_CAST(sub_area AS FLOAT64) sub_area, +SAFE_CAST(up_area AS FLOAT64) up_area, +SAFE_CAST(pfaf_id AS STRING) pfaf_id, +SAFE_CAST(endo AS INT64) endo, +SAFE_CAST(coast AS INT64) coast, +SAFE_CAST(order_ AS STRING) order_, +SAFE_CAST(sort AS INT64) sort, +SAFE_CAST(dis_m3_pyr AS FLOAT64) dis_m3_pyr, +SAFE_CAST(dis_m3_pmn AS FLOAT64) dis_m3_pmn, +SAFE_CAST(dis_m3_pmx AS FLOAT64) dis_m3_pmx, +SAFE_CAST(run_mm_syr AS INT64) run_mm_syr, +SAFE_CAST(inu_pc_smn AS INT64) inu_pc_smn, +SAFE_CAST(inu_pc_umn AS INT64) inu_pc_umn, +SAFE_CAST(inu_pc_smx AS INT64) inu_pc_smx, +SAFE_CAST(inu_pc_umx AS INT64) inu_pc_umx, +SAFE_CAST(inu_pc_slt AS INT64) inu_pc_slt, +SAFE_CAST(inu_pc_ult AS INT64) inu_pc_ult, +SAFE_CAST(lka_pc_sse AS INT64) lka_pc_sse, +SAFE_CAST(lka_pc_use AS INT64) lka_pc_use, +SAFE_CAST(lkv_mc_usu AS INT64) lkv_mc_usu, +SAFE_CAST(rev_mc_usu AS INT64) rev_mc_usu, +SAFE_CAST(dor_pc_pva AS INT64) dor_pc_pva, +SAFE_CAST(ria_ha_ssu AS FLOAT64) ria_ha_ssu, +SAFE_CAST(ria_ha_usu AS FLOAT64) ria_ha_usu, +SAFE_CAST(riv_tc_ssu AS FLOAT64) riv_tc_ssu, +SAFE_CAST(riv_tc_usu AS FLOAT64) riv_tc_usu, +SAFE_CAST(gwt_cm_sav AS INT64) gwt_cm_sav, +SAFE_CAST(ele_mt_sav AS INT64) ele_mt_sav, +SAFE_CAST(ele_mt_uav AS INT64) ele_mt_uav, +SAFE_CAST(ele_mt_smn AS INT64) ele_mt_smn, +SAFE_CAST(ele_mt_smx AS INT64) ele_mt_smx, +SAFE_CAST(slp_dg_sav AS INT64) slp_dg_sav, +SAFE_CAST(slp_dg_uav AS INT64) slp_dg_uav, +SAFE_CAST(sgr_dk_sav AS INT64) sgr_dk_sav, +SAFE_CAST(clz_cl_smj AS INT64) clz_cl_smj, +SAFE_CAST(cls_cl_smj AS INT64) cls_cl_smj, +SAFE_CAST(tmp_dc_syr AS INT64) tmp_dc_syr, +SAFE_CAST(tmp_dc_uyr AS INT64) tmp_dc_uyr, +SAFE_CAST(tmp_dc_smn AS INT64) tmp_dc_smn, +SAFE_CAST(tmp_dc_smx AS INT64) tmp_dc_smx, +SAFE_CAST(tmp_dc_s01 AS INT64) tmp_dc_s01, +SAFE_CAST(tmp_dc_s02 AS INT64) tmp_dc_s02, +SAFE_CAST(tmp_dc_s03 AS INT64) tmp_dc_s03, +SAFE_CAST(tmp_dc_s04 AS INT64) tmp_dc_s04, +SAFE_CAST(tmp_dc_s05 AS INT64) tmp_dc_s05, +SAFE_CAST(tmp_dc_s06 AS INT64) tmp_dc_s06, +SAFE_CAST(tmp_dc_s07 AS INT64) tmp_dc_s07, +SAFE_CAST(tmp_dc_s08 AS INT64) tmp_dc_s08, +SAFE_CAST(tmp_dc_s09 AS INT64) tmp_dc_s09, +SAFE_CAST(tmp_dc_s10 AS INT64) tmp_dc_s10, +SAFE_CAST(tmp_dc_s11 AS INT64) tmp_dc_s11, +SAFE_CAST(tmp_dc_s12 AS INT64) tmp_dc_s12, +SAFE_CAST(pre_mm_syr AS INT64) pre_mm_syr, +SAFE_CAST(pre_mm_uyr AS INT64) pre_mm_uyr, +SAFE_CAST(pre_mm_s01 AS INT64) pre_mm_s01, +SAFE_CAST(pre_mm_s02 AS INT64) pre_mm_s02, +SAFE_CAST(pre_mm_s03 AS INT64) pre_mm_s03, +SAFE_CAST(pre_mm_s04 AS INT64) pre_mm_s04, +SAFE_CAST(pre_mm_s05 AS INT64) pre_mm_s05, +SAFE_CAST(pre_mm_s06 AS INT64) pre_mm_s06, +SAFE_CAST(pre_mm_s07 AS INT64) pre_mm_s07, +SAFE_CAST(pre_mm_s08 AS INT64) pre_mm_s08, +SAFE_CAST(pre_mm_s09 AS INT64) pre_mm_s09, +SAFE_CAST(pre_mm_s10 AS INT64) pre_mm_s10, +SAFE_CAST(pre_mm_s11 AS INT64) pre_mm_s11, +SAFE_CAST(pre_mm_s12 AS INT64) pre_mm_s12, +SAFE_CAST(pet_mm_syr AS INT64) pet_mm_syr, +SAFE_CAST(pet_mm_uyr AS INT64) pet_mm_uyr, +SAFE_CAST(pet_mm_s01 AS INT64) pet_mm_s01, +SAFE_CAST(pet_mm_s02 AS INT64) pet_mm_s02, +SAFE_CAST(pet_mm_s03 AS INT64) pet_mm_s03, +SAFE_CAST(pet_mm_s04 AS INT64) pet_mm_s04, +SAFE_CAST(pet_mm_s05 AS INT64) pet_mm_s05, +SAFE_CAST(pet_mm_s06 AS INT64) pet_mm_s06, +SAFE_CAST(pet_mm_s07 AS INT64) pet_mm_s07, +SAFE_CAST(pet_mm_s08 AS INT64) pet_mm_s08, +SAFE_CAST(pet_mm_s09 AS INT64) pet_mm_s09, +SAFE_CAST(pet_mm_s10 AS INT64) pet_mm_s10, +SAFE_CAST(pet_mm_s11 AS INT64) pet_mm_s11, +SAFE_CAST(pet_mm_s12 AS INT64) pet_mm_s12, +SAFE_CAST(aet_mm_syr AS INT64) aet_mm_syr, +SAFE_CAST(aet_mm_uyr AS INT64) aet_mm_uyr, +SAFE_CAST(aet_mm_s01 AS INT64) aet_mm_s01, +SAFE_CAST(aet_mm_s02 AS INT64) aet_mm_s02, +SAFE_CAST(aet_mm_s03 AS INT64) aet_mm_s03, +SAFE_CAST(aet_mm_s04 AS INT64) aet_mm_s04, +SAFE_CAST(aet_mm_s05 AS INT64) aet_mm_s05, +SAFE_CAST(aet_mm_s06 AS INT64) aet_mm_s06, +SAFE_CAST(aet_mm_s07 AS INT64) aet_mm_s07, +SAFE_CAST(aet_mm_s08 AS INT64) aet_mm_s08, +SAFE_CAST(aet_mm_s09 AS INT64) aet_mm_s09, +SAFE_CAST(aet_mm_s10 AS INT64) aet_mm_s10, +SAFE_CAST(aet_mm_s11 AS INT64) aet_mm_s11, +SAFE_CAST(aet_mm_s12 AS INT64) aet_mm_s12, +SAFE_CAST(ari_ix_sav AS INT64) ari_ix_sav, +SAFE_CAST(ari_ix_uav AS INT64) ari_ix_uav, +SAFE_CAST(cmi_ix_syr AS INT64) cmi_ix_syr, +SAFE_CAST(cmi_ix_uyr AS INT64) cmi_ix_uyr, +SAFE_CAST(cmi_ix_s01 AS INT64) cmi_ix_s01, +SAFE_CAST(cmi_ix_s02 AS INT64) cmi_ix_s02, +SAFE_CAST(cmi_ix_s03 AS INT64) cmi_ix_s03, +SAFE_CAST(cmi_ix_s04 AS INT64) cmi_ix_s04, +SAFE_CAST(cmi_ix_s05 AS INT64) cmi_ix_s05, +SAFE_CAST(cmi_ix_s06 AS INT64) cmi_ix_s06, +SAFE_CAST(cmi_ix_s07 AS INT64) cmi_ix_s07, +SAFE_CAST(cmi_ix_s08 AS INT64) cmi_ix_s08, +SAFE_CAST(cmi_ix_s09 AS INT64) cmi_ix_s09, +SAFE_CAST(cmi_ix_s10 AS INT64) cmi_ix_s10, +SAFE_CAST(cmi_ix_s11 AS INT64) cmi_ix_s11, +SAFE_CAST(cmi_ix_s12 AS INT64) cmi_ix_s12, +SAFE_CAST(snw_pc_syr AS INT64) snw_pc_syr, +SAFE_CAST(snw_pc_uyr AS INT64) snw_pc_uyr, +SAFE_CAST(snw_pc_smx AS INT64) snw_pc_smx, +SAFE_CAST(snw_pc_s01 AS INT64) snw_pc_s01, +SAFE_CAST(snw_pc_s02 AS INT64) snw_pc_s02, +SAFE_CAST(snw_pc_s03 AS INT64) snw_pc_s03, +SAFE_CAST(snw_pc_s04 AS INT64) snw_pc_s04, +SAFE_CAST(snw_pc_s05 AS INT64) snw_pc_s05, +SAFE_CAST(snw_pc_s06 AS INT64) snw_pc_s06, +SAFE_CAST(snw_pc_s07 AS INT64) snw_pc_s07, +SAFE_CAST(snw_pc_s08 AS INT64) snw_pc_s08, +SAFE_CAST(snw_pc_s09 AS INT64) snw_pc_s09, +SAFE_CAST(snw_pc_s10 AS INT64) snw_pc_s10, +SAFE_CAST(snw_pc_s11 AS INT64) snw_pc_s11, +SAFE_CAST(snw_pc_s12 AS INT64) snw_pc_s12, +SAFE_CAST(glc_cl_smj AS INT64) glc_cl_smj, +SAFE_CAST(glc_pc_s01 AS INT64) glc_pc_s01, +SAFE_CAST(glc_pc_s02 AS INT64) glc_pc_s02, +SAFE_CAST(glc_pc_s03 AS INT64) glc_pc_s03, +SAFE_CAST(glc_pc_s04 AS INT64) glc_pc_s04, +SAFE_CAST(glc_pc_s05 AS INT64) glc_pc_s05, +SAFE_CAST(glc_pc_s06 AS INT64) glc_pc_s06, +SAFE_CAST(glc_pc_s07 AS INT64) glc_pc_s07, +SAFE_CAST(glc_pc_s08 AS INT64) glc_pc_s08, +SAFE_CAST(glc_pc_s09 AS INT64) glc_pc_s09, +SAFE_CAST(glc_pc_s10 AS INT64) glc_pc_s10, +SAFE_CAST(glc_pc_s11 AS INT64) glc_pc_s11, +SAFE_CAST(glc_pc_s12 AS INT64) glc_pc_s12, +SAFE_CAST(glc_pc_s13 AS INT64) glc_pc_s13, +SAFE_CAST(glc_pc_s14 AS INT64) glc_pc_s14, +SAFE_CAST(glc_pc_s15 AS INT64) glc_pc_s15, +SAFE_CAST(glc_pc_s16 AS INT64) glc_pc_s16, +SAFE_CAST(glc_pc_s17 AS INT64) glc_pc_s17, +SAFE_CAST(glc_pc_s18 AS INT64) glc_pc_s18, +SAFE_CAST(glc_pc_s19 AS INT64) glc_pc_s19, +SAFE_CAST(glc_pc_s20 AS INT64) glc_pc_s20, +SAFE_CAST(glc_pc_s21 AS INT64) glc_pc_s21, +SAFE_CAST(glc_pc_s22 AS INT64) glc_pc_s22, +SAFE_CAST(glc_pc_u01 AS INT64) glc_pc_u01, +SAFE_CAST(glc_pc_u02 AS INT64) glc_pc_u02, +SAFE_CAST(glc_pc_u03 AS INT64) glc_pc_u03, +SAFE_CAST(glc_pc_u04 AS INT64) glc_pc_u04, +SAFE_CAST(glc_pc_u05 AS INT64) glc_pc_u05, +SAFE_CAST(glc_pc_u06 AS INT64) glc_pc_u06, +SAFE_CAST(glc_pc_u07 AS INT64) glc_pc_u07, +SAFE_CAST(glc_pc_u08 AS INT64) glc_pc_u08, +SAFE_CAST(glc_pc_u09 AS INT64) glc_pc_u09, +SAFE_CAST(glc_pc_u10 AS INT64) glc_pc_u10, +SAFE_CAST(glc_pc_u11 AS INT64) glc_pc_u11, +SAFE_CAST(glc_pc_u12 AS INT64) glc_pc_u12, +SAFE_CAST(glc_pc_u13 AS INT64) glc_pc_u13, +SAFE_CAST(glc_pc_u14 AS INT64) glc_pc_u14, +SAFE_CAST(glc_pc_u15 AS INT64) glc_pc_u15, +SAFE_CAST(glc_pc_u16 AS INT64) glc_pc_u16, +SAFE_CAST(glc_pc_u17 AS INT64) glc_pc_u17, +SAFE_CAST(glc_pc_u18 AS INT64) glc_pc_u18, +SAFE_CAST(glc_pc_u19 AS INT64) glc_pc_u19, +SAFE_CAST(glc_pc_u20 AS INT64) glc_pc_u20, +SAFE_CAST(glc_pc_u21 AS INT64) glc_pc_u21, +SAFE_CAST(glc_pc_u22 AS INT64) glc_pc_u22, +SAFE_CAST(pnv_cl_smj AS INT64) pnv_cl_smj, +SAFE_CAST(pnv_pc_s01 AS INT64) pnv_pc_s01, +SAFE_CAST(pnv_pc_s02 AS INT64) pnv_pc_s02, +SAFE_CAST(pnv_pc_s03 AS INT64) pnv_pc_s03, +SAFE_CAST(pnv_pc_s04 AS INT64) pnv_pc_s04, +SAFE_CAST(pnv_pc_s05 AS INT64) pnv_pc_s05, +SAFE_CAST(pnv_pc_s06 AS INT64) pnv_pc_s06, +SAFE_CAST(pnv_pc_s07 AS INT64) pnv_pc_s07, +SAFE_CAST(pnv_pc_s08 AS INT64) pnv_pc_s08, +SAFE_CAST(pnv_pc_s09 AS INT64) pnv_pc_s09, +SAFE_CAST(pnv_pc_s10 AS INT64) pnv_pc_s10, +SAFE_CAST(pnv_pc_s11 AS INT64) pnv_pc_s11, +SAFE_CAST(pnv_pc_s12 AS INT64) pnv_pc_s12, +SAFE_CAST(pnv_pc_s13 AS INT64) pnv_pc_s13, +SAFE_CAST(pnv_pc_s14 AS INT64) pnv_pc_s14, +SAFE_CAST(pnv_pc_s15 AS INT64) pnv_pc_s15, +SAFE_CAST(pnv_pc_u01 AS INT64) pnv_pc_u01, +SAFE_CAST(pnv_pc_u02 AS INT64) pnv_pc_u02, +SAFE_CAST(pnv_pc_u03 AS INT64) pnv_pc_u03, +SAFE_CAST(pnv_pc_u04 AS INT64) pnv_pc_u04, +SAFE_CAST(pnv_pc_u05 AS INT64) pnv_pc_u05, +SAFE_CAST(pnv_pc_u06 AS INT64) pnv_pc_u06, +SAFE_CAST(pnv_pc_u07 AS INT64) pnv_pc_u07, +SAFE_CAST(pnv_pc_u08 AS INT64) pnv_pc_u08, +SAFE_CAST(pnv_pc_u09 AS INT64) pnv_pc_u09, +SAFE_CAST(pnv_pc_u10 AS INT64) pnv_pc_u10, +SAFE_CAST(pnv_pc_u11 AS INT64) pnv_pc_u11, +SAFE_CAST(pnv_pc_u12 AS INT64) pnv_pc_u12, +SAFE_CAST(pnv_pc_u13 AS INT64) pnv_pc_u13, +SAFE_CAST(pnv_pc_u14 AS INT64) pnv_pc_u14, +SAFE_CAST(pnv_pc_u15 AS INT64) pnv_pc_u15, +SAFE_CAST(wet_cl_smj AS INT64) wet_cl_smj, +SAFE_CAST(wet_pc_sg1 AS INT64) wet_pc_sg1, +SAFE_CAST(wet_pc_ug1 AS INT64) wet_pc_ug1, +SAFE_CAST(wet_pc_sg2 AS INT64) wet_pc_sg2, +SAFE_CAST(wet_pc_ug2 AS INT64) wet_pc_ug2, +SAFE_CAST(wet_pc_s01 AS INT64) wet_pc_s01, +SAFE_CAST(wet_pc_s02 AS INT64) wet_pc_s02, +SAFE_CAST(wet_pc_s03 AS INT64) wet_pc_s03, +SAFE_CAST(wet_pc_s04 AS INT64) wet_pc_s04, +SAFE_CAST(wet_pc_s05 AS INT64) wet_pc_s05, +SAFE_CAST(wet_pc_s06 AS INT64) wet_pc_s06, +SAFE_CAST(wet_pc_s07 AS INT64) wet_pc_s07, +SAFE_CAST(wet_pc_s08 AS INT64) wet_pc_s08, +SAFE_CAST(wet_pc_s09 AS INT64) wet_pc_s09, +SAFE_CAST(wet_pc_u01 AS INT64) wet_pc_u01, +SAFE_CAST(wet_pc_u02 AS INT64) wet_pc_u02, +SAFE_CAST(wet_pc_u03 AS INT64) wet_pc_u03, +SAFE_CAST(wet_pc_u04 AS INT64) wet_pc_u04, +SAFE_CAST(wet_pc_u05 AS INT64) wet_pc_u05, +SAFE_CAST(wet_pc_u06 AS INT64) wet_pc_u06, +SAFE_CAST(wet_pc_u07 AS INT64) wet_pc_u07, +SAFE_CAST(wet_pc_u08 AS INT64) wet_pc_u08, +SAFE_CAST(wet_pc_u09 AS INT64) wet_pc_u09, +SAFE_CAST(for_pc_sse AS INT64) for_pc_sse, +SAFE_CAST(for_pc_use AS INT64) for_pc_use, +SAFE_CAST(crp_pc_sse AS INT64) crp_pc_sse, +SAFE_CAST(crp_pc_use AS INT64) crp_pc_use, +SAFE_CAST(pst_pc_sse AS INT64) pst_pc_sse, +SAFE_CAST(pst_pc_use AS INT64) pst_pc_use, +SAFE_CAST(ire_pc_sse AS INT64) ire_pc_sse, +SAFE_CAST(ire_pc_use AS INT64) ire_pc_use, +SAFE_CAST(gla_pc_sse AS INT64) gla_pc_sse, +SAFE_CAST(gla_pc_use AS INT64) gla_pc_use, +SAFE_CAST(prm_pc_sse AS INT64) prm_pc_sse, +SAFE_CAST(prm_pc_use AS INT64) prm_pc_use, +SAFE_CAST(pac_pc_sse AS INT64) pac_pc_sse, +SAFE_CAST(pac_pc_use AS INT64) pac_pc_use, +SAFE_CAST(tbi_cl_smj AS INT64) tbi_cl_smj, +SAFE_CAST(tec_cl_smj AS INT64) tec_cl_smj, +SAFE_CAST(fmh_cl_smj AS INT64) fmh_cl_smj, +SAFE_CAST(fec_cl_smj AS INT64) fec_cl_smj, +SAFE_CAST(cly_pc_sav AS INT64) cly_pc_sav, +SAFE_CAST(cly_pc_uav AS INT64) cly_pc_uav, +SAFE_CAST(slt_pc_sav AS INT64) slt_pc_sav, +SAFE_CAST(slt_pc_uav AS INT64) slt_pc_uav, +SAFE_CAST(snd_pc_sav AS INT64) snd_pc_sav, +SAFE_CAST(snd_pc_uav AS INT64) snd_pc_uav, +SAFE_CAST(soc_th_sav AS INT64) soc_th_sav, +SAFE_CAST(soc_th_uav AS INT64) soc_th_uav, +SAFE_CAST(swc_pc_syr AS INT64) swc_pc_syr, +SAFE_CAST(swc_pc_uyr AS INT64) swc_pc_uyr, +SAFE_CAST(swc_pc_s01 AS INT64) swc_pc_s01, +SAFE_CAST(swc_pc_s02 AS INT64) swc_pc_s02, +SAFE_CAST(swc_pc_s03 AS INT64) swc_pc_s03, +SAFE_CAST(swc_pc_s04 AS INT64) swc_pc_s04, +SAFE_CAST(swc_pc_s05 AS INT64) swc_pc_s05, +SAFE_CAST(swc_pc_s06 AS INT64) swc_pc_s06, +SAFE_CAST(swc_pc_s07 AS INT64) swc_pc_s07, +SAFE_CAST(swc_pc_s08 AS INT64) swc_pc_s08, +SAFE_CAST(swc_pc_s09 AS INT64) swc_pc_s09, +SAFE_CAST(swc_pc_s10 AS INT64) swc_pc_s10, +SAFE_CAST(swc_pc_s11 AS INT64) swc_pc_s11, +SAFE_CAST(swc_pc_s12 AS INT64) swc_pc_s12, +SAFE_CAST(lit_cl_smj AS INT64) lit_cl_smj, +SAFE_CAST(kar_pc_sse AS INT64) kar_pc_sse, +SAFE_CAST(kar_pc_use AS INT64) kar_pc_use, +SAFE_CAST(ero_kh_sav AS INT64) ero_kh_sav, +SAFE_CAST(ero_kh_uav AS INT64) ero_kh_uav, +SAFE_CAST(pop_ct_ssu AS FLOAT64) pop_ct_ssu, +SAFE_CAST(pop_ct_usu AS FLOAT64) pop_ct_usu, +SAFE_CAST(ppd_pk_sav AS FLOAT64) ppd_pk_sav, +SAFE_CAST(ppd_pk_uav AS FLOAT64) ppd_pk_uav, +SAFE_CAST(urb_pc_sse AS INT64) urb_pc_sse, +SAFE_CAST(urb_pc_use AS INT64) urb_pc_use, +SAFE_CAST(nli_ix_sav AS INT64) nli_ix_sav, +SAFE_CAST(nli_ix_uav AS INT64) nli_ix_uav, +SAFE_CAST(rdd_mk_sav AS INT64) rdd_mk_sav, +SAFE_CAST(rdd_mk_uav AS INT64) rdd_mk_uav, +SAFE_CAST(hft_ix_s93 AS INT64) hft_ix_s93, +SAFE_CAST(hft_ix_u93 AS INT64) hft_ix_u93, +SAFE_CAST(hft_ix_s09 AS INT64) hft_ix_s09, +SAFE_CAST(hft_ix_u09 AS INT64) hft_ix_u09, +SAFE_CAST(gad_id_smj AS INT64) gad_id_smj, +SAFE_CAST(gdp_ud_sav AS INT64) gdp_ud_sav, +SAFE_CAST(gdp_ud_ssu AS INT64) gdp_ud_ssu, +SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, +SAFE_CAST(hdi_ix_sav AS INT64) hdi_ix_sav, +SAFE_CAST(geometry AS STRING) geometry +FROM basedosdados-staging.world_wwf_hydrosheds_staging.basins_atlas AS t \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql new file mode 100644 index 00000000..af21f99b --- /dev/null +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql @@ -0,0 +1,317 @@ +{{ + config( + alias='lakes_atlas', + schema='world_wwf_hydrosheds', + materialized='table', + cluster_by='region', + ) + }} +SELECT +SAFE_CAST(region AS STRING) region, +SAFE_CAST(hylak_id AS STRING) hylak_id, +SAFE_CAST(lake_name AS STRING) lake_name, +SAFE_CAST(country AS STRING) country, +SAFE_CAST(continent AS STRING) continent, +SAFE_CAST(poly_src AS STRING) poly_src, +SAFE_CAST(lake_type AS STRING) lake_type, +SAFE_CAST(grand_id AS STRING) grand_id, +SAFE_CAST(lake_area AS FLOAT64) lake_area, +SAFE_CAST(shore_len AS FLOAT64) shore_len, +SAFE_CAST(shore_dev AS FLOAT64) shore_dev, +SAFE_CAST(vol_total AS FLOAT64) vol_total, +SAFE_CAST(vol_res AS FLOAT64) vol_res, +SAFE_CAST(vol_src AS INT64) vol_src, +SAFE_CAST(depth_avg AS FLOAT64) depth_avg, +SAFE_CAST(dis_avg AS FLOAT64) dis_avg, +SAFE_CAST(res_time AS FLOAT64) res_time, +SAFE_CAST(elevation AS INT64) elevation, +SAFE_CAST(slope_100 AS FLOAT64) slope_100, +SAFE_CAST(wshd_area AS FLOAT64) wshd_area, +SAFE_CAST(pour_long AS FLOAT64) pour_long, +SAFE_CAST(pour_lat AS FLOAT64) pour_lat, +SAFE_CAST(hybas_l12 AS INT64) hybas_l12, +SAFE_CAST(hyriv_rch AS INT64) hyriv_rch, +SAFE_CAST(hyriv_cat AS INT64) hyriv_cat, +SAFE_CAST(dis_m3_pyr AS FLOAT64) dis_m3_pyr, +SAFE_CAST(dis_m3_pmn AS FLOAT64) dis_m3_pmn, +SAFE_CAST(dis_m3_pmx AS FLOAT64) dis_m3_pmx, +SAFE_CAST(run_mm_vyr AS INT64) run_mm_vyr, +SAFE_CAST(inu_pc_vmn AS INT64) inu_pc_vmn, +SAFE_CAST(inu_pc_umn AS INT64) inu_pc_umn, +SAFE_CAST(inu_pc_vmx AS INT64) inu_pc_vmx, +SAFE_CAST(inu_pc_umx AS INT64) inu_pc_umx, +SAFE_CAST(inu_pc_vlt AS INT64) inu_pc_vlt, +SAFE_CAST(inu_pc_ult AS INT64) inu_pc_ult, +SAFE_CAST(lka_pc_vse AS INT64) lka_pc_vse, +SAFE_CAST(lka_pc_use AS INT64) lka_pc_use, +SAFE_CAST(lkv_mc_usu AS INT64) lkv_mc_usu, +SAFE_CAST(rev_mc_usu AS INT64) rev_mc_usu, +SAFE_CAST(dor_pc_pva AS INT64) dor_pc_pva, +SAFE_CAST(ria_ha_vsu AS FLOAT64) ria_ha_vsu, +SAFE_CAST(ria_ha_usu AS FLOAT64) ria_ha_usu, +SAFE_CAST(riv_tc_vsu AS FLOAT64) riv_tc_vsu, +SAFE_CAST(riv_tc_usu AS FLOAT64) riv_tc_usu, +SAFE_CAST(gwt_cm_vav AS INT64) gwt_cm_vav, +SAFE_CAST(ele_mt_lav AS INT64) ele_mt_lav, +SAFE_CAST(ele_mt_uav AS INT64) ele_mt_uav, +SAFE_CAST(ele_mt_lmn AS INT64) ele_mt_lmn, +SAFE_CAST(ele_mt_vmx AS INT64) ele_mt_vmx, +SAFE_CAST(slp_dg_vav AS INT64) slp_dg_vav, +SAFE_CAST(slp_dg_uav AS INT64) slp_dg_uav, +SAFE_CAST(sgr_dk_vav AS INT64) sgr_dk_vav, +SAFE_CAST(clz_cl_lmj AS INT64) clz_cl_lmj, +SAFE_CAST(cls_cl_lmj AS INT64) cls_cl_lmj, +SAFE_CAST(tmp_dc_lyr AS INT64) tmp_dc_lyr, +SAFE_CAST(tmp_dc_uyr AS INT64) tmp_dc_uyr, +SAFE_CAST(tmp_dc_lmn AS INT64) tmp_dc_lmn, +SAFE_CAST(tmp_dc_lmx AS INT64) tmp_dc_lmx, +SAFE_CAST(tmp_dc_l01 AS INT64) tmp_dc_l01, +SAFE_CAST(tmp_dc_l02 AS INT64) tmp_dc_l02, +SAFE_CAST(tmp_dc_l03 AS INT64) tmp_dc_l03, +SAFE_CAST(tmp_dc_l04 AS INT64) tmp_dc_l04, +SAFE_CAST(tmp_dc_l05 AS INT64) tmp_dc_l05, +SAFE_CAST(tmp_dc_l06 AS INT64) tmp_dc_l06, +SAFE_CAST(tmp_dc_l07 AS INT64) tmp_dc_l07, +SAFE_CAST(tmp_dc_l08 AS INT64) tmp_dc_l08, +SAFE_CAST(tmp_dc_l09 AS INT64) tmp_dc_l09, +SAFE_CAST(tmp_dc_l10 AS INT64) tmp_dc_l10, +SAFE_CAST(tmp_dc_l11 AS INT64) tmp_dc_l11, +SAFE_CAST(tmp_dc_l12 AS INT64) tmp_dc_l12, +SAFE_CAST(pre_mm_lyr AS INT64) pre_mm_lyr, +SAFE_CAST(pre_mm_uyr AS INT64) pre_mm_uyr, +SAFE_CAST(pre_mm_l01 AS INT64) pre_mm_l01, +SAFE_CAST(pre_mm_l02 AS INT64) pre_mm_l02, +SAFE_CAST(pre_mm_l03 AS INT64) pre_mm_l03, +SAFE_CAST(pre_mm_l04 AS INT64) pre_mm_l04, +SAFE_CAST(pre_mm_l05 AS INT64) pre_mm_l05, +SAFE_CAST(pre_mm_l06 AS INT64) pre_mm_l06, +SAFE_CAST(pre_mm_l07 AS INT64) pre_mm_l07, +SAFE_CAST(pre_mm_l08 AS INT64) pre_mm_l08, +SAFE_CAST(pre_mm_l09 AS INT64) pre_mm_l09, +SAFE_CAST(pre_mm_l10 AS INT64) pre_mm_l10, +SAFE_CAST(pre_mm_l11 AS INT64) pre_mm_l11, +SAFE_CAST(pre_mm_l12 AS INT64) pre_mm_l12, +SAFE_CAST(pet_mm_lyr AS INT64) pet_mm_lyr, +SAFE_CAST(pet_mm_uyr AS INT64) pet_mm_uyr, +SAFE_CAST(pet_mm_l01 AS INT64) pet_mm_l01, +SAFE_CAST(pet_mm_l02 AS INT64) pet_mm_l02, +SAFE_CAST(pet_mm_l03 AS INT64) pet_mm_l03, +SAFE_CAST(pet_mm_l04 AS INT64) pet_mm_l04, +SAFE_CAST(pet_mm_l05 AS INT64) pet_mm_l05, +SAFE_CAST(pet_mm_l06 AS INT64) pet_mm_l06, +SAFE_CAST(pet_mm_l07 AS INT64) pet_mm_l07, +SAFE_CAST(pet_mm_l08 AS INT64) pet_mm_l08, +SAFE_CAST(pet_mm_l09 AS INT64) pet_mm_l09, +SAFE_CAST(pet_mm_l10 AS INT64) pet_mm_l10, +SAFE_CAST(pet_mm_l11 AS INT64) pet_mm_l11, +SAFE_CAST(pet_mm_l12 AS INT64) pet_mm_l12, +SAFE_CAST(aet_mm_vyr AS INT64) aet_mm_vyr, +SAFE_CAST(aet_mm_uyr AS INT64) aet_mm_uyr, +SAFE_CAST(aet_mm_v01 AS INT64) aet_mm_v01, +SAFE_CAST(aet_mm_v02 AS INT64) aet_mm_v02, +SAFE_CAST(aet_mm_v03 AS INT64) aet_mm_v03, +SAFE_CAST(aet_mm_v04 AS INT64) aet_mm_v04, +SAFE_CAST(aet_mm_v05 AS INT64) aet_mm_v05, +SAFE_CAST(aet_mm_v06 AS INT64) aet_mm_v06, +SAFE_CAST(aet_mm_v07 AS INT64) aet_mm_v07, +SAFE_CAST(aet_mm_v08 AS INT64) aet_mm_v08, +SAFE_CAST(aet_mm_v09 AS INT64) aet_mm_v09, +SAFE_CAST(aet_mm_v10 AS INT64) aet_mm_v10, +SAFE_CAST(aet_mm_v11 AS INT64) aet_mm_v11, +SAFE_CAST(aet_mm_v12 AS INT64) aet_mm_v12, +SAFE_CAST(ari_ix_lav AS INT64) ari_ix_lav, +SAFE_CAST(ari_ix_uav AS INT64) ari_ix_uav, +SAFE_CAST(cmi_ix_lyr AS INT64) cmi_ix_lyr, +SAFE_CAST(cmi_ix_uyr AS INT64) cmi_ix_uyr, +SAFE_CAST(cmi_ix_l01 AS INT64) cmi_ix_l01, +SAFE_CAST(cmi_ix_l02 AS INT64) cmi_ix_l02, +SAFE_CAST(cmi_ix_l03 AS INT64) cmi_ix_l03, +SAFE_CAST(cmi_ix_l04 AS INT64) cmi_ix_l04, +SAFE_CAST(cmi_ix_l05 AS INT64) cmi_ix_l05, +SAFE_CAST(cmi_ix_l06 AS INT64) cmi_ix_l06, +SAFE_CAST(cmi_ix_l07 AS INT64) cmi_ix_l07, +SAFE_CAST(cmi_ix_l08 AS INT64) cmi_ix_l08, +SAFE_CAST(cmi_ix_l09 AS INT64) cmi_ix_l09, +SAFE_CAST(cmi_ix_l10 AS INT64) cmi_ix_l10, +SAFE_CAST(cmi_ix_l11 AS INT64) cmi_ix_l11, +SAFE_CAST(cmi_ix_l12 AS INT64) cmi_ix_l12, +SAFE_CAST(snw_pc_vyr AS INT64) snw_pc_vyr, +SAFE_CAST(snw_pc_uyr AS INT64) snw_pc_uyr, +SAFE_CAST(snw_pc_vmx AS INT64) snw_pc_vmx, +SAFE_CAST(snw_pc_v01 AS INT64) snw_pc_v01, +SAFE_CAST(snw_pc_v02 AS INT64) snw_pc_v02, +SAFE_CAST(snw_pc_v03 AS INT64) snw_pc_v03, +SAFE_CAST(snw_pc_v04 AS INT64) snw_pc_v04, +SAFE_CAST(snw_pc_v05 AS INT64) snw_pc_v05, +SAFE_CAST(snw_pc_v06 AS INT64) snw_pc_v06, +SAFE_CAST(snw_pc_v07 AS INT64) snw_pc_v07, +SAFE_CAST(snw_pc_v08 AS INT64) snw_pc_v08, +SAFE_CAST(snw_pc_v09 AS INT64) snw_pc_v09, +SAFE_CAST(snw_pc_v10 AS INT64) snw_pc_v10, +SAFE_CAST(snw_pc_v11 AS INT64) snw_pc_v11, +SAFE_CAST(snw_pc_v12 AS INT64) snw_pc_v12, +SAFE_CAST(glc_cl_vmj AS INT64) glc_cl_vmj, +SAFE_CAST(glc_pc_v01 AS INT64) glc_pc_v01, +SAFE_CAST(glc_pc_v02 AS INT64) glc_pc_v02, +SAFE_CAST(glc_pc_v03 AS INT64) glc_pc_v03, +SAFE_CAST(glc_pc_v04 AS INT64) glc_pc_v04, +SAFE_CAST(glc_pc_v05 AS INT64) glc_pc_v05, +SAFE_CAST(glc_pc_v06 AS INT64) glc_pc_v06, +SAFE_CAST(glc_pc_v07 AS INT64) glc_pc_v07, +SAFE_CAST(glc_pc_v08 AS INT64) glc_pc_v08, +SAFE_CAST(glc_pc_v09 AS INT64) glc_pc_v09, +SAFE_CAST(glc_pc_v10 AS INT64) glc_pc_v10, +SAFE_CAST(glc_pc_v11 AS INT64) glc_pc_v11, +SAFE_CAST(glc_pc_v12 AS INT64) glc_pc_v12, +SAFE_CAST(glc_pc_v13 AS INT64) glc_pc_v13, +SAFE_CAST(glc_pc_v14 AS INT64) glc_pc_v14, +SAFE_CAST(glc_pc_v15 AS INT64) glc_pc_v15, +SAFE_CAST(glc_pc_v16 AS INT64) glc_pc_v16, +SAFE_CAST(glc_pc_v17 AS INT64) glc_pc_v17, +SAFE_CAST(glc_pc_v18 AS INT64) glc_pc_v18, +SAFE_CAST(glc_pc_v19 AS INT64) glc_pc_v19, +SAFE_CAST(glc_pc_v20 AS INT64) glc_pc_v20, +SAFE_CAST(glc_pc_v21 AS INT64) glc_pc_v21, +SAFE_CAST(glc_pc_v22 AS INT64) glc_pc_v22, +SAFE_CAST(glc_pc_u01 AS INT64) glc_pc_u01, +SAFE_CAST(glc_pc_u02 AS INT64) glc_pc_u02, +SAFE_CAST(glc_pc_u03 AS INT64) glc_pc_u03, +SAFE_CAST(glc_pc_u04 AS INT64) glc_pc_u04, +SAFE_CAST(glc_pc_u05 AS INT64) glc_pc_u05, +SAFE_CAST(glc_pc_u06 AS INT64) glc_pc_u06, +SAFE_CAST(glc_pc_u07 AS INT64) glc_pc_u07, +SAFE_CAST(glc_pc_u08 AS INT64) glc_pc_u08, +SAFE_CAST(glc_pc_u09 AS INT64) glc_pc_u09, +SAFE_CAST(glc_pc_u10 AS INT64) glc_pc_u10, +SAFE_CAST(glc_pc_u11 AS INT64) glc_pc_u11, +SAFE_CAST(glc_pc_u12 AS INT64) glc_pc_u12, +SAFE_CAST(glc_pc_u13 AS INT64) glc_pc_u13, +SAFE_CAST(glc_pc_u14 AS INT64) glc_pc_u14, +SAFE_CAST(glc_pc_u15 AS INT64) glc_pc_u15, +SAFE_CAST(glc_pc_u16 AS INT64) glc_pc_u16, +SAFE_CAST(glc_pc_u17 AS INT64) glc_pc_u17, +SAFE_CAST(glc_pc_u18 AS INT64) glc_pc_u18, +SAFE_CAST(glc_pc_u19 AS INT64) glc_pc_u19, +SAFE_CAST(glc_pc_u20 AS INT64) glc_pc_u20, +SAFE_CAST(glc_pc_u21 AS INT64) glc_pc_u21, +SAFE_CAST(glc_pc_u22 AS INT64) glc_pc_u22, +SAFE_CAST(pnv_cl_vmj AS INT64) pnv_cl_vmj, +SAFE_CAST(pnv_pc_v01 AS INT64) pnv_pc_v01, +SAFE_CAST(pnv_pc_v02 AS INT64) pnv_pc_v02, +SAFE_CAST(pnv_pc_v03 AS INT64) pnv_pc_v03, +SAFE_CAST(pnv_pc_v04 AS INT64) pnv_pc_v04, +SAFE_CAST(pnv_pc_v05 AS INT64) pnv_pc_v05, +SAFE_CAST(pnv_pc_v06 AS INT64) pnv_pc_v06, +SAFE_CAST(pnv_pc_v07 AS INT64) pnv_pc_v07, +SAFE_CAST(pnv_pc_v08 AS INT64) pnv_pc_v08, +SAFE_CAST(pnv_pc_v09 AS INT64) pnv_pc_v09, +SAFE_CAST(pnv_pc_v10 AS INT64) pnv_pc_v10, +SAFE_CAST(pnv_pc_v11 AS INT64) pnv_pc_v11, +SAFE_CAST(pnv_pc_v12 AS INT64) pnv_pc_v12, +SAFE_CAST(pnv_pc_v13 AS INT64) pnv_pc_v13, +SAFE_CAST(pnv_pc_v14 AS INT64) pnv_pc_v14, +SAFE_CAST(pnv_pc_v15 AS INT64) pnv_pc_v15, +SAFE_CAST(pnv_pc_u01 AS INT64) pnv_pc_u01, +SAFE_CAST(pnv_pc_u02 AS INT64) pnv_pc_u02, +SAFE_CAST(pnv_pc_u03 AS INT64) pnv_pc_u03, +SAFE_CAST(pnv_pc_u04 AS INT64) pnv_pc_u04, +SAFE_CAST(pnv_pc_u05 AS INT64) pnv_pc_u05, +SAFE_CAST(pnv_pc_u06 AS INT64) pnv_pc_u06, +SAFE_CAST(pnv_pc_u07 AS INT64) pnv_pc_u07, +SAFE_CAST(pnv_pc_u08 AS INT64) pnv_pc_u08, +SAFE_CAST(pnv_pc_u09 AS INT64) pnv_pc_u09, +SAFE_CAST(pnv_pc_u10 AS INT64) pnv_pc_u10, +SAFE_CAST(pnv_pc_u11 AS INT64) pnv_pc_u11, +SAFE_CAST(pnv_pc_u12 AS INT64) pnv_pc_u12, +SAFE_CAST(pnv_pc_u13 AS INT64) pnv_pc_u13, +SAFE_CAST(pnv_pc_u14 AS INT64) pnv_pc_u14, +SAFE_CAST(pnv_pc_u15 AS INT64) pnv_pc_u15, +SAFE_CAST(wet_cl_vmj AS INT64) wet_cl_vmj, +SAFE_CAST(wet_pc_vg1 AS INT64) wet_pc_vg1, +SAFE_CAST(wet_pc_ug1 AS INT64) wet_pc_ug1, +SAFE_CAST(wet_pc_vg2 AS INT64) wet_pc_vg2, +SAFE_CAST(wet_pc_ug2 AS INT64) wet_pc_ug2, +SAFE_CAST(wet_pc_v01 AS INT64) wet_pc_v01, +SAFE_CAST(wet_pc_v02 AS INT64) wet_pc_v02, +SAFE_CAST(wet_pc_v03 AS INT64) wet_pc_v03, +SAFE_CAST(wet_pc_v04 AS INT64) wet_pc_v04, +SAFE_CAST(wet_pc_v05 AS INT64) wet_pc_v05, +SAFE_CAST(wet_pc_v06 AS INT64) wet_pc_v06, +SAFE_CAST(wet_pc_v07 AS INT64) wet_pc_v07, +SAFE_CAST(wet_pc_v08 AS INT64) wet_pc_v08, +SAFE_CAST(wet_pc_v09 AS INT64) wet_pc_v09, +SAFE_CAST(wet_pc_u01 AS INT64) wet_pc_u01, +SAFE_CAST(wet_pc_u02 AS INT64) wet_pc_u02, +SAFE_CAST(wet_pc_u03 AS INT64) wet_pc_u03, +SAFE_CAST(wet_pc_u04 AS INT64) wet_pc_u04, +SAFE_CAST(wet_pc_u05 AS INT64) wet_pc_u05, +SAFE_CAST(wet_pc_u06 AS INT64) wet_pc_u06, +SAFE_CAST(wet_pc_u07 AS INT64) wet_pc_u07, +SAFE_CAST(wet_pc_u08 AS INT64) wet_pc_u08, +SAFE_CAST(wet_pc_u09 AS INT64) wet_pc_u09, +SAFE_CAST(for_pc_vse AS INT64) for_pc_vse, +SAFE_CAST(for_pc_use AS INT64) for_pc_use, +SAFE_CAST(crp_pc_vse AS INT64) crp_pc_vse, +SAFE_CAST(crp_pc_use AS INT64) crp_pc_use, +SAFE_CAST(pst_pc_vse AS INT64) pst_pc_vse, +SAFE_CAST(pst_pc_use AS INT64) pst_pc_use, +SAFE_CAST(ire_pc_vse AS INT64) ire_pc_vse, +SAFE_CAST(ire_pc_use AS INT64) ire_pc_use, +SAFE_CAST(gla_pc_vse AS INT64) gla_pc_vse, +SAFE_CAST(gla_pc_use AS INT64) gla_pc_use, +SAFE_CAST(prm_pc_vse AS INT64) prm_pc_vse, +SAFE_CAST(prm_pc_use AS INT64) prm_pc_use, +SAFE_CAST(pac_pc_lse AS INT64) pac_pc_lse, +SAFE_CAST(pac_pc_use AS INT64) pac_pc_use, +SAFE_CAST(tbi_cl_lmj AS INT64) tbi_cl_lmj, +SAFE_CAST(tec_cl_lmj AS INT64) tec_cl_lmj, +SAFE_CAST(fmh_cl_lmj AS INT64) fmh_cl_lmj, +SAFE_CAST(fec_cl_lmj AS INT64) fec_cl_lmj, +SAFE_CAST(cly_pc_vav AS INT64) cly_pc_vav, +SAFE_CAST(cly_pc_uav AS INT64) cly_pc_uav, +SAFE_CAST(slt_pc_vav AS INT64) slt_pc_vav, +SAFE_CAST(slt_pc_uav AS INT64) slt_pc_uav, +SAFE_CAST(snd_pc_vav AS INT64) snd_pc_vav, +SAFE_CAST(snd_pc_uav AS INT64) snd_pc_uav, +SAFE_CAST(soc_th_vav AS INT64) soc_th_vav, +SAFE_CAST(soc_th_uav AS INT64) soc_th_uav, +SAFE_CAST(swc_pc_vyr AS INT64) swc_pc_vyr, +SAFE_CAST(swc_pc_uyr AS INT64) swc_pc_uyr, +SAFE_CAST(swc_pc_v01 AS INT64) swc_pc_v01, +SAFE_CAST(swc_pc_v02 AS INT64) swc_pc_v02, +SAFE_CAST(swc_pc_v03 AS INT64) swc_pc_v03, +SAFE_CAST(swc_pc_v04 AS INT64) swc_pc_v04, +SAFE_CAST(swc_pc_v05 AS INT64) swc_pc_v05, +SAFE_CAST(swc_pc_v06 AS INT64) swc_pc_v06, +SAFE_CAST(swc_pc_v07 AS INT64) swc_pc_v07, +SAFE_CAST(swc_pc_v08 AS INT64) swc_pc_v08, +SAFE_CAST(swc_pc_v09 AS INT64) swc_pc_v09, +SAFE_CAST(swc_pc_v10 AS INT64) swc_pc_v10, +SAFE_CAST(swc_pc_v11 AS INT64) swc_pc_v11, +SAFE_CAST(swc_pc_v12 AS INT64) swc_pc_v12, +SAFE_CAST(lit_cl_vmj AS INT64) lit_cl_vmj, +SAFE_CAST(kar_pc_vse AS INT64) kar_pc_vse, +SAFE_CAST(kar_pc_use AS INT64) kar_pc_use, +SAFE_CAST(ero_kh_vav AS INT64) ero_kh_vav, +SAFE_CAST(ero_kh_uav AS INT64) ero_kh_uav, +SAFE_CAST(pop_ct_vsu AS FLOAT64) pop_ct_vsu, +SAFE_CAST(pop_ct_usu AS FLOAT64) pop_ct_usu, +SAFE_CAST(ppd_pk_vav AS FLOAT64) ppd_pk_vav, +SAFE_CAST(ppd_pk_uav AS FLOAT64) ppd_pk_uav, +SAFE_CAST(urb_pc_vse AS INT64) urb_pc_vse, +SAFE_CAST(urb_pc_use AS INT64) urb_pc_use, +SAFE_CAST(nli_ix_vav AS INT64) nli_ix_vav, +SAFE_CAST(nli_ix_uav AS INT64) nli_ix_uav, +SAFE_CAST(rdd_mk_vav AS INT64) rdd_mk_vav, +SAFE_CAST(rdd_mk_uav AS INT64) rdd_mk_uav, +SAFE_CAST(hft_ix_v93 AS INT64) hft_ix_v93, +SAFE_CAST(hft_ix_u93 AS INT64) hft_ix_u93, +SAFE_CAST(hft_ix_v09 AS INT64) hft_ix_v09, +SAFE_CAST(hft_ix_u09 AS INT64) hft_ix_u09, +SAFE_CAST(gad_id_lmj AS INT64) gad_id_lmj, +SAFE_CAST(gdp_ud_vav AS INT64) gdp_ud_vav, +SAFE_CAST(gdp_ud_vsu AS INT64) gdp_ud_vsu, +SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, +SAFE_CAST(hdi_ix_vav AS INT64) hdi_ix_vav, +SAFE_CAST(geometry AS STRING) geometry +FROM basedosdados-staging.world_wwf_hydrosheds_staging.lakes_atlas AS t \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql new file mode 100644 index 00000000..e75b1a7d --- /dev/null +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql @@ -0,0 +1,307 @@ +{{ + config( + alias='rivers_atlas', + schema='world_wwf_hydrosheds', + materialized='table', + cluster_by='region' + ) + }} +SELECT +SAFE_CAST(region AS STRING) region, +SAFE_CAST(hyriv_id AS INT64) hyriv_id, +SAFE_CAST(next_down AS INT64) next_down, +SAFE_CAST(main_riv AS INT64) main_riv, +SAFE_CAST(length_km AS FLOAT64) length_km, +SAFE_CAST(dist_dn_km AS FLOAT64) dist_dn_km, +SAFE_CAST(dist_up_km AS FLOAT64) dist_up_km, +SAFE_CAST(catch_skm AS FLOAT64) catch_skm, +SAFE_CAST(upland_skm AS FLOAT64) upland_skm, +SAFE_CAST(endorheic AS INT64) endorheic, +SAFE_CAST(dis_av_cms AS FLOAT64) dis_av_cms, +SAFE_CAST(ord_stra AS INT64) ord_stra, +SAFE_CAST(ord_clas AS INT64) ord_clas, +SAFE_CAST(ord_flow AS INT64) ord_flow, +SAFE_CAST(hybas_l12 AS INT64) hybas_l12, +SAFE_CAST(dis_m3_pyr AS FLOAT64) dis_m3_pyr, +SAFE_CAST(dis_m3_pmn AS FLOAT64) dis_m3_pmn, +SAFE_CAST(dis_m3_pmx AS FLOAT64) dis_m3_pmx, +SAFE_CAST(run_mm_cyr AS INT64) run_mm_cyr, +SAFE_CAST(inu_pc_cmn AS INT64) inu_pc_cmn, +SAFE_CAST(inu_pc_umn AS INT64) inu_pc_umn, +SAFE_CAST(inu_pc_cmx AS INT64) inu_pc_cmx, +SAFE_CAST(inu_pc_umx AS INT64) inu_pc_umx, +SAFE_CAST(inu_pc_clt AS INT64) inu_pc_clt, +SAFE_CAST(inu_pc_ult AS INT64) inu_pc_ult, +SAFE_CAST(lka_pc_cse AS INT64) lka_pc_cse, +SAFE_CAST(lka_pc_use AS INT64) lka_pc_use, +SAFE_CAST(lkv_mc_usu AS INT64) lkv_mc_usu, +SAFE_CAST(rev_mc_usu AS INT64) rev_mc_usu, +SAFE_CAST(dor_pc_pva AS INT64) dor_pc_pva, +SAFE_CAST(ria_ha_csu AS FLOAT64) ria_ha_csu, +SAFE_CAST(ria_ha_usu AS FLOAT64) ria_ha_usu, +SAFE_CAST(riv_tc_csu AS FLOAT64) riv_tc_csu, +SAFE_CAST(riv_tc_usu AS FLOAT64) riv_tc_usu, +SAFE_CAST(gwt_cm_cav AS INT64) gwt_cm_cav, +SAFE_CAST(ele_mt_cav AS INT64) ele_mt_cav, +SAFE_CAST(ele_mt_uav AS INT64) ele_mt_uav, +SAFE_CAST(ele_mt_cmn AS INT64) ele_mt_cmn, +SAFE_CAST(ele_mt_cmx AS INT64) ele_mt_cmx, +SAFE_CAST(slp_dg_cav AS INT64) slp_dg_cav, +SAFE_CAST(slp_dg_uav AS INT64) slp_dg_uav, +SAFE_CAST(sgr_dk_rav AS INT64) sgr_dk_rav, +SAFE_CAST(clz_cl_cmj AS INT64) clz_cl_cmj, +SAFE_CAST(cls_cl_cmj AS INT64) cls_cl_cmj, +SAFE_CAST(tmp_dc_cyr AS INT64) tmp_dc_cyr, +SAFE_CAST(tmp_dc_uyr AS INT64) tmp_dc_uyr, +SAFE_CAST(tmp_dc_cmn AS INT64) tmp_dc_cmn, +SAFE_CAST(tmp_dc_cmx AS INT64) tmp_dc_cmx, +SAFE_CAST(tmp_dc_c01 AS INT64) tmp_dc_c01, +SAFE_CAST(tmp_dc_c02 AS INT64) tmp_dc_c02, +SAFE_CAST(tmp_dc_c03 AS INT64) tmp_dc_c03, +SAFE_CAST(tmp_dc_c04 AS INT64) tmp_dc_c04, +SAFE_CAST(tmp_dc_c05 AS INT64) tmp_dc_c05, +SAFE_CAST(tmp_dc_c06 AS INT64) tmp_dc_c06, +SAFE_CAST(tmp_dc_c07 AS INT64) tmp_dc_c07, +SAFE_CAST(tmp_dc_c08 AS INT64) tmp_dc_c08, +SAFE_CAST(tmp_dc_c09 AS INT64) tmp_dc_c09, +SAFE_CAST(tmp_dc_c10 AS INT64) tmp_dc_c10, +SAFE_CAST(tmp_dc_c11 AS INT64) tmp_dc_c11, +SAFE_CAST(tmp_dc_c12 AS INT64) tmp_dc_c12, +SAFE_CAST(pre_mm_cyr AS INT64) pre_mm_cyr, +SAFE_CAST(pre_mm_uyr AS INT64) pre_mm_uyr, +SAFE_CAST(pre_mm_c01 AS INT64) pre_mm_c01, +SAFE_CAST(pre_mm_c02 AS INT64) pre_mm_c02, +SAFE_CAST(pre_mm_c03 AS INT64) pre_mm_c03, +SAFE_CAST(pre_mm_c04 AS INT64) pre_mm_c04, +SAFE_CAST(pre_mm_c05 AS INT64) pre_mm_c05, +SAFE_CAST(pre_mm_c06 AS INT64) pre_mm_c06, +SAFE_CAST(pre_mm_c07 AS INT64) pre_mm_c07, +SAFE_CAST(pre_mm_c08 AS INT64) pre_mm_c08, +SAFE_CAST(pre_mm_c09 AS INT64) pre_mm_c09, +SAFE_CAST(pre_mm_c10 AS INT64) pre_mm_c10, +SAFE_CAST(pre_mm_c11 AS INT64) pre_mm_c11, +SAFE_CAST(pre_mm_c12 AS INT64) pre_mm_c12, +SAFE_CAST(pet_mm_cyr AS INT64) pet_mm_cyr, +SAFE_CAST(pet_mm_uyr AS INT64) pet_mm_uyr, +SAFE_CAST(pet_mm_c01 AS INT64) pet_mm_c01, +SAFE_CAST(pet_mm_c02 AS INT64) pet_mm_c02, +SAFE_CAST(pet_mm_c03 AS INT64) pet_mm_c03, +SAFE_CAST(pet_mm_c04 AS INT64) pet_mm_c04, +SAFE_CAST(pet_mm_c05 AS INT64) pet_mm_c05, +SAFE_CAST(pet_mm_c06 AS INT64) pet_mm_c06, +SAFE_CAST(pet_mm_c07 AS INT64) pet_mm_c07, +SAFE_CAST(pet_mm_c08 AS INT64) pet_mm_c08, +SAFE_CAST(pet_mm_c09 AS INT64) pet_mm_c09, +SAFE_CAST(pet_mm_c10 AS INT64) pet_mm_c10, +SAFE_CAST(pet_mm_c11 AS INT64) pet_mm_c11, +SAFE_CAST(pet_mm_c12 AS INT64) pet_mm_c12, +SAFE_CAST(aet_mm_cyr AS INT64) aet_mm_cyr, +SAFE_CAST(aet_mm_uyr AS INT64) aet_mm_uyr, +SAFE_CAST(aet_mm_c01 AS INT64) aet_mm_c01, +SAFE_CAST(aet_mm_c02 AS INT64) aet_mm_c02, +SAFE_CAST(aet_mm_c03 AS INT64) aet_mm_c03, +SAFE_CAST(aet_mm_c04 AS INT64) aet_mm_c04, +SAFE_CAST(aet_mm_c05 AS INT64) aet_mm_c05, +SAFE_CAST(aet_mm_c06 AS INT64) aet_mm_c06, +SAFE_CAST(aet_mm_c07 AS INT64) aet_mm_c07, +SAFE_CAST(aet_mm_c08 AS INT64) aet_mm_c08, +SAFE_CAST(aet_mm_c09 AS INT64) aet_mm_c09, +SAFE_CAST(aet_mm_c10 AS INT64) aet_mm_c10, +SAFE_CAST(aet_mm_c11 AS INT64) aet_mm_c11, +SAFE_CAST(aet_mm_c12 AS INT64) aet_mm_c12, +SAFE_CAST(ari_ix_cav AS INT64) ari_ix_cav, +SAFE_CAST(ari_ix_uav AS INT64) ari_ix_uav, +SAFE_CAST(cmi_ix_cyr AS INT64) cmi_ix_cyr, +SAFE_CAST(cmi_ix_uyr AS INT64) cmi_ix_uyr, +SAFE_CAST(cmi_ix_c01 AS INT64) cmi_ix_c01, +SAFE_CAST(cmi_ix_c02 AS INT64) cmi_ix_c02, +SAFE_CAST(cmi_ix_c03 AS INT64) cmi_ix_c03, +SAFE_CAST(cmi_ix_c04 AS INT64) cmi_ix_c04, +SAFE_CAST(cmi_ix_c05 AS INT64) cmi_ix_c05, +SAFE_CAST(cmi_ix_c06 AS INT64) cmi_ix_c06, +SAFE_CAST(cmi_ix_c07 AS INT64) cmi_ix_c07, +SAFE_CAST(cmi_ix_c08 AS INT64) cmi_ix_c08, +SAFE_CAST(cmi_ix_c09 AS INT64) cmi_ix_c09, +SAFE_CAST(cmi_ix_c10 AS INT64) cmi_ix_c10, +SAFE_CAST(cmi_ix_c11 AS INT64) cmi_ix_c11, +SAFE_CAST(cmi_ix_c12 AS INT64) cmi_ix_c12, +SAFE_CAST(snw_pc_cyr AS INT64) snw_pc_cyr, +SAFE_CAST(snw_pc_uyr AS INT64) snw_pc_uyr, +SAFE_CAST(snw_pc_cmx AS INT64) snw_pc_cmx, +SAFE_CAST(snw_pc_c01 AS INT64) snw_pc_c01, +SAFE_CAST(snw_pc_c02 AS INT64) snw_pc_c02, +SAFE_CAST(snw_pc_c03 AS INT64) snw_pc_c03, +SAFE_CAST(snw_pc_c04 AS INT64) snw_pc_c04, +SAFE_CAST(snw_pc_c05 AS INT64) snw_pc_c05, +SAFE_CAST(snw_pc_c06 AS INT64) snw_pc_c06, +SAFE_CAST(snw_pc_c07 AS INT64) snw_pc_c07, +SAFE_CAST(snw_pc_c08 AS INT64) snw_pc_c08, +SAFE_CAST(snw_pc_c09 AS INT64) snw_pc_c09, +SAFE_CAST(snw_pc_c10 AS INT64) snw_pc_c10, +SAFE_CAST(snw_pc_c11 AS INT64) snw_pc_c11, +SAFE_CAST(snw_pc_c12 AS INT64) snw_pc_c12, +SAFE_CAST(glc_cl_cmj AS INT64) glc_cl_cmj, +SAFE_CAST(glc_pc_c01 AS INT64) glc_pc_c01, +SAFE_CAST(glc_pc_c02 AS INT64) glc_pc_c02, +SAFE_CAST(glc_pc_c03 AS INT64) glc_pc_c03, +SAFE_CAST(glc_pc_c04 AS INT64) glc_pc_c04, +SAFE_CAST(glc_pc_c05 AS INT64) glc_pc_c05, +SAFE_CAST(glc_pc_c06 AS INT64) glc_pc_c06, +SAFE_CAST(glc_pc_c07 AS INT64) glc_pc_c07, +SAFE_CAST(glc_pc_c08 AS INT64) glc_pc_c08, +SAFE_CAST(glc_pc_c09 AS INT64) glc_pc_c09, +SAFE_CAST(glc_pc_c10 AS INT64) glc_pc_c10, +SAFE_CAST(glc_pc_c11 AS INT64) glc_pc_c11, +SAFE_CAST(glc_pc_c12 AS INT64) glc_pc_c12, +SAFE_CAST(glc_pc_c13 AS INT64) glc_pc_c13, +SAFE_CAST(glc_pc_c14 AS INT64) glc_pc_c14, +SAFE_CAST(glc_pc_c15 AS INT64) glc_pc_c15, +SAFE_CAST(glc_pc_c16 AS INT64) glc_pc_c16, +SAFE_CAST(glc_pc_c17 AS INT64) glc_pc_c17, +SAFE_CAST(glc_pc_c18 AS INT64) glc_pc_c18, +SAFE_CAST(glc_pc_c19 AS INT64) glc_pc_c19, +SAFE_CAST(glc_pc_c20 AS INT64) glc_pc_c20, +SAFE_CAST(glc_pc_c21 AS INT64) glc_pc_c21, +SAFE_CAST(glc_pc_c22 AS INT64) glc_pc_c22, +SAFE_CAST(glc_pc_u01 AS INT64) glc_pc_u01, +SAFE_CAST(glc_pc_u02 AS INT64) glc_pc_u02, +SAFE_CAST(glc_pc_u03 AS INT64) glc_pc_u03, +SAFE_CAST(glc_pc_u04 AS INT64) glc_pc_u04, +SAFE_CAST(glc_pc_u05 AS INT64) glc_pc_u05, +SAFE_CAST(glc_pc_u06 AS INT64) glc_pc_u06, +SAFE_CAST(glc_pc_u07 AS INT64) glc_pc_u07, +SAFE_CAST(glc_pc_u08 AS INT64) glc_pc_u08, +SAFE_CAST(glc_pc_u09 AS INT64) glc_pc_u09, +SAFE_CAST(glc_pc_u10 AS INT64) glc_pc_u10, +SAFE_CAST(glc_pc_u11 AS INT64) glc_pc_u11, +SAFE_CAST(glc_pc_u12 AS INT64) glc_pc_u12, +SAFE_CAST(glc_pc_u13 AS INT64) glc_pc_u13, +SAFE_CAST(glc_pc_u14 AS INT64) glc_pc_u14, +SAFE_CAST(glc_pc_u15 AS INT64) glc_pc_u15, +SAFE_CAST(glc_pc_u16 AS INT64) glc_pc_u16, +SAFE_CAST(glc_pc_u17 AS INT64) glc_pc_u17, +SAFE_CAST(glc_pc_u18 AS INT64) glc_pc_u18, +SAFE_CAST(glc_pc_u19 AS INT64) glc_pc_u19, +SAFE_CAST(glc_pc_u20 AS INT64) glc_pc_u20, +SAFE_CAST(glc_pc_u21 AS INT64) glc_pc_u21, +SAFE_CAST(glc_pc_u22 AS INT64) glc_pc_u22, +SAFE_CAST(pnv_cl_cmj AS INT64) pnv_cl_cmj, +SAFE_CAST(pnv_pc_c01 AS INT64) pnv_pc_c01, +SAFE_CAST(pnv_pc_c02 AS INT64) pnv_pc_c02, +SAFE_CAST(pnv_pc_c03 AS INT64) pnv_pc_c03, +SAFE_CAST(pnv_pc_c04 AS INT64) pnv_pc_c04, +SAFE_CAST(pnv_pc_c05 AS INT64) pnv_pc_c05, +SAFE_CAST(pnv_pc_c06 AS INT64) pnv_pc_c06, +SAFE_CAST(pnv_pc_c07 AS INT64) pnv_pc_c07, +SAFE_CAST(pnv_pc_c08 AS INT64) pnv_pc_c08, +SAFE_CAST(pnv_pc_c09 AS INT64) pnv_pc_c09, +SAFE_CAST(pnv_pc_c10 AS INT64) pnv_pc_c10, +SAFE_CAST(pnv_pc_c11 AS INT64) pnv_pc_c11, +SAFE_CAST(pnv_pc_c12 AS INT64) pnv_pc_c12, +SAFE_CAST(pnv_pc_c13 AS INT64) pnv_pc_c13, +SAFE_CAST(pnv_pc_c14 AS INT64) pnv_pc_c14, +SAFE_CAST(pnv_pc_c15 AS INT64) pnv_pc_c15, +SAFE_CAST(pnv_pc_u01 AS INT64) pnv_pc_u01, +SAFE_CAST(pnv_pc_u02 AS INT64) pnv_pc_u02, +SAFE_CAST(pnv_pc_u03 AS INT64) pnv_pc_u03, +SAFE_CAST(pnv_pc_u04 AS INT64) pnv_pc_u04, +SAFE_CAST(pnv_pc_u05 AS INT64) pnv_pc_u05, +SAFE_CAST(pnv_pc_u06 AS INT64) pnv_pc_u06, +SAFE_CAST(pnv_pc_u07 AS INT64) pnv_pc_u07, +SAFE_CAST(pnv_pc_u08 AS INT64) pnv_pc_u08, +SAFE_CAST(pnv_pc_u09 AS INT64) pnv_pc_u09, +SAFE_CAST(pnv_pc_u10 AS INT64) pnv_pc_u10, +SAFE_CAST(pnv_pc_u11 AS INT64) pnv_pc_u11, +SAFE_CAST(pnv_pc_u12 AS INT64) pnv_pc_u12, +SAFE_CAST(pnv_pc_u13 AS INT64) pnv_pc_u13, +SAFE_CAST(pnv_pc_u14 AS INT64) pnv_pc_u14, +SAFE_CAST(pnv_pc_u15 AS INT64) pnv_pc_u15, +SAFE_CAST(wet_cl_cmj AS INT64) wet_cl_cmj, +SAFE_CAST(wet_pc_cg1 AS INT64) wet_pc_cg1, +SAFE_CAST(wet_pc_ug1 AS INT64) wet_pc_ug1, +SAFE_CAST(wet_pc_cg2 AS INT64) wet_pc_cg2, +SAFE_CAST(wet_pc_ug2 AS INT64) wet_pc_ug2, +SAFE_CAST(wet_pc_c01 AS INT64) wet_pc_c01, +SAFE_CAST(wet_pc_c02 AS INT64) wet_pc_c02, +SAFE_CAST(wet_pc_c03 AS INT64) wet_pc_c03, +SAFE_CAST(wet_pc_c04 AS INT64) wet_pc_c04, +SAFE_CAST(wet_pc_c05 AS INT64) wet_pc_c05, +SAFE_CAST(wet_pc_c06 AS INT64) wet_pc_c06, +SAFE_CAST(wet_pc_c07 AS INT64) wet_pc_c07, +SAFE_CAST(wet_pc_c08 AS INT64) wet_pc_c08, +SAFE_CAST(wet_pc_c09 AS INT64) wet_pc_c09, +SAFE_CAST(wet_pc_u01 AS INT64) wet_pc_u01, +SAFE_CAST(wet_pc_u02 AS INT64) wet_pc_u02, +SAFE_CAST(wet_pc_u03 AS INT64) wet_pc_u03, +SAFE_CAST(wet_pc_u04 AS INT64) wet_pc_u04, +SAFE_CAST(wet_pc_u05 AS INT64) wet_pc_u05, +SAFE_CAST(wet_pc_u06 AS INT64) wet_pc_u06, +SAFE_CAST(wet_pc_u07 AS INT64) wet_pc_u07, +SAFE_CAST(wet_pc_u08 AS INT64) wet_pc_u08, +SAFE_CAST(wet_pc_u09 AS INT64) wet_pc_u09, +SAFE_CAST(for_pc_cse AS INT64) for_pc_cse, +SAFE_CAST(for_pc_use AS INT64) for_pc_use, +SAFE_CAST(crp_pc_cse AS INT64) crp_pc_cse, +SAFE_CAST(crp_pc_use AS INT64) crp_pc_use, +SAFE_CAST(pst_pc_cse AS INT64) pst_pc_cse, +SAFE_CAST(pst_pc_use AS INT64) pst_pc_use, +SAFE_CAST(ire_pc_cse AS INT64) ire_pc_cse, +SAFE_CAST(ire_pc_use AS INT64) ire_pc_use, +SAFE_CAST(gla_pc_cse AS INT64) gla_pc_cse, +SAFE_CAST(gla_pc_use AS INT64) gla_pc_use, +SAFE_CAST(prm_pc_cse AS INT64) prm_pc_cse, +SAFE_CAST(prm_pc_use AS INT64) prm_pc_use, +SAFE_CAST(pac_pc_cse AS INT64) pac_pc_cse, +SAFE_CAST(pac_pc_use AS INT64) pac_pc_use, +SAFE_CAST(tbi_cl_cmj AS INT64) tbi_cl_cmj, +SAFE_CAST(tec_cl_cmj AS INT64) tec_cl_cmj, +SAFE_CAST(fmh_cl_cmj AS INT64) fmh_cl_cmj, +SAFE_CAST(fec_cl_cmj AS INT64) fec_cl_cmj, +SAFE_CAST(cly_pc_cav AS INT64) cly_pc_cav, +SAFE_CAST(cly_pc_uav AS INT64) cly_pc_uav, +SAFE_CAST(slt_pc_cav AS INT64) slt_pc_cav, +SAFE_CAST(slt_pc_uav AS INT64) slt_pc_uav, +SAFE_CAST(snd_pc_cav AS INT64) snd_pc_cav, +SAFE_CAST(snd_pc_uav AS INT64) snd_pc_uav, +SAFE_CAST(soc_th_cav AS INT64) soc_th_cav, +SAFE_CAST(soc_th_uav AS INT64) soc_th_uav, +SAFE_CAST(swc_pc_cyr AS INT64) swc_pc_cyr, +SAFE_CAST(swc_pc_uyr AS INT64) swc_pc_uyr, +SAFE_CAST(swc_pc_c01 AS INT64) swc_pc_c01, +SAFE_CAST(swc_pc_c02 AS INT64) swc_pc_c02, +SAFE_CAST(swc_pc_c03 AS INT64) swc_pc_c03, +SAFE_CAST(swc_pc_c04 AS INT64) swc_pc_c04, +SAFE_CAST(swc_pc_c05 AS INT64) swc_pc_c05, +SAFE_CAST(swc_pc_c06 AS INT64) swc_pc_c06, +SAFE_CAST(swc_pc_c07 AS INT64) swc_pc_c07, +SAFE_CAST(swc_pc_c08 AS INT64) swc_pc_c08, +SAFE_CAST(swc_pc_c09 AS INT64) swc_pc_c09, +SAFE_CAST(swc_pc_c10 AS INT64) swc_pc_c10, +SAFE_CAST(swc_pc_c11 AS INT64) swc_pc_c11, +SAFE_CAST(swc_pc_c12 AS INT64) swc_pc_c12, +SAFE_CAST(lit_cl_cmj AS INT64) lit_cl_cmj, +SAFE_CAST(kar_pc_cse AS INT64) kar_pc_cse, +SAFE_CAST(kar_pc_use AS INT64) kar_pc_use, +SAFE_CAST(ero_kh_cav AS INT64) ero_kh_cav, +SAFE_CAST(ero_kh_uav AS INT64) ero_kh_uav, +SAFE_CAST(pop_ct_csu AS FLOAT64) pop_ct_csu, +SAFE_CAST(pop_ct_usu AS FLOAT64) pop_ct_usu, +SAFE_CAST(ppd_pk_cav AS FLOAT64) ppd_pk_cav, +SAFE_CAST(ppd_pk_uav AS FLOAT64) ppd_pk_uav, +SAFE_CAST(urb_pc_cse AS INT64) urb_pc_cse, +SAFE_CAST(urb_pc_use AS INT64) urb_pc_use, +SAFE_CAST(nli_ix_cav AS INT64) nli_ix_cav, +SAFE_CAST(nli_ix_uav AS INT64) nli_ix_uav, +SAFE_CAST(rdd_mk_cav AS INT64) rdd_mk_cav, +SAFE_CAST(rdd_mk_uav AS INT64) rdd_mk_uav, +SAFE_CAST(hft_ix_c93 AS INT64) hft_ix_c93, +SAFE_CAST(hft_ix_u93 AS INT64) hft_ix_u93, +SAFE_CAST(hft_ix_c09 AS INT64) hft_ix_c09, +SAFE_CAST(hft_ix_u09 AS INT64) hft_ix_u09, +SAFE_CAST(gad_id_cmj AS INT64) gad_id_cmj, +SAFE_CAST(gdp_ud_cav AS INT64) gdp_ud_cav, +SAFE_CAST(gdp_ud_csu AS INT64) gdp_ud_csu, +SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, +SAFE_CAST(hdi_ix_cav AS INT64) hdi_ix_cav, +SAFE_CAST(geometry AS STRING) geometry +FROM basedosdados-staging.world_wwf_hydrosheds_staging.rivers_atlas AS t \ No newline at end of file From 5362a1332ec8a58f2473f7d8ff5d5bf4d3c1eabc Mon Sep 17 00:00:00 2001 From: Laura Amaral Date: Tue, 16 Jan 2024 17:46:47 -0300 Subject: [PATCH 13/15] fix: ST_GEOGFROMTEXT in geometry column --- .../world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql | 2 +- .../world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql | 2 +- .../world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql index 4d2de5ea..00ffa2d1 100644 --- a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql @@ -302,5 +302,5 @@ SAFE_CAST(gdp_ud_sav AS INT64) gdp_ud_sav, SAFE_CAST(gdp_ud_ssu AS INT64) gdp_ud_ssu, SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, SAFE_CAST(hdi_ix_sav AS INT64) hdi_ix_sav, -SAFE_CAST(geometry AS STRING) geometry +ST_GEOGFROMTEXT(geometry) geometry FROM basedosdados-staging.world_wwf_hydrosheds_staging.basins_atlas AS t \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql index af21f99b..b7259737 100644 --- a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql @@ -313,5 +313,5 @@ SAFE_CAST(gdp_ud_vav AS INT64) gdp_ud_vav, SAFE_CAST(gdp_ud_vsu AS INT64) gdp_ud_vsu, SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, SAFE_CAST(hdi_ix_vav AS INT64) hdi_ix_vav, -SAFE_CAST(geometry AS STRING) geometry +ST_GEOGFROMTEXT(geometry) geometry FROM basedosdados-staging.world_wwf_hydrosheds_staging.lakes_atlas AS t \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql index e75b1a7d..10d7bcdd 100644 --- a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql @@ -303,5 +303,5 @@ SAFE_CAST(gdp_ud_cav AS INT64) gdp_ud_cav, SAFE_CAST(gdp_ud_csu AS INT64) gdp_ud_csu, SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, SAFE_CAST(hdi_ix_cav AS INT64) hdi_ix_cav, -SAFE_CAST(geometry AS STRING) geometry +ST_GEOGFROMTEXT(geometry) geometry FROM basedosdados-staging.world_wwf_hydrosheds_staging.rivers_atlas AS t \ No newline at end of file From 73aa1fbb5031518130a429b6765418967fa71a42 Mon Sep 17 00:00:00 2001 From: Laura Amaral Date: Tue, 16 Jan 2024 18:58:34 -0300 Subject: [PATCH 14/15] fix: geographic function --- models/world_wwf_hydrosheds/schema.yaml | 3136 ++++++++--------- .../world_wwf_hydrosheds__basins_atlas.sql | 2 +- .../world_wwf_hydrosheds__lakes_atlas.sql | 2 +- .../world_wwf_hydrosheds__rivers_atlas.sql | 2 +- 4 files changed, 1570 insertions(+), 1572 deletions(-) diff --git a/models/world_wwf_hydrosheds/schema.yaml b/models/world_wwf_hydrosheds/schema.yaml index db3e6c99..f0f166d4 100644 --- a/models/world_wwf_hydrosheds/schema.yaml +++ b/models/world_wwf_hydrosheds/schema.yaml @@ -778,1574 +778,1572 @@ models: - name: hdi_ix_cav description: Human Development Index {c} in reach catchment {av} average - name: geometry - description: "Data layers are provided in geographic (latitude/longitude)\ - \ projection, referenced to datum\nWGS84" + description: Data layers are provided in geographic (latitude/longitude) projection, referenced to datum WGS84 - name: world_wwf_hydrosheds__basins_atlas - description: HydroBASINS represents a series of vectorized polygon layers that depict sub-basin boundaries at a global scale - columns: - - name: hybas_id - description: Unique basin identifier. The code consists of 10 digits - - name: next_down - description: Hybas_id of the next downstream polygon. This field can be used - for navigation (up- and downstream) within the river network - - name: next_sink - description: Hybas_id of the next downstream sink - - name: main_bas - description: 'Hybas_id of the most downstream sink, i.e. the outlet of the - main river basin. ' - - name: dist_sink - description: Distance from polygon outlet to the next downstream sink along - the river network,in kilometers. - - name: dist_main - description: Distance from polygon outlet to the most downstream sink, i.e. - the outlet of the main river basin along the river network, in kilometers. - - name: sub_area - description: Area of the individual polygon (i.e. sub-basin), in square kilometers. - - name: up_area - description: Total upstream area, in square kilometers, calculated from the - headwaters to the polygon location (including the polygon) - - name: pfaf_id - description: The Pfafstetter code - - name: endo - description: Indicator for endorheic (inland) basins without surface flow - connection to the ocean - - name: coast - description: Indicator for lumped coastal basins. Coastal basins represent - conglomerates of small coastal watersheds that drain into the ocean between - larger river basins - - name: order - description: Indicator of river order (classical ordering system) - - name: sort - description: Indicator showing the record number (sequence) in which the original - polygons are stored in the shapefile (i.e. counting upwards from 1 in - the original shapefile) - - name: dis_m3_pyr - description: Natural Discharge {p} at sub-basin pour point {yr} annual average - - name: dis_m3_pmn - description: Natural Discharge {p} at sub-basin pour point {mn} annual minimum - - name: dis_m3_pmx - description: Natural Discharge {p} at sub-basin pour point {mx} annual maximum - - name: run_mm_syr - description: Land Surface Runoff {s} in sub-basin {yr} annual average - - name: inu_pc_smn - description: Inundation Extent {s} in sub-basin {mn} annual minimum - - name: inu_pc_umn - description: Inundation Extent {u} in total watershed upstream of sub-basin - pour point {mn} annual minimum - - name: inu_pc_smx - description: Inundation Extent {s} in sub-basin {mx} annual maximum - - name: inu_pc_umx - description: Inundation Extent {u} in total watershed upstream of sub-basin - pour point {mx} annual maximum - - name: inu_pc_slt - description: Inundation Extent {s} in sub-basin {lt} long-term maximum - - name: inu_pc_ult - description: Inundation Extent {u} in total watershed upstream of sub-basin - pour point {lt} long-term maximum - - name: lka_pc_sse - description: Limnicity (Percent Lake Area) {s} in sub-basin {se} spatial extent - (%) - - name: lka_pc_use - description: Limnicity (Percent Lake Area) {u} in total watershed upstream - of sub-basin pour point {se} spatial extent (%) - - name: lkv_mc_usu - description: Lake Volume {u} in total watershed upstream of sub-basin pour - point {su} sum - - name: rev_mc_usu - description: Reservoir Volume {u} in total watershed upstream of sub-basin - pour point {su} sum - - name: dor_pc_pva - description: Degree of Regulation {p} at sub-basin pour point {va} value - - name: ria_ha_ssu - description: River Area {s} in sub-basin {su} sum - - name: ria_ha_usu - description: River Area {u} in total watershed upstream of sub-basin pour - point {su} sum - - name: riv_tc_ssu - description: River Volume {s} in sub-basin {su} sum - - name: riv_tc_usu - description: River Volume {u} in total watershed upstream of sub-basin pour - point {su} sum - - name: gwt_cm_sav - description: Groundwater Table Depth {s} in sub-basin {av} average - - name: ele_mt_sav - description: Elevation {s} in sub-basin {av} average - - name: ele_mt_uav - description: Elevation {u} in total watershed upstream of sub-basin pour point - {av} average - - name: ele_mt_smn - description: Elevation {s} in sub-basin {mn} minimum - - name: ele_mt_smx - description: Elevation {s} in sub-basin {mx} maximum - - name: slp_dg_sav - description: Terrain Slope {s} in sub-basin {av} average - - name: slp_dg_uav - description: Terrain Slope {u} in total watershed upstream of sub-basin pour - point {av} average - - name: sgr_dk_sav - description: Stream Gradient {s} in sub-basin {av} average - - name: clz_cl_smj - description: Climate Zones {s} in sub-basin {mj} spatial majority - - name: cls_cl_smj - description: Climate Strata {s} in sub-basin {mj} spatial majority - - name: tmp_dc_syr - description: Air Temperature {s} in sub-basin {yr} annual average - - name: tmp_dc_uyr - description: Air Temperature {u} in total watershed upstream of sub-basin - pour point {yr} annual average - - name: tmp_dc_smn - description: Air Temperature {s} in sub-basin {mn} annual minimum - - name: tmp_dc_smx - description: Air Temperature {s} in sub-basin {mx} annual maximum - - name: tmp_dc_s01 - description: Air Temperature {s} in sub-basin {01} monthly average - - name: tmp_dc_s02 - description: Air Temperature {s} in sub-basin {02} monthly average - - name: tmp_dc_s03 - description: Air Temperature {s} in sub-basin {03} monthly average - - name: tmp_dc_s04 - description: Air Temperature {s} in sub-basin {04} monthly average - - name: tmp_dc_s05 - description: Air Temperature {s} in sub-basin {05} monthly average - - name: tmp_dc_s06 - description: Air Temperature {s} in sub-basin {06} monthly average - - name: tmp_dc_s07 - description: Air Temperature {s} in sub-basin {07} monthly average - - name: tmp_dc_s08 - description: Air Temperature {s} in sub-basin {08} monthly average - - name: tmp_dc_s09 - description: Air Temperature {s} in sub-basin {09} monthly average - - name: tmp_dc_s10 - description: Air Temperature {s} in sub-basin {10} monthly average - - name: tmp_dc_s11 - description: Air Temperature {s} in sub-basin {11} monthly average - - name: tmp_dc_s12 - description: Air Temperature {s} in sub-basin {12} monthly average - - name: pre_mm_syr - description: Precipitation {s} in sub-basin {yr} annual average - - name: pre_mm_uyr - description: Precipitation {u} in total watershed upstream of sub-basin pour - point {yr} annual average - - name: pre_mm_s01 - description: Precipitation {s} in sub-basin {01} monthly average - - name: pre_mm_s02 - description: Precipitation {s} in sub-basin {02} monthly average - - name: pre_mm_s03 - description: Precipitation {s} in sub-basin {03} monthly average - - name: pre_mm_s04 - description: Precipitation {s} in sub-basin {04} monthly average - - name: pre_mm_s05 - description: Precipitation {s} in sub-basin {05} monthly average - - name: pre_mm_s06 - description: Precipitation {s} in sub-basin {06} monthly average - - name: pre_mm_s07 - description: Precipitation {s} in sub-basin {07} monthly average - - name: pre_mm_s08 - description: Precipitation {s} in sub-basin {08} monthly average - - name: pre_mm_s09 - description: Precipitation {s} in sub-basin {09} monthly average - - name: pre_mm_s10 - description: Precipitation {s} in sub-basin {10} monthly average - - name: pre_mm_s11 - description: Precipitation {s} in sub-basin {11} monthly average - - name: pre_mm_s12 - description: Precipitation {s} in sub-basin {12} monthly average - - name: pet_mm_syr - description: Potential Evapotranspiration {s} in sub-basin {yr} annual average - - name: pet_mm_uyr - description: Potential Evapotranspiration {u} in total watershed upstream - of sub-basin pour point {yr} annual average - - name: pet_mm_s01 - description: Potential Evapotranspiration {s} in sub-basin {01} monthly average - - name: pet_mm_s02 - description: Potential Evapotranspiration {s} in sub-basin {02} monthly average - - name: pet_mm_s03 - description: Potential Evapotranspiration {s} in sub-basin {03} monthly average - - name: pet_mm_s04 - description: Potential Evapotranspiration {s} in sub-basin {04} monthly average - - name: pet_mm_s05 - description: Potential Evapotranspiration {s} in sub-basin {05} monthly average - - name: pet_mm_s06 - description: Potential Evapotranspiration {s} in sub-basin {06} monthly average - - name: pet_mm_s07 - description: Potential Evapotranspiration {s} in sub-basin {07} monthly average - - name: pet_mm_s08 - description: Potential Evapotranspiration {s} in sub-basin {08} monthly average - - name: pet_mm_s09 - description: Potential Evapotranspiration {s} in sub-basin {09} monthly average - - name: pet_mm_s10 - description: Potential Evapotranspiration {s} in sub-basin {10} monthly average - - name: pet_mm_s11 - description: Potential Evapotranspiration {s} in sub-basin {11} monthly average - - name: pet_mm_s12 - description: Potential Evapotranspiration {s} in sub-basin {12} monthly average - - name: aet_mm_syr - description: Actual Evapotranspiration {s} in sub-basin {yr} annual average - - name: aet_mm_uyr - description: Actual Evapotranspiration {u} in total watershed upstream of - sub-basin pour point {yr} annual average - - name: aet_mm_s01 - description: Actual Evapotranspiration {s} in sub-basin {01} monthly average - - name: aet_mm_s02 - description: Actual Evapotranspiration {s} in sub-basin {02} monthly average - - name: aet_mm_s03 - description: Actual Evapotranspiration {s} in sub-basin {03} monthly average - - name: aet_mm_s04 - description: Actual Evapotranspiration {s} in sub-basin {04} monthly average - - name: aet_mm_s05 - description: Actual Evapotranspiration {s} in sub-basin {05} monthly average - - name: aet_mm_s06 - description: Actual Evapotranspiration {s} in sub-basin {06} monthly average - - name: aet_mm_s07 - description: Actual Evapotranspiration {s} in sub-basin {07} monthly average - - name: aet_mm_s08 - description: Actual Evapotranspiration {s} in sub-basin {08} monthly average - - name: aet_mm_s09 - description: Actual Evapotranspiration {s} in sub-basin {09} monthly average - - name: aet_mm_s10 - description: Actual Evapotranspiration {s} in sub-basin {10} monthly average - - name: aet_mm_s11 - description: Actual Evapotranspiration {s} in sub-basin {11} monthly average - - name: aet_mm_s12 - description: Actual Evapotranspiration {s} in sub-basin {12} monthly average - - name: ari_ix_sav - description: Global Aridity Index {s} in sub-basin {av} average - - name: ari_ix_uav - description: Global Aridity Index {u} in total watershed upstream of sub-basin - pour point {av} average - - name: cmi_ix_syr - description: Climate Moisture Index {s} in sub-basin {yr} annual average - - name: cmi_ix_uyr - description: Climate Moisture Index {u} in total watershed upstream of sub-basin - pour point {yr} annual average - - name: cmi_ix_s01 - description: Climate Moisture Index {s} in sub-basin {01} monthly average - - name: cmi_ix_s02 - description: Climate Moisture Index {s} in sub-basin {02} monthly average - - name: cmi_ix_s03 - description: Climate Moisture Index {s} in sub-basin {03} monthly average - - name: cmi_ix_s04 - description: Climate Moisture Index {s} in sub-basin {04} monthly average - - name: cmi_ix_s05 - description: Climate Moisture Index {s} in sub-basin {05} monthly average - - name: cmi_ix_s06 - description: Climate Moisture Index {s} in sub-basin {06} monthly average - - name: cmi_ix_s07 - description: Climate Moisture Index {s} in sub-basin {07} monthly average - - name: cmi_ix_s08 - description: Climate Moisture Index {s} in sub-basin {08} monthly average - - name: cmi_ix_s09 - description: Climate Moisture Index {s} in sub-basin {09} monthly average - - name: cmi_ix_s10 - description: Climate Moisture Index {s} in sub-basin {10} monthly average - - name: cmi_ix_s11 - description: Climate Moisture Index {s} in sub-basin {11} monthly average - - name: cmi_ix_s12 - description: Climate Moisture Index {s} in sub-basin {12} monthly average - - name: snw_pc_syr - description: Snow Cover Extent {s} in sub-basin {yr} annual average - - name: snw_pc_uyr - description: Snow Cover Extent {u} in total watershed upstream of sub-basin - pour point {yr} annual average - - name: snw_pc_smx - description: Snow Cover Extent {s} in sub-basin {mx} annual maximum - - name: snw_pc_s01 - description: Snow Cover Extent {s} in sub-basin {01} monthly average - - name: snw_pc_s02 - description: Snow Cover Extent {s} in sub-basin {02} monthly average - - name: snw_pc_s03 - description: Snow Cover Extent {s} in sub-basin {03} monthly average - - name: snw_pc_s04 - description: Snow Cover Extent {s} in sub-basin {04} monthly average - - name: snw_pc_s05 - description: Snow Cover Extent {s} in sub-basin {05} monthly average - - name: snw_pc_s06 - description: Snow Cover Extent {s} in sub-basin {06} monthly average - - name: snw_pc_s07 - description: Snow Cover Extent {s} in sub-basin {07} monthly average - - name: snw_pc_s08 - description: Snow Cover Extent {s} in sub-basin {08} monthly average - - name: snw_pc_s09 - description: Snow Cover Extent {s} in sub-basin {09} monthly average - - name: snw_pc_s10 - description: Snow Cover Extent {s} in sub-basin {10} monthly average - - name: snw_pc_s11 - description: Snow Cover Extent {s} in sub-basin {11} monthly average - - name: snw_pc_s12 - description: Snow Cover Extent {s} in sub-basin {12} monthly average - - name: glc_cl_smj - description: Land Cover Classes {s} in sub-basin {mj} spatial majority - - name: glc_pc_s01 - description: Land Cover Extent {s} in sub-basin {01} spatial extent (%) by - class - - name: glc_pc_s02 - description: Land Cover Extent {s} in sub-basin {02} spatial extent (%) by - class - - name: glc_pc_s03 - description: Land Cover Extent {s} in sub-basin {03} spatial extent (%) by - class - - name: glc_pc_s04 - description: Land Cover Extent {s} in sub-basin {04} spatial extent (%) by - class - - name: glc_pc_s05 - description: Land Cover Extent {s} in sub-basin {05} spatial extent (%) by - class - - name: glc_pc_s06 - description: Land Cover Extent {s} in sub-basin {06} spatial extent (%) by - class - - name: glc_pc_s07 - description: Land Cover Extent {s} in sub-basin {07} spatial extent (%) by - class - - name: glc_pc_s08 - description: Land Cover Extent {s} in sub-basin {08} spatial extent (%) by - class - - name: glc_pc_s09 - description: Land Cover Extent {s} in sub-basin {09} spatial extent (%) by - class - - name: glc_pc_s10 - description: Land Cover Extent {s} in sub-basin {10} spatial extent (%) by - class - - name: glc_pc_s11 - description: Land Cover Extent {s} in sub-basin {11} spatial extent (%) by - class - - name: glc_pc_s12 - description: Land Cover Extent {s} in sub-basin {12} spatial extent (%) by - class - - name: glc_pc_s13 - description: Land Cover Extent {s} in sub-basin {13} spatial extent (%) by - class - - name: glc_pc_s14 - description: Land Cover Extent {s} in sub-basin {14} spatial extent (%) by - class - - name: glc_pc_s15 - description: Land Cover Extent {s} in sub-basin {15} spatial extent (%) by - class - - name: glc_pc_s16 - description: Land Cover Extent {s} in sub-basin {16} spatial extent (%) by - class - - name: glc_pc_s17 - description: Land Cover Extent {s} in sub-basin {17} spatial extent (%) by - class - - name: glc_pc_s18 - description: Land Cover Extent {s} in sub-basin {18} spatial extent (%) by - class - - name: glc_pc_s19 - description: Land Cover Extent {s} in sub-basin {19} spatial extent (%) by - class - - name: glc_pc_s20 - description: Land Cover Extent {s} in sub-basin {20} spatial extent (%) by - class - - name: glc_pc_s21 - description: Land Cover Extent {s} in sub-basin {21} spatial extent (%) by - class - - name: glc_pc_s22 - description: Land Cover Extent {s} in sub-basin {22} spatial extent (%) by - class - - name: glc_pc_u01 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {01} spatial extent (%) by class - - name: glc_pc_u02 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {02} spatial extent (%) by class - - name: glc_pc_u03 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {03} spatial extent (%) by class - - name: glc_pc_u04 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {04} spatial extent (%) by class - - name: glc_pc_u05 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {05} spatial extent (%) by class - - name: glc_pc_u06 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {06} spatial extent (%) by class - - name: glc_pc_u07 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {07} spatial extent (%) by class - - name: glc_pc_u08 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {08} spatial extent (%) by class - - name: glc_pc_u09 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {09} spatial extent (%) by class - - name: glc_pc_u10 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {10} spatial extent (%) by class - - name: glc_pc_u11 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {11} spatial extent (%) by class - - name: glc_pc_u12 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {12} spatial extent (%) by class - - name: glc_pc_u13 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {13} spatial extent (%) by class - - name: glc_pc_u14 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {14} spatial extent (%) by class - - name: glc_pc_u15 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {15} spatial extent (%) by class - - name: glc_pc_u16 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {16} spatial extent (%) by class - - name: glc_pc_u17 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {17} spatial extent (%) by class - - name: glc_pc_u18 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {18} spatial extent (%) by class - - name: glc_pc_u19 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {19} spatial extent (%) by class - - name: glc_pc_u20 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {20} spatial extent (%) by class - - name: glc_pc_u21 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {21} spatial extent (%) by class - - name: glc_pc_u22 - description: Land Cover Extent {u} in total watershed upstream of sub-basin - pour point {22} spatial extent (%) by class - - name: pnv_cl_smj - description: Potential Natural Vegetation Classes {s} in sub-basin {mj} spatial - majority - - name: pnv_pc_s01 - description: Potential Natural Vegetation Extent {s} in sub-basin {01} spatial - extent (%) by class - - name: pnv_pc_s02 - description: Potential Natural Vegetation Extent {s} in sub-basin {02} spatial - extent (%) by class - - name: pnv_pc_s03 - description: Potential Natural Vegetation Extent {s} in sub-basin {03} spatial - extent (%) by class - - name: pnv_pc_s04 - description: Potential Natural Vegetation Extent {s} in sub-basin {04} spatial - extent (%) by class - - name: pnv_pc_s05 - description: Potential Natural Vegetation Extent {s} in sub-basin {05} spatial - extent (%) by class - - name: pnv_pc_s06 - description: Potential Natural Vegetation Extent {s} in sub-basin {06} spatial - extent (%) by class - - name: pnv_pc_s07 - description: Potential Natural Vegetation Extent {s} in sub-basin {07} spatial - extent (%) by class - - name: pnv_pc_s08 - description: Potential Natural Vegetation Extent {s} in sub-basin {08} spatial - extent (%) by class - - name: pnv_pc_s09 - description: Potential Natural Vegetation Extent {s} in sub-basin {09} spatial - extent (%) by class - - name: pnv_pc_s10 - description: Potential Natural Vegetation Extent {s} in sub-basin {10} spatial - extent (%) by class - - name: pnv_pc_s11 - description: Potential Natural Vegetation Extent {s} in sub-basin {11} spatial - extent (%) by class - - name: pnv_pc_s12 - description: Potential Natural Vegetation Extent {s} in sub-basin {12} spatial - extent (%) by class - - name: pnv_pc_s13 - description: Potential Natural Vegetation Extent {s} in sub-basin {13} spatial - extent (%) by class - - name: pnv_pc_s14 - description: Potential Natural Vegetation Extent {s} in sub-basin {14} spatial - extent (%) by class - - name: pnv_pc_s15 - description: Potential Natural Vegetation Extent {s} in sub-basin {15} spatial - extent (%) by class - - name: pnv_pc_u01 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {01} spatial extent (%) by class - - name: pnv_pc_u02 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {02} spatial extent (%) by class - - name: pnv_pc_u03 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {03} spatial extent (%) by class - - name: pnv_pc_u04 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {04} spatial extent (%) by class - - name: pnv_pc_u05 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {05} spatial extent (%) by class - - name: pnv_pc_u06 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {06} spatial extent (%) by class - - name: pnv_pc_u07 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {07} spatial extent (%) by class - - name: pnv_pc_u08 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {08} spatial extent (%) by class - - name: pnv_pc_u09 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {09} spatial extent (%) by class - - name: pnv_pc_u10 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {10} spatial extent (%) by class - - name: pnv_pc_u11 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {11} spatial extent (%) by class - - name: pnv_pc_u12 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {12} spatial extent (%) by class - - name: pnv_pc_u13 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {13} spatial extent (%) by class - - name: pnv_pc_u14 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {14} spatial extent (%) by class - - name: pnv_pc_u15 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of sub-basin pour point {15} spatial extent (%) by class - - name: wet_cl_smj - description: Wetland Classes {s} in sub-basin {mj} spatial majority - - name: wet_pc_sg1 - description: vazio - - name: wet_pc_ug1 - description: vazio - - name: wet_pc_sg2 - description: vazio - - name: wet_pc_ug2 - description: vazio - - name: wet_pc_s01 - description: Wetland Extent {s} in sub-basin {01} spatial extent (%) by class - - name: wet_pc_s02 - description: Wetland Extent {s} in sub-basin {02} spatial extent (%) by class - - name: wet_pc_s03 - description: Wetland Extent {s} in sub-basin {03} spatial extent (%) by class - - name: wet_pc_s04 - description: Wetland Extent {s} in sub-basin {04} spatial extent (%) by class - - name: wet_pc_s05 - description: Wetland Extent {s} in sub-basin {05} spatial extent (%) by class - - name: wet_pc_s06 - description: Wetland Extent {s} in sub-basin {06} spatial extent (%) by class - - name: wet_pc_s07 - description: Wetland Extent {s} in sub-basin {07} spatial extent (%) by class - - name: wet_pc_s08 - description: Wetland Extent {s} in sub-basin {08} spatial extent (%) by class - - name: wet_pc_s09 - description: Wetland Extent {s} in sub-basin {09} spatial extent (%) by class - - name: wet_pc_u01 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {01} spatial extent (%) by class - - name: wet_pc_u02 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {02} spatial extent (%) by class - - name: wet_pc_u03 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {03} spatial extent (%) by class - - name: wet_pc_u04 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {04} spatial extent (%) by class - - name: wet_pc_u05 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {05} spatial extent (%) by class - - name: wet_pc_u06 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {06} spatial extent (%) by class - - name: wet_pc_u07 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {07} spatial extent (%) by class - - name: wet_pc_u08 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {08} spatial extent (%) by class - - name: wet_pc_u09 - description: Wetland Extent {u} in total watershed upstream of sub-basin pour - point {09} spatial extent (%) by class - - name: for_pc_sse - description: Forest Cover Extent {s} in sub-basin {se} spatial extent (%) - - name: for_pc_use - description: Forest Cover Extent {u} in total watershed upstream of sub-basin - pour point {se} spatial extent (%) - - name: crp_pc_sse - description: Cropland Extent {s} in sub-basin {se} spatial extent (%) - - name: crp_pc_use - description: Cropland Extent {u} in total watershed upstream of sub-basin - pour point {se} spatial extent (%) - - name: pst_pc_sse - description: Pasture Extent {s} in sub-basin {se} spatial extent (%) - - name: pst_pc_use - description: Pasture Extent {u} in total watershed upstream of sub-basin pour - point {se} spatial extent (%) - - name: ire_pc_sse - description: Irrigated Area Extent (Equipped) {s} in sub-basin {se} spatial - extent (%) - - name: ire_pc_use - description: Irrigated Area Extent (Equipped) {u} in total watershed upstream - of sub-basin pour point {se} spatial extent (%) - - name: gla_pc_sse - description: Glacier Extent {s} in sub-basin {se} spatial extent (%) - - name: gla_pc_use - description: Glacier Extent {u} in total watershed upstream of sub-basin pour - point {se} spatial extent (%) - - name: prm_pc_sse - description: Permafrost Extent {s} in sub-basin {se} spatial extent (%) - - name: prm_pc_use - description: Permafrost Extent {u} in total watershed upstream of sub-basin - pour point {se} spatial extent (%) - - name: pac_pc_sse - description: Protected Area Extent {s} in sub-basin {se} spatial extent (%) - - name: pac_pc_use - description: Protected Area Extent {u} in total watershed upstream of sub-basin - pour point {se} spatial extent (%) - - name: tbi_cl_smj - description: Terrestrial Biomes {s} in sub-basin {mj} spatial majority - - name: tec_cl_smj - description: Terrestrial Ecoregions {s} in sub-basin {mj} spatial majority - - name: fmh_cl_smj - description: Freshwater Major Habitat Types {s} in sub-basin {mj} spatial - majority - - name: fec_cl_smj - description: Freshwater Ecoregions {s} in sub-basin {mj} spatial majority - - name: cly_pc_sav - description: Clay Fraction in Soil {s} in sub-basin {av} average - - name: cly_pc_uav - description: Clay Fraction in Soil {u} in total watershed upstream of sub-basin - pour point {av} average - - name: slt_pc_sav - description: Silt Fraction in Soil {s} in sub-basin {av} average - - name: slt_pc_uav - description: Silt Fraction in Soil {u} in total watershed upstream of sub-basin - pour point {av} average - - name: snd_pc_sav - description: Sand Fraction in Soil {s} in sub-basin {av} average - - name: snd_pc_uav - description: Sand Fraction in Soil {u} in total watershed upstream of sub-basin - pour point {av} average - - name: soc_th_sav - description: Organic Carbon Content in Soil {s} in sub-basin {av} average - - name: soc_th_uav - description: Organic Carbon Content in Soil {u} in total watershed upstream - of sub-basin pour point {av} average - - name: swc_pc_syr - description: Soil Water Content {s} in sub-basin {yr} annual average - - name: swc_pc_uyr - description: Soil Water Content {u} in total watershed upstream of sub-basin - pour point {yr} annual average - - name: swc_pc_s01 - description: Soil Water Content {s} in sub-basin {01} monthly average - - name: swc_pc_s02 - description: Soil Water Content {s} in sub-basin {02} monthly average - - name: swc_pc_s03 - description: Soil Water Content {s} in sub-basin {03} monthly average - - name: swc_pc_s04 - description: Soil Water Content {s} in sub-basin {04} monthly average - - name: swc_pc_s05 - description: Soil Water Content {s} in sub-basin {05} monthly average - - name: swc_pc_s06 - description: Soil Water Content {s} in sub-basin {06} monthly average - - name: swc_pc_s07 - description: Soil Water Content {s} in sub-basin {07} monthly average - - name: swc_pc_s08 - description: Soil Water Content {s} in sub-basin {08} monthly average - - name: swc_pc_s09 - description: Soil Water Content {s} in sub-basin {09} monthly average - - name: swc_pc_s10 - description: Soil Water Content {s} in sub-basin {10} monthly average - - name: swc_pc_s11 - description: Soil Water Content {s} in sub-basin {11} monthly average - - name: swc_pc_s12 - description: Soil Water Content {s} in sub-basin {12} monthly average - - name: lit_cl_smj - description: Lithological Classes {s} in sub-basin {mj} spatial majority - - name: kar_pc_sse - description: Karst Area Extent {s} in sub-basin {se} spatial extent (%) - - name: kar_pc_use - description: Karst Area Extent {u} in total watershed upstream of sub-basin - pour point {se} spatial extent (%) - - name: ero_kh_sav - description: Soil Erosion {s} in sub-basin {av} average - - name: ero_kh_uav - description: Soil Erosion {u} in total watershed upstream of sub-basin pour - point {av} average - - name: pop_ct_ssu - description: Population Count {s} in sub-basin {su} sum - - name: pop_ct_usu - description: Population Count {u} in total watershed upstream of sub-basin - pour point {su} sum - - name: ppd_pk_sav - description: Population Density {s} in sub-basin {av} average - - name: ppd_pk_uav - description: Population Density {u} in total watershed upstream of sub-basin - pour point {av} average - - name: urb_pc_sse - description: vazio - - name: urb_pc_use - description: Urban Extent {u} in total watershed upstream of reach pour point - {se} spatial extent (%) - - name: nli_ix_sav - description: Nighttime Lights {s} in sub-basin {av} average - - name: nli_ix_uav - description: Nighttime Lights {u} in total watershed upstream of sub-basin - pour point {av} average - - name: rdd_mk_sav - description: Road Density {s} in sub-basin {av} average - - name: rdd_mk_uav - description: Road Density {u} in total watershed upstream of sub-basin pour - point {av} average - - name: hft_ix_s93 - description: Human Footprint {s} in sub-basin {93} year 1993 - - name: hft_ix_u93 - description: Human Footprint {u} in total watershed upstream of sub-basin - pour point {93} year 1993 - - name: hft_ix_s09 - description: Human Footprint {s} in sub-basin {09} year 2009 - - name: hft_ix_u09 - description: Human Footprint {u} in total watershed upstream of sub-basin - pour point {09} year 2009 - - name: gad_id_smj - description: Global Administrative Areas {s} in sub-basin {mj} spatial majority - - name: gdp_ud_sav - description: Gross Domestic Product {s} in sub-basin {av} average - - name: gdp_ud_ssu - description: Gross Domestic Product {s} in sub-basin {su} sum - - name: gdp_ud_usu - description: vazio - - name: hdi_ix_sav - description: Human Development Index {s} in sub-basin {av} average - - name: geometry - description: "The polygon data sets of HydroBASINS are distributed in ESRI\ - \ ‘shapefile’ format (ESRI 1998).\nEach HydroBASINS shapefile consists\ - \ of five main files (.dbf, .sbn, .sbx, .shp, .shx).\nAdditionally, basic\ - \ metadata information is provided in XML format (.xml). Projection\n\ - information is provided in an ASCII text file (.prj). All shapefiles are\ - \ in geographic\n(latitude/longitude) projection, referenced to datum\ - \ WGS84" + description: HydroBASINS represents a series of vectorized polygon layers that depict sub-basin boundaries at a global scale + columns: + - name: hybas_id + description: Unique basin identifier. The code consists of 10 digits + - name: next_down + description: Hybas_id of the next downstream polygon. This field can be used + for navigation (up- and downstream) within the river network + - name: next_sink + description: Hybas_id of the next downstream sink + - name: main_bas + description: 'Hybas_id of the most downstream sink, i.e. the outlet of the + main river basin. ' + - name: dist_sink + description: Distance from polygon outlet to the next downstream sink along + the river network,in kilometers. + - name: dist_main + description: Distance from polygon outlet to the most downstream sink, i.e. + the outlet of the main river basin along the river network, in kilometers. + - name: sub_area + description: Area of the individual polygon (i.e. sub-basin), in square kilometers. + - name: up_area + description: Total upstream area, in square kilometers, calculated from the + headwaters to the polygon location (including the polygon) + - name: pfaf_id + description: The Pfafstetter code + - name: endo + description: Indicator for endorheic (inland) basins without surface flow + connection to the ocean + - name: coast + description: Indicator for lumped coastal basins. Coastal basins represent + conglomerates of small coastal watersheds that drain into the ocean between + larger river basins + - name: order + description: Indicator of river order (classical ordering system) + - name: sort + description: Indicator showing the record number (sequence) in which the original + polygons are stored in the shapefile (i.e. counting upwards from 1 in + the original shapefile) + - name: dis_m3_pyr + description: Natural Discharge {p} at sub-basin pour point {yr} annual average + - name: dis_m3_pmn + description: Natural Discharge {p} at sub-basin pour point {mn} annual minimum + - name: dis_m3_pmx + description: Natural Discharge {p} at sub-basin pour point {mx} annual maximum + - name: run_mm_syr + description: Land Surface Runoff {s} in sub-basin {yr} annual average + - name: inu_pc_smn + description: Inundation Extent {s} in sub-basin {mn} annual minimum + - name: inu_pc_umn + description: Inundation Extent {u} in total watershed upstream of sub-basin + pour point {mn} annual minimum + - name: inu_pc_smx + description: Inundation Extent {s} in sub-basin {mx} annual maximum + - name: inu_pc_umx + description: Inundation Extent {u} in total watershed upstream of sub-basin + pour point {mx} annual maximum + - name: inu_pc_slt + description: Inundation Extent {s} in sub-basin {lt} long-term maximum + - name: inu_pc_ult + description: Inundation Extent {u} in total watershed upstream of sub-basin + pour point {lt} long-term maximum + - name: lka_pc_sse + description: Limnicity (Percent Lake Area) {s} in sub-basin {se} spatial extent + (%) + - name: lka_pc_use + description: Limnicity (Percent Lake Area) {u} in total watershed upstream + of sub-basin pour point {se} spatial extent (%) + - name: lkv_mc_usu + description: Lake Volume {u} in total watershed upstream of sub-basin pour + point {su} sum + - name: rev_mc_usu + description: Reservoir Volume {u} in total watershed upstream of sub-basin + pour point {su} sum + - name: dor_pc_pva + description: Degree of Regulation {p} at sub-basin pour point {va} value + - name: ria_ha_ssu + description: River Area {s} in sub-basin {su} sum + - name: ria_ha_usu + description: River Area {u} in total watershed upstream of sub-basin pour + point {su} sum + - name: riv_tc_ssu + description: River Volume {s} in sub-basin {su} sum + - name: riv_tc_usu + description: River Volume {u} in total watershed upstream of sub-basin pour + point {su} sum + - name: gwt_cm_sav + description: Groundwater Table Depth {s} in sub-basin {av} average + - name: ele_mt_sav + description: Elevation {s} in sub-basin {av} average + - name: ele_mt_uav + description: Elevation {u} in total watershed upstream of sub-basin pour point + {av} average + - name: ele_mt_smn + description: Elevation {s} in sub-basin {mn} minimum + - name: ele_mt_smx + description: Elevation {s} in sub-basin {mx} maximum + - name: slp_dg_sav + description: Terrain Slope {s} in sub-basin {av} average + - name: slp_dg_uav + description: Terrain Slope {u} in total watershed upstream of sub-basin pour + point {av} average + - name: sgr_dk_sav + description: Stream Gradient {s} in sub-basin {av} average + - name: clz_cl_smj + description: Climate Zones {s} in sub-basin {mj} spatial majority + - name: cls_cl_smj + description: Climate Strata {s} in sub-basin {mj} spatial majority + - name: tmp_dc_syr + description: Air Temperature {s} in sub-basin {yr} annual average + - name: tmp_dc_uyr + description: Air Temperature {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: tmp_dc_smn + description: Air Temperature {s} in sub-basin {mn} annual minimum + - name: tmp_dc_smx + description: Air Temperature {s} in sub-basin {mx} annual maximum + - name: tmp_dc_s01 + description: Air Temperature {s} in sub-basin {01} monthly average + - name: tmp_dc_s02 + description: Air Temperature {s} in sub-basin {02} monthly average + - name: tmp_dc_s03 + description: Air Temperature {s} in sub-basin {03} monthly average + - name: tmp_dc_s04 + description: Air Temperature {s} in sub-basin {04} monthly average + - name: tmp_dc_s05 + description: Air Temperature {s} in sub-basin {05} monthly average + - name: tmp_dc_s06 + description: Air Temperature {s} in sub-basin {06} monthly average + - name: tmp_dc_s07 + description: Air Temperature {s} in sub-basin {07} monthly average + - name: tmp_dc_s08 + description: Air Temperature {s} in sub-basin {08} monthly average + - name: tmp_dc_s09 + description: Air Temperature {s} in sub-basin {09} monthly average + - name: tmp_dc_s10 + description: Air Temperature {s} in sub-basin {10} monthly average + - name: tmp_dc_s11 + description: Air Temperature {s} in sub-basin {11} monthly average + - name: tmp_dc_s12 + description: Air Temperature {s} in sub-basin {12} monthly average + - name: pre_mm_syr + description: Precipitation {s} in sub-basin {yr} annual average + - name: pre_mm_uyr + description: Precipitation {u} in total watershed upstream of sub-basin pour + point {yr} annual average + - name: pre_mm_s01 + description: Precipitation {s} in sub-basin {01} monthly average + - name: pre_mm_s02 + description: Precipitation {s} in sub-basin {02} monthly average + - name: pre_mm_s03 + description: Precipitation {s} in sub-basin {03} monthly average + - name: pre_mm_s04 + description: Precipitation {s} in sub-basin {04} monthly average + - name: pre_mm_s05 + description: Precipitation {s} in sub-basin {05} monthly average + - name: pre_mm_s06 + description: Precipitation {s} in sub-basin {06} monthly average + - name: pre_mm_s07 + description: Precipitation {s} in sub-basin {07} monthly average + - name: pre_mm_s08 + description: Precipitation {s} in sub-basin {08} monthly average + - name: pre_mm_s09 + description: Precipitation {s} in sub-basin {09} monthly average + - name: pre_mm_s10 + description: Precipitation {s} in sub-basin {10} monthly average + - name: pre_mm_s11 + description: Precipitation {s} in sub-basin {11} monthly average + - name: pre_mm_s12 + description: Precipitation {s} in sub-basin {12} monthly average + - name: pet_mm_syr + description: Potential Evapotranspiration {s} in sub-basin {yr} annual average + - name: pet_mm_uyr + description: Potential Evapotranspiration {u} in total watershed upstream + of sub-basin pour point {yr} annual average + - name: pet_mm_s01 + description: Potential Evapotranspiration {s} in sub-basin {01} monthly average + - name: pet_mm_s02 + description: Potential Evapotranspiration {s} in sub-basin {02} monthly average + - name: pet_mm_s03 + description: Potential Evapotranspiration {s} in sub-basin {03} monthly average + - name: pet_mm_s04 + description: Potential Evapotranspiration {s} in sub-basin {04} monthly average + - name: pet_mm_s05 + description: Potential Evapotranspiration {s} in sub-basin {05} monthly average + - name: pet_mm_s06 + description: Potential Evapotranspiration {s} in sub-basin {06} monthly average + - name: pet_mm_s07 + description: Potential Evapotranspiration {s} in sub-basin {07} monthly average + - name: pet_mm_s08 + description: Potential Evapotranspiration {s} in sub-basin {08} monthly average + - name: pet_mm_s09 + description: Potential Evapotranspiration {s} in sub-basin {09} monthly average + - name: pet_mm_s10 + description: Potential Evapotranspiration {s} in sub-basin {10} monthly average + - name: pet_mm_s11 + description: Potential Evapotranspiration {s} in sub-basin {11} monthly average + - name: pet_mm_s12 + description: Potential Evapotranspiration {s} in sub-basin {12} monthly average + - name: aet_mm_syr + description: Actual Evapotranspiration {s} in sub-basin {yr} annual average + - name: aet_mm_uyr + description: Actual Evapotranspiration {u} in total watershed upstream of + sub-basin pour point {yr} annual average + - name: aet_mm_s01 + description: Actual Evapotranspiration {s} in sub-basin {01} monthly average + - name: aet_mm_s02 + description: Actual Evapotranspiration {s} in sub-basin {02} monthly average + - name: aet_mm_s03 + description: Actual Evapotranspiration {s} in sub-basin {03} monthly average + - name: aet_mm_s04 + description: Actual Evapotranspiration {s} in sub-basin {04} monthly average + - name: aet_mm_s05 + description: Actual Evapotranspiration {s} in sub-basin {05} monthly average + - name: aet_mm_s06 + description: Actual Evapotranspiration {s} in sub-basin {06} monthly average + - name: aet_mm_s07 + description: Actual Evapotranspiration {s} in sub-basin {07} monthly average + - name: aet_mm_s08 + description: Actual Evapotranspiration {s} in sub-basin {08} monthly average + - name: aet_mm_s09 + description: Actual Evapotranspiration {s} in sub-basin {09} monthly average + - name: aet_mm_s10 + description: Actual Evapotranspiration {s} in sub-basin {10} monthly average + - name: aet_mm_s11 + description: Actual Evapotranspiration {s} in sub-basin {11} monthly average + - name: aet_mm_s12 + description: Actual Evapotranspiration {s} in sub-basin {12} monthly average + - name: ari_ix_sav + description: Global Aridity Index {s} in sub-basin {av} average + - name: ari_ix_uav + description: Global Aridity Index {u} in total watershed upstream of sub-basin + pour point {av} average + - name: cmi_ix_syr + description: Climate Moisture Index {s} in sub-basin {yr} annual average + - name: cmi_ix_uyr + description: Climate Moisture Index {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: cmi_ix_s01 + description: Climate Moisture Index {s} in sub-basin {01} monthly average + - name: cmi_ix_s02 + description: Climate Moisture Index {s} in sub-basin {02} monthly average + - name: cmi_ix_s03 + description: Climate Moisture Index {s} in sub-basin {03} monthly average + - name: cmi_ix_s04 + description: Climate Moisture Index {s} in sub-basin {04} monthly average + - name: cmi_ix_s05 + description: Climate Moisture Index {s} in sub-basin {05} monthly average + - name: cmi_ix_s06 + description: Climate Moisture Index {s} in sub-basin {06} monthly average + - name: cmi_ix_s07 + description: Climate Moisture Index {s} in sub-basin {07} monthly average + - name: cmi_ix_s08 + description: Climate Moisture Index {s} in sub-basin {08} monthly average + - name: cmi_ix_s09 + description: Climate Moisture Index {s} in sub-basin {09} monthly average + - name: cmi_ix_s10 + description: Climate Moisture Index {s} in sub-basin {10} monthly average + - name: cmi_ix_s11 + description: Climate Moisture Index {s} in sub-basin {11} monthly average + - name: cmi_ix_s12 + description: Climate Moisture Index {s} in sub-basin {12} monthly average + - name: snw_pc_syr + description: Snow Cover Extent {s} in sub-basin {yr} annual average + - name: snw_pc_uyr + description: Snow Cover Extent {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: snw_pc_smx + description: Snow Cover Extent {s} in sub-basin {mx} annual maximum + - name: snw_pc_s01 + description: Snow Cover Extent {s} in sub-basin {01} monthly average + - name: snw_pc_s02 + description: Snow Cover Extent {s} in sub-basin {02} monthly average + - name: snw_pc_s03 + description: Snow Cover Extent {s} in sub-basin {03} monthly average + - name: snw_pc_s04 + description: Snow Cover Extent {s} in sub-basin {04} monthly average + - name: snw_pc_s05 + description: Snow Cover Extent {s} in sub-basin {05} monthly average + - name: snw_pc_s06 + description: Snow Cover Extent {s} in sub-basin {06} monthly average + - name: snw_pc_s07 + description: Snow Cover Extent {s} in sub-basin {07} monthly average + - name: snw_pc_s08 + description: Snow Cover Extent {s} in sub-basin {08} monthly average + - name: snw_pc_s09 + description: Snow Cover Extent {s} in sub-basin {09} monthly average + - name: snw_pc_s10 + description: Snow Cover Extent {s} in sub-basin {10} monthly average + - name: snw_pc_s11 + description: Snow Cover Extent {s} in sub-basin {11} monthly average + - name: snw_pc_s12 + description: Snow Cover Extent {s} in sub-basin {12} monthly average + - name: glc_cl_smj + description: Land Cover Classes {s} in sub-basin {mj} spatial majority + - name: glc_pc_s01 + description: Land Cover Extent {s} in sub-basin {01} spatial extent (%) by + class + - name: glc_pc_s02 + description: Land Cover Extent {s} in sub-basin {02} spatial extent (%) by + class + - name: glc_pc_s03 + description: Land Cover Extent {s} in sub-basin {03} spatial extent (%) by + class + - name: glc_pc_s04 + description: Land Cover Extent {s} in sub-basin {04} spatial extent (%) by + class + - name: glc_pc_s05 + description: Land Cover Extent {s} in sub-basin {05} spatial extent (%) by + class + - name: glc_pc_s06 + description: Land Cover Extent {s} in sub-basin {06} spatial extent (%) by + class + - name: glc_pc_s07 + description: Land Cover Extent {s} in sub-basin {07} spatial extent (%) by + class + - name: glc_pc_s08 + description: Land Cover Extent {s} in sub-basin {08} spatial extent (%) by + class + - name: glc_pc_s09 + description: Land Cover Extent {s} in sub-basin {09} spatial extent (%) by + class + - name: glc_pc_s10 + description: Land Cover Extent {s} in sub-basin {10} spatial extent (%) by + class + - name: glc_pc_s11 + description: Land Cover Extent {s} in sub-basin {11} spatial extent (%) by + class + - name: glc_pc_s12 + description: Land Cover Extent {s} in sub-basin {12} spatial extent (%) by + class + - name: glc_pc_s13 + description: Land Cover Extent {s} in sub-basin {13} spatial extent (%) by + class + - name: glc_pc_s14 + description: Land Cover Extent {s} in sub-basin {14} spatial extent (%) by + class + - name: glc_pc_s15 + description: Land Cover Extent {s} in sub-basin {15} spatial extent (%) by + class + - name: glc_pc_s16 + description: Land Cover Extent {s} in sub-basin {16} spatial extent (%) by + class + - name: glc_pc_s17 + description: Land Cover Extent {s} in sub-basin {17} spatial extent (%) by + class + - name: glc_pc_s18 + description: Land Cover Extent {s} in sub-basin {18} spatial extent (%) by + class + - name: glc_pc_s19 + description: Land Cover Extent {s} in sub-basin {19} spatial extent (%) by + class + - name: glc_pc_s20 + description: Land Cover Extent {s} in sub-basin {20} spatial extent (%) by + class + - name: glc_pc_s21 + description: Land Cover Extent {s} in sub-basin {21} spatial extent (%) by + class + - name: glc_pc_s22 + description: Land Cover Extent {s} in sub-basin {22} spatial extent (%) by + class + - name: glc_pc_u01 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {01} spatial extent (%) by class + - name: glc_pc_u02 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {02} spatial extent (%) by class + - name: glc_pc_u03 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {03} spatial extent (%) by class + - name: glc_pc_u04 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {04} spatial extent (%) by class + - name: glc_pc_u05 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {05} spatial extent (%) by class + - name: glc_pc_u06 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {06} spatial extent (%) by class + - name: glc_pc_u07 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {07} spatial extent (%) by class + - name: glc_pc_u08 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {08} spatial extent (%) by class + - name: glc_pc_u09 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {09} spatial extent (%) by class + - name: glc_pc_u10 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {10} spatial extent (%) by class + - name: glc_pc_u11 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {11} spatial extent (%) by class + - name: glc_pc_u12 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {12} spatial extent (%) by class + - name: glc_pc_u13 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {13} spatial extent (%) by class + - name: glc_pc_u14 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {14} spatial extent (%) by class + - name: glc_pc_u15 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {15} spatial extent (%) by class + - name: glc_pc_u16 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {16} spatial extent (%) by class + - name: glc_pc_u17 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {17} spatial extent (%) by class + - name: glc_pc_u18 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {18} spatial extent (%) by class + - name: glc_pc_u19 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {19} spatial extent (%) by class + - name: glc_pc_u20 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {20} spatial extent (%) by class + - name: glc_pc_u21 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {21} spatial extent (%) by class + - name: glc_pc_u22 + description: Land Cover Extent {u} in total watershed upstream of sub-basin + pour point {22} spatial extent (%) by class + - name: pnv_cl_smj + description: Potential Natural Vegetation Classes {s} in sub-basin {mj} spatial + majority + - name: pnv_pc_s01 + description: Potential Natural Vegetation Extent {s} in sub-basin {01} spatial + extent (%) by class + - name: pnv_pc_s02 + description: Potential Natural Vegetation Extent {s} in sub-basin {02} spatial + extent (%) by class + - name: pnv_pc_s03 + description: Potential Natural Vegetation Extent {s} in sub-basin {03} spatial + extent (%) by class + - name: pnv_pc_s04 + description: Potential Natural Vegetation Extent {s} in sub-basin {04} spatial + extent (%) by class + - name: pnv_pc_s05 + description: Potential Natural Vegetation Extent {s} in sub-basin {05} spatial + extent (%) by class + - name: pnv_pc_s06 + description: Potential Natural Vegetation Extent {s} in sub-basin {06} spatial + extent (%) by class + - name: pnv_pc_s07 + description: Potential Natural Vegetation Extent {s} in sub-basin {07} spatial + extent (%) by class + - name: pnv_pc_s08 + description: Potential Natural Vegetation Extent {s} in sub-basin {08} spatial + extent (%) by class + - name: pnv_pc_s09 + description: Potential Natural Vegetation Extent {s} in sub-basin {09} spatial + extent (%) by class + - name: pnv_pc_s10 + description: Potential Natural Vegetation Extent {s} in sub-basin {10} spatial + extent (%) by class + - name: pnv_pc_s11 + description: Potential Natural Vegetation Extent {s} in sub-basin {11} spatial + extent (%) by class + - name: pnv_pc_s12 + description: Potential Natural Vegetation Extent {s} in sub-basin {12} spatial + extent (%) by class + - name: pnv_pc_s13 + description: Potential Natural Vegetation Extent {s} in sub-basin {13} spatial + extent (%) by class + - name: pnv_pc_s14 + description: Potential Natural Vegetation Extent {s} in sub-basin {14} spatial + extent (%) by class + - name: pnv_pc_s15 + description: Potential Natural Vegetation Extent {s} in sub-basin {15} spatial + extent (%) by class + - name: pnv_pc_u01 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {01} spatial extent (%) by class + - name: pnv_pc_u02 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {02} spatial extent (%) by class + - name: pnv_pc_u03 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {03} spatial extent (%) by class + - name: pnv_pc_u04 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {04} spatial extent (%) by class + - name: pnv_pc_u05 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {05} spatial extent (%) by class + - name: pnv_pc_u06 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {06} spatial extent (%) by class + - name: pnv_pc_u07 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {07} spatial extent (%) by class + - name: pnv_pc_u08 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {08} spatial extent (%) by class + - name: pnv_pc_u09 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {09} spatial extent (%) by class + - name: pnv_pc_u10 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {10} spatial extent (%) by class + - name: pnv_pc_u11 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {11} spatial extent (%) by class + - name: pnv_pc_u12 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {12} spatial extent (%) by class + - name: pnv_pc_u13 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {13} spatial extent (%) by class + - name: pnv_pc_u14 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {14} spatial extent (%) by class + - name: pnv_pc_u15 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of sub-basin pour point {15} spatial extent (%) by class + - name: wet_cl_smj + description: Wetland Classes {s} in sub-basin {mj} spatial majority + - name: wet_pc_sg1 + description: vazio + - name: wet_pc_ug1 + description: vazio + - name: wet_pc_sg2 + description: vazio + - name: wet_pc_ug2 + description: vazio + - name: wet_pc_s01 + description: Wetland Extent {s} in sub-basin {01} spatial extent (%) by class + - name: wet_pc_s02 + description: Wetland Extent {s} in sub-basin {02} spatial extent (%) by class + - name: wet_pc_s03 + description: Wetland Extent {s} in sub-basin {03} spatial extent (%) by class + - name: wet_pc_s04 + description: Wetland Extent {s} in sub-basin {04} spatial extent (%) by class + - name: wet_pc_s05 + description: Wetland Extent {s} in sub-basin {05} spatial extent (%) by class + - name: wet_pc_s06 + description: Wetland Extent {s} in sub-basin {06} spatial extent (%) by class + - name: wet_pc_s07 + description: Wetland Extent {s} in sub-basin {07} spatial extent (%) by class + - name: wet_pc_s08 + description: Wetland Extent {s} in sub-basin {08} spatial extent (%) by class + - name: wet_pc_s09 + description: Wetland Extent {s} in sub-basin {09} spatial extent (%) by class + - name: wet_pc_u01 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {01} spatial extent (%) by class + - name: wet_pc_u02 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {02} spatial extent (%) by class + - name: wet_pc_u03 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {03} spatial extent (%) by class + - name: wet_pc_u04 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {04} spatial extent (%) by class + - name: wet_pc_u05 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {05} spatial extent (%) by class + - name: wet_pc_u06 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {06} spatial extent (%) by class + - name: wet_pc_u07 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {07} spatial extent (%) by class + - name: wet_pc_u08 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {08} spatial extent (%) by class + - name: wet_pc_u09 + description: Wetland Extent {u} in total watershed upstream of sub-basin pour + point {09} spatial extent (%) by class + - name: for_pc_sse + description: Forest Cover Extent {s} in sub-basin {se} spatial extent (%) + - name: for_pc_use + description: Forest Cover Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: crp_pc_sse + description: Cropland Extent {s} in sub-basin {se} spatial extent (%) + - name: crp_pc_use + description: Cropland Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: pst_pc_sse + description: Pasture Extent {s} in sub-basin {se} spatial extent (%) + - name: pst_pc_use + description: Pasture Extent {u} in total watershed upstream of sub-basin pour + point {se} spatial extent (%) + - name: ire_pc_sse + description: Irrigated Area Extent (Equipped) {s} in sub-basin {se} spatial + extent (%) + - name: ire_pc_use + description: Irrigated Area Extent (Equipped) {u} in total watershed upstream + of sub-basin pour point {se} spatial extent (%) + - name: gla_pc_sse + description: Glacier Extent {s} in sub-basin {se} spatial extent (%) + - name: gla_pc_use + description: Glacier Extent {u} in total watershed upstream of sub-basin pour + point {se} spatial extent (%) + - name: prm_pc_sse + description: Permafrost Extent {s} in sub-basin {se} spatial extent (%) + - name: prm_pc_use + description: Permafrost Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: pac_pc_sse + description: Protected Area Extent {s} in sub-basin {se} spatial extent (%) + - name: pac_pc_use + description: Protected Area Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: tbi_cl_smj + description: Terrestrial Biomes {s} in sub-basin {mj} spatial majority + - name: tec_cl_smj + description: Terrestrial Ecoregions {s} in sub-basin {mj} spatial majority + - name: fmh_cl_smj + description: Freshwater Major Habitat Types {s} in sub-basin {mj} spatial + majority + - name: fec_cl_smj + description: Freshwater Ecoregions {s} in sub-basin {mj} spatial majority + - name: cly_pc_sav + description: Clay Fraction in Soil {s} in sub-basin {av} average + - name: cly_pc_uav + description: Clay Fraction in Soil {u} in total watershed upstream of sub-basin + pour point {av} average + - name: slt_pc_sav + description: Silt Fraction in Soil {s} in sub-basin {av} average + - name: slt_pc_uav + description: Silt Fraction in Soil {u} in total watershed upstream of sub-basin + pour point {av} average + - name: snd_pc_sav + description: Sand Fraction in Soil {s} in sub-basin {av} average + - name: snd_pc_uav + description: Sand Fraction in Soil {u} in total watershed upstream of sub-basin + pour point {av} average + - name: soc_th_sav + description: Organic Carbon Content in Soil {s} in sub-basin {av} average + - name: soc_th_uav + description: Organic Carbon Content in Soil {u} in total watershed upstream + of sub-basin pour point {av} average + - name: swc_pc_syr + description: Soil Water Content {s} in sub-basin {yr} annual average + - name: swc_pc_uyr + description: Soil Water Content {u} in total watershed upstream of sub-basin + pour point {yr} annual average + - name: swc_pc_s01 + description: Soil Water Content {s} in sub-basin {01} monthly average + - name: swc_pc_s02 + description: Soil Water Content {s} in sub-basin {02} monthly average + - name: swc_pc_s03 + description: Soil Water Content {s} in sub-basin {03} monthly average + - name: swc_pc_s04 + description: Soil Water Content {s} in sub-basin {04} monthly average + - name: swc_pc_s05 + description: Soil Water Content {s} in sub-basin {05} monthly average + - name: swc_pc_s06 + description: Soil Water Content {s} in sub-basin {06} monthly average + - name: swc_pc_s07 + description: Soil Water Content {s} in sub-basin {07} monthly average + - name: swc_pc_s08 + description: Soil Water Content {s} in sub-basin {08} monthly average + - name: swc_pc_s09 + description: Soil Water Content {s} in sub-basin {09} monthly average + - name: swc_pc_s10 + description: Soil Water Content {s} in sub-basin {10} monthly average + - name: swc_pc_s11 + description: Soil Water Content {s} in sub-basin {11} monthly average + - name: swc_pc_s12 + description: Soil Water Content {s} in sub-basin {12} monthly average + - name: lit_cl_smj + description: Lithological Classes {s} in sub-basin {mj} spatial majority + - name: kar_pc_sse + description: Karst Area Extent {s} in sub-basin {se} spatial extent (%) + - name: kar_pc_use + description: Karst Area Extent {u} in total watershed upstream of sub-basin + pour point {se} spatial extent (%) + - name: ero_kh_sav + description: Soil Erosion {s} in sub-basin {av} average + - name: ero_kh_uav + description: Soil Erosion {u} in total watershed upstream of sub-basin pour + point {av} average + - name: pop_ct_ssu + description: Population Count {s} in sub-basin {su} sum + - name: pop_ct_usu + description: Population Count {u} in total watershed upstream of sub-basin + pour point {su} sum + - name: ppd_pk_sav + description: Population Density {s} in sub-basin {av} average + - name: ppd_pk_uav + description: Population Density {u} in total watershed upstream of sub-basin + pour point {av} average + - name: urb_pc_sse + description: vazio + - name: urb_pc_use + description: Urban Extent {u} in total watershed upstream of reach pour point + {se} spatial extent (%) + - name: nli_ix_sav + description: Nighttime Lights {s} in sub-basin {av} average + - name: nli_ix_uav + description: Nighttime Lights {u} in total watershed upstream of sub-basin + pour point {av} average + - name: rdd_mk_sav + description: Road Density {s} in sub-basin {av} average + - name: rdd_mk_uav + description: Road Density {u} in total watershed upstream of sub-basin pour + point {av} average + - name: hft_ix_s93 + description: Human Footprint {s} in sub-basin {93} year 1993 + - name: hft_ix_u93 + description: Human Footprint {u} in total watershed upstream of sub-basin + pour point {93} year 1993 + - name: hft_ix_s09 + description: Human Footprint {s} in sub-basin {09} year 2009 + - name: hft_ix_u09 + description: Human Footprint {u} in total watershed upstream of sub-basin + pour point {09} year 2009 + - name: gad_id_smj + description: Global Administrative Areas {s} in sub-basin {mj} spatial majority + - name: gdp_ud_sav + description: Gross Domestic Product {s} in sub-basin {av} average + - name: gdp_ud_ssu + description: Gross Domestic Product {s} in sub-basin {su} sum + - name: gdp_ud_usu + description: vazio + - name: hdi_ix_sav + description: Human Development Index {s} in sub-basin {av} average + - name: geometry + description: "The polygon data sets of HydroBASINS are distributed in ESRI\ + \ ‘shapefile’ format (ESRI 1998).\nEach HydroBASINS shapefile consists\ + \ of five main files (.dbf, .sbn, .sbx, .shp, .shx).\nAdditionally, basic\ + \ metadata information is provided in XML format (.xml). Projection\n\ + information is provided in an ASCII text file (.prj). All shapefiles are\ + \ in geographic\n(latitude/longitude) projection, referenced to datum\ + \ WGS84" - name: world_wwf_hydrosheds__lakes_atlas - description: HydroLAKES aims to provide the shoreline polygons of all global lakes with a surface area of at least 10 ha - columns: - - name: hylak_id - description: Unique lake identifier - - name: lake_name - description: Name of lake or reservoir - - name: country - description: Country that the lake (or reservoir) is located in - - name: continent - description: Continent that the lake (or reservoir) is located in - - name: poly_src - description: Source of original lake polygon - - name: lake_type - description: Indicator for lake type - - name: grand_id - description: ID of the corresponding reservoir in the GRanD database - - name: lake_area - description: Lake surface area (i.e. polygon area) - - name: shore_len - description: Length of shoreline (i.e. polygon outline) - - name: shore_dev - description: Shoreline development, measured as the ratio between shoreline - length and the circumference of a circle with the same area - - name: vol_total - description: Total lake or reservoir volume, in million cubic meters (1 mcm - = 0.001 km 3). - - name: vol_res - description: Reported reservoir volume, or storage volume of added lake regulation, - in million cubic meters (1 mcm = 0.001 km3) - - name: vol_src - description: Total volume source - - name: depth_avg - description: Average lake depth, in meters - - name: dis_avg - description: Average long-term discharge flowing through the lake, in cubic - meters per second - - name: res_time - description: Average residence time of the lake water, in days - - name: elevation - description: Elevation of lake surface, in meters above sea level - - name: slope_100 - description: Average slope within a 100 meter buffer around the lake polygon, - in degrees - - name: wshd_area - description: Area of the watershed associated with the lake, in square kilometers - - name: pour_long - description: Longitude of the lake pour point, in decimal degrees - - name: pour_lat - description: Latitude of the lake pour point, in decimal degrees - - name: hybas_l12 - description: HYBAS_ID of the corresponding HydroBASINS sub-basin in which - the river reach resides. This ID refers to HydroBASINS at Pfafstetter - level 12 (without lakes) - - name: hyriv_rch - description: HYRIV_ID of the corresponding HydroRIVERS stream reach into which - the lake drains at its pour point location - - name: hyriv_cat - description: HYRIV_ID of the corresponding HydroRIVERS reach catchment (i.e., - the catchment that directly drains into the stream reach) in which the - lake’s pour point resides - - name: dis_m3_pyr - description: Natural Discharge {p} at lake pour point {yr} annual average - - name: dis_m3_pmn - description: Natural Discharge {p} at lake pour point {mn} annual minimum - - name: dis_m3_pmx - description: Natural Discharge {p} at lake pour point {mx} annual maximum - - name: run_mm_vyr - description: Land Surface Runoff {v} within 3 km vicinity of lake {yr} annual - average - - name: inu_pc_vmn - description: Inundation Extent {v} within 3 km vicinity of lake {mn} annual - minimum - - name: inu_pc_umn - description: Inundation Extent {u} in total watershed upstream of lake pour - point {mn} annual minimum - - name: inu_pc_vmx - description: Inundation Extent {v} within 3 km vicinity of lake {mx} annual - maximum - - name: inu_pc_umx - description: Inundation Extent {u} in total watershed upstream of lake pour - point {mx} annual maximum - - name: inu_pc_vlt - description: Inundation Extent {v} within 3 km vicinity of lake {lt} long-term - maximum - - name: inu_pc_ult - description: Inundation Extent {u} in total watershed upstream of lake pour - point {lt} long-term maximum - - name: lka_pc_vse - description: Limnicity (Percent Lake Area) {v} within 3 km vicinity of lake - {se} spatial extent (%) - - name: lka_pc_use - description: Limnicity (Percent Lake Area) {u} in total watershed upstream - of lake pour point {se} spatial extent (%) - - name: lkv_mc_usu - description: Lake Volume {u} in total watershed upstream of lake pour point - {su} sum - - name: rev_mc_usu - description: Reservoir Volume {u} in total watershed upstream of lake pour - point {su} sum - - name: dor_pc_pva - description: Degree of Regulation {p} at lake pour point {va} value - - name: ria_ha_vsu - description: River Area {v} within 3 km vicinity of lake {su} sum - - name: ria_ha_usu - description: River Area {u} in total watershed upstream of lake pour point - {su} sum - - name: riv_tc_vsu - description: River Volume {v} within 3 km vicinity of lake {su} sum - - name: riv_tc_usu - description: River Volume {u} in total watershed upstream of lake pour point - {su} sum - - name: gwt_cm_vav - description: Groundwater Table Depth {v} within 3 km vicinity of lake {av} - average - - name: ele_mt_lav - description: Elevation {l} in lake {av} average - - name: ele_mt_uav - description: Elevation {u} in total watershed upstream of lake pour point - {av} average - - name: ele_mt_lmn - description: Elevation {l} in lake {mn} minimum - - name: ele_mt_vmx - description: Elevation {v} within 3 km vicinity of lake {mx} maximum - - name: slp_dg_vav - description: Terrain Slope {v} within 3 km vicinity of lake {av} average - - name: slp_dg_uav - description: Terrain Slope {u} in total watershed upstream of lake pour point - {av} average - - name: sgr_dk_vav - description: Stream Gradient {v} within 3 km vicinity of lake {av} average - - name: clz_cl_lmj - description: Climate Zones {l} inside lake polygon {mj} spatial majority - - name: cls_cl_lmj - description: Climate Strata {l} inside lake polygon {mj} spatial majority - - name: tmp_dc_lyr - description: Air Temperature {l} inside lake polygon {yr} annual average - - name: tmp_dc_uyr - description: Air Temperature {u} in total watershed upstream of lake pour - point {yr} annual average - - name: tmp_dc_lmn - description: Air Temperature {l} inside lake polygon {mn} annual minimum - - name: tmp_dc_lmx - description: Air Temperature {l} inside lake polygon {mx} annual maximum - - name: tmp_dc_l01 - description: Air Temperature {l} inside lake polygon {01} monthly average - - name: tmp_dc_l02 - description: Air Temperature {l} inside lake polygon {02} monthly average - - name: tmp_dc_l03 - description: Air Temperature {l} inside lake polygon {03} monthly average - - name: tmp_dc_l04 - description: Air Temperature {l} inside lake polygon {04} monthly average - - name: tmp_dc_l05 - description: Air Temperature {l} inside lake polygon {05} monthly average - - name: tmp_dc_l06 - description: Air Temperature {l} inside lake polygon {06} monthly average - - name: tmp_dc_l07 - description: Air Temperature {l} inside lake polygon {07} monthly average - - name: tmp_dc_l08 - description: Air Temperature {l} inside lake polygon {08} monthly average - - name: tmp_dc_l09 - description: Air Temperature {l} inside lake polygon {09} monthly average - - name: tmp_dc_l10 - description: Air Temperature {l} inside lake polygon {10} monthly average - - name: tmp_dc_l11 - description: Air Temperature {l} inside lake polygon {11} monthly average - - name: tmp_dc_l12 - description: Air Temperature {l} inside lake polygon {12} monthly average - - name: pre_mm_lyr - description: Precipitation {l} inside lake polygon {yr} annual average - - name: pre_mm_uyr - description: Precipitation {u} in total watershed upstream of lake pour point - {yr} annual average - - name: pre_mm_l01 - description: Precipitation {l} inside lake polygon {01} monthly average - - name: pre_mm_l02 - description: Precipitation {l} inside lake polygon {02} monthly average - - name: pre_mm_l03 - description: Precipitation {l} inside lake polygon {03} monthly average - - name: pre_mm_l04 - description: Precipitation {l} inside lake polygon {04} monthly average - - name: pre_mm_l05 - description: Precipitation {l} inside lake polygon {05} monthly average - - name: pre_mm_l06 - description: Precipitation {l} inside lake polygon {06} monthly average - - name: pre_mm_l07 - description: Precipitation {l} inside lake polygon {07} monthly average - - name: pre_mm_l08 - description: Precipitation {l} inside lake polygon {08} monthly average - - name: pre_mm_l09 - description: Precipitation {l} inside lake polygon {09} monthly average - - name: pre_mm_l10 - description: Precipitation {l} inside lake polygon {10} monthly average - - name: pre_mm_l11 - description: Precipitation {l} inside lake polygon {11} monthly average - - name: pre_mm_l12 - description: Precipitation {l} inside lake polygon {12} monthly average - - name: pet_mm_lyr - description: Potential Evapotranspiration {l} inside lake polygon {yr} annual - average - - name: pet_mm_uyr - description: Potential Evapotranspiration {u} in total watershed upstream - of lake pour point {yr} annual average - - name: pet_mm_l01 - description: Potential Evapotranspiration {l} inside lake polygon {01} monthly - average - - name: pet_mm_l02 - description: Potential Evapotranspiration {l} inside lake polygon {02} monthly - average - - name: pet_mm_l03 - description: Potential Evapotranspiration {l} inside lake polygon {03} monthly - average - - name: pet_mm_l04 - description: Potential Evapotranspiration {l} inside lake polygon {04} monthly - average - - name: pet_mm_l05 - description: Potential Evapotranspiration {l} inside lake polygon {05} monthly - average - - name: pet_mm_l06 - description: Potential Evapotranspiration {l} inside lake polygon {06} monthly - average - - name: pet_mm_l07 - description: Potential Evapotranspiration {l} inside lake polygon {07} monthly - average - - name: pet_mm_l08 - description: Potential Evapotranspiration {l} inside lake polygon {08} monthly - average - - name: pet_mm_l09 - description: Potential Evapotranspiration {l} inside lake polygon {09} monthly - average - - name: pet_mm_l10 - description: Potential Evapotranspiration {l} inside lake polygon {10} monthly - average - - name: pet_mm_l11 - description: Potential Evapotranspiration {l} inside lake polygon {11} monthly - average - - name: pet_mm_l12 - description: Potential Evapotranspiration {l} inside lake polygon {12} monthly - average - - name: aet_mm_vyr - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {yr} - annual average - - name: aet_mm_uyr - description: Actual Evapotranspiration {u} in total watershed upstream of - lake pour point {yr} annual average - - name: aet_mm_v01 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {01} - monthly average - - name: aet_mm_v02 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {02} - monthly average - - name: aet_mm_v03 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {03} - monthly average - - name: aet_mm_v04 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {04} - monthly average - - name: aet_mm_v05 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {05} - monthly average - - name: aet_mm_v06 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {06} - monthly average - - name: aet_mm_v07 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {07} - monthly average - - name: aet_mm_v08 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {08} - monthly average - - name: aet_mm_v09 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {09} - monthly average - - name: aet_mm_v10 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {10} - monthly average - - name: aet_mm_v11 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {11} - monthly average - - name: aet_mm_v12 - description: Actual Evapotranspiration {v} within 3 km vicinity of lake {12} - monthly average - - name: ari_ix_lav - description: Global Aridity Index {l} inside lake polygon {av} average - - name: ari_ix_uav - description: Global Aridity Index {u} in total watershed upstream of lake - pour point {av} average - - name: cmi_ix_lyr - description: Climate Moisture Index {l} inside lake polygon {yr} annual average - - name: cmi_ix_uyr - description: Climate Moisture Index {u} in total watershed upstream of lake - pour point {yr} annual average - - name: cmi_ix_l01 - description: Climate Moisture Index {l} inside lake polygon {01} monthly average - - name: cmi_ix_l02 - description: Climate Moisture Index {l} inside lake polygon {02} monthly average - - name: cmi_ix_l03 - description: Climate Moisture Index {l} inside lake polygon {03} monthly average - - name: cmi_ix_l04 - description: Climate Moisture Index {l} inside lake polygon {04} monthly average - - name: cmi_ix_l05 - description: Climate Moisture Index {l} inside lake polygon {05} monthly average - - name: cmi_ix_l06 - description: Climate Moisture Index {l} inside lake polygon {06} monthly average - - name: cmi_ix_l07 - description: Climate Moisture Index {l} inside lake polygon {07} monthly average - - name: cmi_ix_l08 - description: Climate Moisture Index {l} inside lake polygon {08} monthly average - - name: cmi_ix_l09 - description: Climate Moisture Index {l} inside lake polygon {09} monthly average - - name: cmi_ix_l10 - description: Climate Moisture Index {l} inside lake polygon {10} monthly average - - name: cmi_ix_l11 - description: Climate Moisture Index {l} inside lake polygon {11} monthly average - - name: cmi_ix_l12 - description: Climate Moisture Index {l} inside lake polygon {12} monthly average - - name: snw_pc_vyr - description: Snow Cover Extent {v} within 3 km vicinity of lake {yr} annual - average - - name: snw_pc_uyr - description: Snow Cover Extent {u} in total watershed upstream of lake pour - point {yr} annual average - - name: snw_pc_vmx - description: Snow Cover Extent {v} within 3 km vicinity of lake {mx} annual - maximum - - name: snw_pc_v01 - description: Snow Cover Extent {v} within 3 km vicinity of lake {01} monthly - average - - name: snw_pc_v02 - description: Snow Cover Extent {v} within 3 km vicinity of lake {02} monthly - average - - name: snw_pc_v03 - description: Snow Cover Extent {v} within 3 km vicinity of lake {03} monthly - average - - name: snw_pc_v04 - description: Snow Cover Extent {v} within 3 km vicinity of lake {04} monthly - average - - name: snw_pc_v05 - description: Snow Cover Extent {v} within 3 km vicinity of lake {05} monthly - average - - name: snw_pc_v06 - description: Snow Cover Extent {v} within 3 km vicinity of lake {06} monthly - average - - name: snw_pc_v07 - description: Snow Cover Extent {v} within 3 km vicinity of lake {07} monthly - average - - name: snw_pc_v08 - description: Snow Cover Extent {v} within 3 km vicinity of lake {08} monthly - average - - name: snw_pc_v09 - description: Snow Cover Extent {v} within 3 km vicinity of lake {09} monthly - average - - name: snw_pc_v10 - description: Snow Cover Extent {v} within 3 km vicinity of lake {10} monthly - average - - name: snw_pc_v11 - description: Snow Cover Extent {v} within 3 km vicinity of lake {11} monthly - average - - name: snw_pc_v12 - description: Snow Cover Extent {v} within 3 km vicinity of lake {12} monthly - average - - name: glc_cl_vmj - description: Land Cover Classes {v} within 3 km vicinity of lake {mj} spatial - majority - - name: glc_pc_v01 - description: Land Cover Extent {v} within 3 km vicinity of lake {01} spatial - extent (%) by class - - name: glc_pc_v02 - description: Land Cover Extent {v} within 3 km vicinity of lake {02} spatial - extent (%) by class - - name: glc_pc_v03 - description: Land Cover Extent {v} within 3 km vicinity of lake {03} spatial - extent (%) by class - - name: glc_pc_v04 - description: Land Cover Extent {v} within 3 km vicinity of lake {04} spatial - extent (%) by class - - name: glc_pc_v05 - description: Land Cover Extent {v} within 3 km vicinity of lake {05} spatial - extent (%) by class - - name: glc_pc_v06 - description: Land Cover Extent {v} within 3 km vicinity of lake {06} spatial - extent (%) by class - - name: glc_pc_v07 - description: Land Cover Extent {v} within 3 km vicinity of lake {07} spatial - extent (%) by class - - name: glc_pc_v08 - description: Land Cover Extent {v} within 3 km vicinity of lake {08} spatial - extent (%) by class - - name: glc_pc_v09 - description: Land Cover Extent {v} within 3 km vicinity of lake {09} spatial - extent (%) by class - - name: glc_pc_v10 - description: Land Cover Extent {v} within 3 km vicinity of lake {10} spatial - extent (%) by class - - name: glc_pc_v11 - description: Land Cover Extent {v} within 3 km vicinity of lake {11} spatial - extent (%) by class - - name: glc_pc_v12 - description: Land Cover Extent {v} within 3 km vicinity of lake {12} spatial - extent (%) by class - - name: glc_pc_v13 - description: Land Cover Extent {v} within 3 km vicinity of lake {13} spatial - extent (%) by class - - name: glc_pc_v14 - description: Land Cover Extent {v} within 3 km vicinity of lake {14} spatial - extent (%) by class - - name: glc_pc_v15 - description: Land Cover Extent {v} within 3 km vicinity of lake {15} spatial - extent (%) by class - - name: glc_pc_v16 - description: Land Cover Extent {v} within 3 km vicinity of lake {16} spatial - extent (%) by class - - name: glc_pc_v17 - description: Land Cover Extent {v} within 3 km vicinity of lake {17} spatial - extent (%) by class - - name: glc_pc_v18 - description: Land Cover Extent {v} within 3 km vicinity of lake {18} spatial - extent (%) by class - - name: glc_pc_v19 - description: Land Cover Extent {v} within 3 km vicinity of lake {19} spatial - extent (%) by class - - name: glc_pc_v20 - description: Land Cover Extent {v} within 3 km vicinity of lake {20} spatial - extent (%) by class - - name: glc_pc_v21 - description: Land Cover Extent {v} within 3 km vicinity of lake {21} spatial - extent (%) by class - - name: glc_pc_v22 - description: Land Cover Extent {v} within 3 km vicinity of lake {22} spatial - extent (%) by class - - name: glc_pc_u01 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {01} spatial extent (%) by class - - name: glc_pc_u02 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {02} spatial extent (%) by class - - name: glc_pc_u03 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {03} spatial extent (%) by class - - name: glc_pc_u04 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {04} spatial extent (%) by class - - name: glc_pc_u05 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {05} spatial extent (%) by class - - name: glc_pc_u06 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {06} spatial extent (%) by class - - name: glc_pc_u07 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {07} spatial extent (%) by class - - name: glc_pc_u08 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {08} spatial extent (%) by class - - name: glc_pc_u09 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {09} spatial extent (%) by class - - name: glc_pc_u10 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {10} spatial extent (%) by class - - name: glc_pc_u11 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {11} spatial extent (%) by class - - name: glc_pc_u12 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {12} spatial extent (%) by class - - name: glc_pc_u13 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {13} spatial extent (%) by class - - name: glc_pc_u14 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {14} spatial extent (%) by class - - name: glc_pc_u15 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {15} spatial extent (%) by class - - name: glc_pc_u16 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {16} spatial extent (%) by class - - name: glc_pc_u17 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {17} spatial extent (%) by class - - name: glc_pc_u18 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {18} spatial extent (%) by class - - name: glc_pc_u19 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {19} spatial extent (%) by class - - name: glc_pc_u20 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {20} spatial extent (%) by class - - name: glc_pc_u21 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {21} spatial extent (%) by class - - name: glc_pc_u22 - description: Land Cover Extent {u} in total watershed upstream of lake pour - point {22} spatial extent (%) by class - - name: pnv_cl_vmj - description: Potential Natural Vegetation Classes {v} within 3 km vicinity - of lake {mj} spatial majority - - name: pnv_pc_v01 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {01} spatial extent (%) by class - - name: pnv_pc_v02 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {02} spatial extent (%) by class - - name: pnv_pc_v03 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {03} spatial extent (%) by class - - name: pnv_pc_v04 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {04} spatial extent (%) by class - - name: pnv_pc_v05 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {05} spatial extent (%) by class - - name: pnv_pc_v06 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {06} spatial extent (%) by class - - name: pnv_pc_v07 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {07} spatial extent (%) by class - - name: pnv_pc_v08 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {08} spatial extent (%) by class - - name: pnv_pc_v09 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {09} spatial extent (%) by class - - name: pnv_pc_v10 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {10} spatial extent (%) by class - - name: pnv_pc_v11 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {11} spatial extent (%) by class - - name: pnv_pc_v12 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {12} spatial extent (%) by class - - name: pnv_pc_v13 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {13} spatial extent (%) by class - - name: pnv_pc_v14 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {14} spatial extent (%) by class - - name: pnv_pc_v15 - description: Potential Natural Vegetation Extent {v} within 3 km vicinity - of lake {15} spatial extent (%) by class - - name: pnv_pc_u01 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {01} spatial extent (%) by class - - name: pnv_pc_u02 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {02} spatial extent (%) by class - - name: pnv_pc_u03 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {03} spatial extent (%) by class - - name: pnv_pc_u04 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {04} spatial extent (%) by class - - name: pnv_pc_u05 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {05} spatial extent (%) by class - - name: pnv_pc_u06 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {06} spatial extent (%) by class - - name: pnv_pc_u07 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {07} spatial extent (%) by class - - name: pnv_pc_u08 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {08} spatial extent (%) by class - - name: pnv_pc_u09 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {09} spatial extent (%) by class - - name: pnv_pc_u10 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {10} spatial extent (%) by class - - name: pnv_pc_u11 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {11} spatial extent (%) by class - - name: pnv_pc_u12 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {12} spatial extent (%) by class - - name: pnv_pc_u13 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {13} spatial extent (%) by class - - name: pnv_pc_u14 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {14} spatial extent (%) by class - - name: pnv_pc_u15 - description: Potential Natural Vegetation Extent {u} in total watershed upstream - of lake pour point {15} spatial extent (%) by class - - name: wet_cl_vmj - description: Wetland Classes {v} within 3 km vicinity of lake {mj} spatial - majority - - name: wet_pc_vg1 - description: vazio - - name: wet_pc_ug1 - description: vazio - - name: wet_pc_vg2 - description: vazio - - name: wet_pc_ug2 - description: vazio - - name: wet_pc_v01 - description: Wetland Extent {v} within 3 km vicinity of lake {01} spatial - extent (%) by class - - name: wet_pc_v02 - description: Wetland Extent {v} within 3 km vicinity of lake {02} spatial - extent (%) by class - - name: wet_pc_v03 - description: Wetland Extent {v} within 3 km vicinity of lake {03} spatial - extent (%) by class - - name: wet_pc_v04 - description: Wetland Extent {v} within 3 km vicinity of lake {04} spatial - extent (%) by class - - name: wet_pc_v05 - description: Wetland Extent {v} within 3 km vicinity of lake {05} spatial - extent (%) by class - - name: wet_pc_v06 - description: Wetland Extent {v} within 3 km vicinity of lake {06} spatial - extent (%) by class - - name: wet_pc_v07 - description: Wetland Extent {v} within 3 km vicinity of lake {07} spatial - extent (%) by class - - name: wet_pc_v08 - description: Wetland Extent {v} within 3 km vicinity of lake {08} spatial - extent (%) by class - - name: wet_pc_v09 - description: Wetland Extent {v} within 3 km vicinity of lake {09} spatial - extent (%) by class - - name: wet_pc_u01 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {01} spatial extent (%) by class - - name: wet_pc_u02 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {02} spatial extent (%) by class - - name: wet_pc_u03 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {03} spatial extent (%) by class - - name: wet_pc_u04 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {04} spatial extent (%) by class - - name: wet_pc_u05 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {05} spatial extent (%) by class - - name: wet_pc_u06 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {06} spatial extent (%) by class - - name: wet_pc_u07 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {07} spatial extent (%) by class - - name: wet_pc_u08 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {08} spatial extent (%) by class - - name: wet_pc_u09 - description: Wetland Extent {u} in total watershed upstream of lake pour point - {09} spatial extent (%) by class - - name: for_pc_vse - description: Forest Cover Extent {v} within 3 km vicinity of lake {se} spatial - extent (%) - - name: for_pc_use - description: Forest Cover Extent {u} in total watershed upstream of lake pour - point {se} spatial extent (%) - - name: crp_pc_vse - description: Cropland Extent {v} within 3 km vicinity of lake {se} spatial - extent (%) - - name: crp_pc_use - description: Cropland Extent {u} in total watershed upstream of lake pour - point {se} spatial extent (%) - - name: pst_pc_vse - description: Pasture Extent {v} within 3 km vicinity of lake {se} spatial - extent (%) - - name: pst_pc_use - description: Pasture Extent {u} in total watershed upstream of lake pour point - {se} spatial extent (%) - - name: ire_pc_vse - description: Irrigated Area Extent (Equipped) {v} within 3 km vicinity of - lake {se} spatial extent (%) - - name: ire_pc_use - description: Irrigated Area Extent (Equipped) {u} in total watershed upstream - of lake pour point {se} spatial extent (%) - - name: gla_pc_vse - description: Glacier Extent {v} within 3 km vicinity of lake {se} spatial - extent (%) - - name: gla_pc_use - description: Glacier Extent {u} in total watershed upstream of lake pour point - {se} spatial extent (%) - - name: prm_pc_vse - description: Permafrost Extent {v} within 3 km vicinity of lake {se} spatial - extent (%) - - name: prm_pc_use - description: Permafrost Extent {u} in total watershed upstream of lake pour - point {se} spatial extent (%) - - name: pac_pc_lse - description: Protected Area Extent {l} inside lake polygon {se} spatial extent - (%) - - name: pac_pc_use - description: Protected Area Extent {u} in total watershed upstream of lake - pour point {se} spatial extent (%) - - name: tbi_cl_lmj - description: Terrestrial Biomes {l} inside lake polygon {mj} spatial majority - - name: tec_cl_lmj - description: Terrestrial Ecoregions {l} inside lake polygon {mj} spatial majority - - name: fmh_cl_lmj - description: Freshwater Major Habitat Types {l} inside lake polygon {mj} spatial - majority - - name: fec_cl_lmj - description: Freshwater Ecoregions {l} inside lake polygon {mj} spatial majority - - name: cly_pc_vav - description: Clay Fraction in Soil {v} within 3 km vicinity of lake {av} average - - name: cly_pc_uav - description: Clay Fraction in Soil {u} in total watershed upstream of lake - pour point {av} average - - name: slt_pc_vav - description: Silt Fraction in Soil {v} within 3 km vicinity of lake {av} average - - name: slt_pc_uav - description: Silt Fraction in Soil {u} in total watershed upstream of lake - pour point {av} average - - name: snd_pc_vav - description: Sand Fraction in Soil {v} within 3 km vicinity of lake {av} average - - name: snd_pc_uav - description: Sand Fraction in Soil {u} in total watershed upstream of lake - pour point {av} average - - name: soc_th_vav - description: Organic Carbon Content in Soil {v} within 3 km vicinity of lake - {av} average - - name: soc_th_uav - description: Organic Carbon Content in Soil {u} in total watershed upstream - of lake pour point {av} average - - name: swc_pc_vyr - description: Soil Water Content {v} within 3 km vicinity of lake {yr} annual - average - - name: swc_pc_uyr - description: Soil Water Content {u} in total watershed upstream of lake pour - point {yr} annual average - - name: swc_pc_v01 - description: Soil Water Content {v} within 3 km vicinity of lake {01} monthly - average - - name: swc_pc_v02 - description: Soil Water Content {v} within 3 km vicinity of lake {02} monthly - average - - name: swc_pc_v03 - description: Soil Water Content {v} within 3 km vicinity of lake {03} monthly - average - - name: swc_pc_v04 - description: Soil Water Content {v} within 3 km vicinity of lake {04} monthly - average - - name: swc_pc_v05 - description: Soil Water Content {v} within 3 km vicinity of lake {05} monthly - average - - name: swc_pc_v06 - description: Soil Water Content {v} within 3 km vicinity of lake {06} monthly - average - - name: swc_pc_v07 - description: Soil Water Content {v} within 3 km vicinity of lake {07} monthly - average - - name: swc_pc_v08 - description: Soil Water Content {v} within 3 km vicinity of lake {08} monthly - average - - name: swc_pc_v09 - description: Soil Water Content {v} within 3 km vicinity of lake {09} monthly - average - - name: swc_pc_v10 - description: Soil Water Content {v} within 3 km vicinity of lake {10} monthly - average - - name: swc_pc_v11 - description: Soil Water Content {v} within 3 km vicinity of lake {11} monthly - average - - name: swc_pc_v12 - description: Soil Water Content {v} within 3 km vicinity of lake {12} monthly - average - - name: lit_cl_vmj - description: Lithological Classes {v} within 3 km vicinity of lake {mj} spatial - majority - - name: kar_pc_vse - description: Karst Area Extent {v} within 3 km vicinity of lake {se} spatial - extent (%) - - name: kar_pc_use - description: Karst Area Extent {u} in total watershed upstream of lake pour - point {se} spatial extent (%) - - name: ero_kh_vav - description: Soil Erosion {v} within 3 km vicinity of lake {av} average - - name: ero_kh_uav - description: Soil Erosion {u} in total watershed upstream of lake pour point - {av} average - - name: pop_ct_vsu - description: Population Count {v} within 3 km vicinity of lake {su} sum - - name: pop_ct_usu - description: Population Count {u} in total watershed upstream of lake pour - point {su} sum - - name: ppd_pk_vav - description: Population Density {v} within 3 km vicinity of lake {av} average - - name: ppd_pk_uav - description: Population Density {u} in total watershed upstream of lake pour - point {av} average - - name: urb_pc_vse - description: Urban Extent {v} within 3 km vicinity of lake {se} spatial extent - (%) - - name: urb_pc_use - description: Urban Extent {u} in total watershed upstream of lake pour point - {se} spatial extent (%) - - name: nli_ix_vav - description: Nighttime Lights {v} within 3 km vicinity of lake {av} average - - name: nli_ix_uav - description: Nighttime Lights {u} in total watershed upstream of lake pour - point {av} average - - name: rdd_mk_vav - description: Road Density {v} within 3 km vicinity of lake {av} average - - name: rdd_mk_uav - description: Road Density {u} in total watershed upstream of lake pour point - {av} average - - name: hft_ix_v93 - description: Human Footprint {v} within 3 km vicinity of lake {93} year 1993 - - name: hft_ix_u93 - description: Human Footprint {u} in total watershed upstream of lake pour - point {93} year 1993 - - name: hft_ix_v09 - description: Human Footprint {v} within 3 km vicinity of lake {09} year 2009 - - name: hft_ix_u09 - description: Human Footprint {u} in total watershed upstream of lake pour - point {09} year 2009 - - name: gad_id_lmj - description: Global Administrative Areas {l} inside lake polygon {mj} spatial - majority - - name: gdp_ud_vav - description: Gross Domestic Product {v} within 3 km vicinity of lake {av} - average - - name: gdp_ud_vsu - description: Gross Domestic Product {v} within 3 km vicinity of lake {su} - sum - - name: gdp_ud_usu - description: Gross Domestic Product {u} in total watershed upstream of lake - pour point {su} sum - - name: hdi_ix_vav - description: Human Development Index {v} within 3 km vicinity of lake {av} - average - - name: geometry - description: "Data layers are provided in geographic (latitude/longitude)\ - \ projection, referenced to datum\nWGS84" \ No newline at end of file + description: HydroLAKES aims to provide the shoreline polygons of all global lakes with a surface area of at least 10 ha + columns: + - name: hylak_id + description: Unique lake identifier + - name: lake_name + description: Name of lake or reservoir + - name: country + description: Country that the lake (or reservoir) is located in + - name: continent + description: Continent that the lake (or reservoir) is located in + - name: poly_src + description: Source of original lake polygon + - name: lake_type + description: Indicator for lake type + - name: grand_id + description: ID of the corresponding reservoir in the GRanD database + - name: lake_area + description: Lake surface area (i.e. polygon area) + - name: shore_len + description: Length of shoreline (i.e. polygon outline) + - name: shore_dev + description: Shoreline development, measured as the ratio between shoreline + length and the circumference of a circle with the same area + - name: vol_total + description: Total lake or reservoir volume, in million cubic meters (1 mcm + = 0.001 km 3). + - name: vol_res + description: Reported reservoir volume, or storage volume of added lake regulation, + in million cubic meters (1 mcm = 0.001 km3) + - name: vol_src + description: Total volume source + - name: depth_avg + description: Average lake depth, in meters + - name: dis_avg + description: Average long-term discharge flowing through the lake, in cubic + meters per second + - name: res_time + description: Average residence time of the lake water, in days + - name: elevation + description: Elevation of lake surface, in meters above sea level + - name: slope_100 + description: Average slope within a 100 meter buffer around the lake polygon, + in degrees + - name: wshd_area + description: Area of the watershed associated with the lake, in square kilometers + - name: pour_long + description: Longitude of the lake pour point, in decimal degrees + - name: pour_lat + description: Latitude of the lake pour point, in decimal degrees + - name: hybas_l12 + description: HYBAS_ID of the corresponding HydroBASINS sub-basin in which + the river reach resides. This ID refers to HydroBASINS at Pfafstetter + level 12 (without lakes) + - name: hyriv_rch + description: HYRIV_ID of the corresponding HydroRIVERS stream reach into which + the lake drains at its pour point location + - name: hyriv_cat + description: HYRIV_ID of the corresponding HydroRIVERS reach catchment (i.e., + the catchment that directly drains into the stream reach) in which the + lake’s pour point resides + - name: dis_m3_pyr + description: Natural Discharge {p} at lake pour point {yr} annual average + - name: dis_m3_pmn + description: Natural Discharge {p} at lake pour point {mn} annual minimum + - name: dis_m3_pmx + description: Natural Discharge {p} at lake pour point {mx} annual maximum + - name: run_mm_vyr + description: Land Surface Runoff {v} within 3 km vicinity of lake {yr} annual + average + - name: inu_pc_vmn + description: Inundation Extent {v} within 3 km vicinity of lake {mn} annual + minimum + - name: inu_pc_umn + description: Inundation Extent {u} in total watershed upstream of lake pour + point {mn} annual minimum + - name: inu_pc_vmx + description: Inundation Extent {v} within 3 km vicinity of lake {mx} annual + maximum + - name: inu_pc_umx + description: Inundation Extent {u} in total watershed upstream of lake pour + point {mx} annual maximum + - name: inu_pc_vlt + description: Inundation Extent {v} within 3 km vicinity of lake {lt} long-term + maximum + - name: inu_pc_ult + description: Inundation Extent {u} in total watershed upstream of lake pour + point {lt} long-term maximum + - name: lka_pc_vse + description: Limnicity (Percent Lake Area) {v} within 3 km vicinity of lake + {se} spatial extent (%) + - name: lka_pc_use + description: Limnicity (Percent Lake Area) {u} in total watershed upstream + of lake pour point {se} spatial extent (%) + - name: lkv_mc_usu + description: Lake Volume {u} in total watershed upstream of lake pour point + {su} sum + - name: rev_mc_usu + description: Reservoir Volume {u} in total watershed upstream of lake pour + point {su} sum + - name: dor_pc_pva + description: Degree of Regulation {p} at lake pour point {va} value + - name: ria_ha_vsu + description: River Area {v} within 3 km vicinity of lake {su} sum + - name: ria_ha_usu + description: River Area {u} in total watershed upstream of lake pour point + {su} sum + - name: riv_tc_vsu + description: River Volume {v} within 3 km vicinity of lake {su} sum + - name: riv_tc_usu + description: River Volume {u} in total watershed upstream of lake pour point + {su} sum + - name: gwt_cm_vav + description: Groundwater Table Depth {v} within 3 km vicinity of lake {av} + average + - name: ele_mt_lav + description: Elevation {l} in lake {av} average + - name: ele_mt_uav + description: Elevation {u} in total watershed upstream of lake pour point + {av} average + - name: ele_mt_lmn + description: Elevation {l} in lake {mn} minimum + - name: ele_mt_vmx + description: Elevation {v} within 3 km vicinity of lake {mx} maximum + - name: slp_dg_vav + description: Terrain Slope {v} within 3 km vicinity of lake {av} average + - name: slp_dg_uav + description: Terrain Slope {u} in total watershed upstream of lake pour point + {av} average + - name: sgr_dk_vav + description: Stream Gradient {v} within 3 km vicinity of lake {av} average + - name: clz_cl_lmj + description: Climate Zones {l} inside lake polygon {mj} spatial majority + - name: cls_cl_lmj + description: Climate Strata {l} inside lake polygon {mj} spatial majority + - name: tmp_dc_lyr + description: Air Temperature {l} inside lake polygon {yr} annual average + - name: tmp_dc_uyr + description: Air Temperature {u} in total watershed upstream of lake pour + point {yr} annual average + - name: tmp_dc_lmn + description: Air Temperature {l} inside lake polygon {mn} annual minimum + - name: tmp_dc_lmx + description: Air Temperature {l} inside lake polygon {mx} annual maximum + - name: tmp_dc_l01 + description: Air Temperature {l} inside lake polygon {01} monthly average + - name: tmp_dc_l02 + description: Air Temperature {l} inside lake polygon {02} monthly average + - name: tmp_dc_l03 + description: Air Temperature {l} inside lake polygon {03} monthly average + - name: tmp_dc_l04 + description: Air Temperature {l} inside lake polygon {04} monthly average + - name: tmp_dc_l05 + description: Air Temperature {l} inside lake polygon {05} monthly average + - name: tmp_dc_l06 + description: Air Temperature {l} inside lake polygon {06} monthly average + - name: tmp_dc_l07 + description: Air Temperature {l} inside lake polygon {07} monthly average + - name: tmp_dc_l08 + description: Air Temperature {l} inside lake polygon {08} monthly average + - name: tmp_dc_l09 + description: Air Temperature {l} inside lake polygon {09} monthly average + - name: tmp_dc_l10 + description: Air Temperature {l} inside lake polygon {10} monthly average + - name: tmp_dc_l11 + description: Air Temperature {l} inside lake polygon {11} monthly average + - name: tmp_dc_l12 + description: Air Temperature {l} inside lake polygon {12} monthly average + - name: pre_mm_lyr + description: Precipitation {l} inside lake polygon {yr} annual average + - name: pre_mm_uyr + description: Precipitation {u} in total watershed upstream of lake pour point + {yr} annual average + - name: pre_mm_l01 + description: Precipitation {l} inside lake polygon {01} monthly average + - name: pre_mm_l02 + description: Precipitation {l} inside lake polygon {02} monthly average + - name: pre_mm_l03 + description: Precipitation {l} inside lake polygon {03} monthly average + - name: pre_mm_l04 + description: Precipitation {l} inside lake polygon {04} monthly average + - name: pre_mm_l05 + description: Precipitation {l} inside lake polygon {05} monthly average + - name: pre_mm_l06 + description: Precipitation {l} inside lake polygon {06} monthly average + - name: pre_mm_l07 + description: Precipitation {l} inside lake polygon {07} monthly average + - name: pre_mm_l08 + description: Precipitation {l} inside lake polygon {08} monthly average + - name: pre_mm_l09 + description: Precipitation {l} inside lake polygon {09} monthly average + - name: pre_mm_l10 + description: Precipitation {l} inside lake polygon {10} monthly average + - name: pre_mm_l11 + description: Precipitation {l} inside lake polygon {11} monthly average + - name: pre_mm_l12 + description: Precipitation {l} inside lake polygon {12} monthly average + - name: pet_mm_lyr + description: Potential Evapotranspiration {l} inside lake polygon {yr} annual + average + - name: pet_mm_uyr + description: Potential Evapotranspiration {u} in total watershed upstream + of lake pour point {yr} annual average + - name: pet_mm_l01 + description: Potential Evapotranspiration {l} inside lake polygon {01} monthly + average + - name: pet_mm_l02 + description: Potential Evapotranspiration {l} inside lake polygon {02} monthly + average + - name: pet_mm_l03 + description: Potential Evapotranspiration {l} inside lake polygon {03} monthly + average + - name: pet_mm_l04 + description: Potential Evapotranspiration {l} inside lake polygon {04} monthly + average + - name: pet_mm_l05 + description: Potential Evapotranspiration {l} inside lake polygon {05} monthly + average + - name: pet_mm_l06 + description: Potential Evapotranspiration {l} inside lake polygon {06} monthly + average + - name: pet_mm_l07 + description: Potential Evapotranspiration {l} inside lake polygon {07} monthly + average + - name: pet_mm_l08 + description: Potential Evapotranspiration {l} inside lake polygon {08} monthly + average + - name: pet_mm_l09 + description: Potential Evapotranspiration {l} inside lake polygon {09} monthly + average + - name: pet_mm_l10 + description: Potential Evapotranspiration {l} inside lake polygon {10} monthly + average + - name: pet_mm_l11 + description: Potential Evapotranspiration {l} inside lake polygon {11} monthly + average + - name: pet_mm_l12 + description: Potential Evapotranspiration {l} inside lake polygon {12} monthly + average + - name: aet_mm_vyr + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {yr} + annual average + - name: aet_mm_uyr + description: Actual Evapotranspiration {u} in total watershed upstream of + lake pour point {yr} annual average + - name: aet_mm_v01 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {01} + monthly average + - name: aet_mm_v02 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {02} + monthly average + - name: aet_mm_v03 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {03} + monthly average + - name: aet_mm_v04 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {04} + monthly average + - name: aet_mm_v05 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {05} + monthly average + - name: aet_mm_v06 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {06} + monthly average + - name: aet_mm_v07 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {07} + monthly average + - name: aet_mm_v08 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {08} + monthly average + - name: aet_mm_v09 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {09} + monthly average + - name: aet_mm_v10 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {10} + monthly average + - name: aet_mm_v11 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {11} + monthly average + - name: aet_mm_v12 + description: Actual Evapotranspiration {v} within 3 km vicinity of lake {12} + monthly average + - name: ari_ix_lav + description: Global Aridity Index {l} inside lake polygon {av} average + - name: ari_ix_uav + description: Global Aridity Index {u} in total watershed upstream of lake + pour point {av} average + - name: cmi_ix_lyr + description: Climate Moisture Index {l} inside lake polygon {yr} annual average + - name: cmi_ix_uyr + description: Climate Moisture Index {u} in total watershed upstream of lake + pour point {yr} annual average + - name: cmi_ix_l01 + description: Climate Moisture Index {l} inside lake polygon {01} monthly average + - name: cmi_ix_l02 + description: Climate Moisture Index {l} inside lake polygon {02} monthly average + - name: cmi_ix_l03 + description: Climate Moisture Index {l} inside lake polygon {03} monthly average + - name: cmi_ix_l04 + description: Climate Moisture Index {l} inside lake polygon {04} monthly average + - name: cmi_ix_l05 + description: Climate Moisture Index {l} inside lake polygon {05} monthly average + - name: cmi_ix_l06 + description: Climate Moisture Index {l} inside lake polygon {06} monthly average + - name: cmi_ix_l07 + description: Climate Moisture Index {l} inside lake polygon {07} monthly average + - name: cmi_ix_l08 + description: Climate Moisture Index {l} inside lake polygon {08} monthly average + - name: cmi_ix_l09 + description: Climate Moisture Index {l} inside lake polygon {09} monthly average + - name: cmi_ix_l10 + description: Climate Moisture Index {l} inside lake polygon {10} monthly average + - name: cmi_ix_l11 + description: Climate Moisture Index {l} inside lake polygon {11} monthly average + - name: cmi_ix_l12 + description: Climate Moisture Index {l} inside lake polygon {12} monthly average + - name: snw_pc_vyr + description: Snow Cover Extent {v} within 3 km vicinity of lake {yr} annual + average + - name: snw_pc_uyr + description: Snow Cover Extent {u} in total watershed upstream of lake pour + point {yr} annual average + - name: snw_pc_vmx + description: Snow Cover Extent {v} within 3 km vicinity of lake {mx} annual + maximum + - name: snw_pc_v01 + description: Snow Cover Extent {v} within 3 km vicinity of lake {01} monthly + average + - name: snw_pc_v02 + description: Snow Cover Extent {v} within 3 km vicinity of lake {02} monthly + average + - name: snw_pc_v03 + description: Snow Cover Extent {v} within 3 km vicinity of lake {03} monthly + average + - name: snw_pc_v04 + description: Snow Cover Extent {v} within 3 km vicinity of lake {04} monthly + average + - name: snw_pc_v05 + description: Snow Cover Extent {v} within 3 km vicinity of lake {05} monthly + average + - name: snw_pc_v06 + description: Snow Cover Extent {v} within 3 km vicinity of lake {06} monthly + average + - name: snw_pc_v07 + description: Snow Cover Extent {v} within 3 km vicinity of lake {07} monthly + average + - name: snw_pc_v08 + description: Snow Cover Extent {v} within 3 km vicinity of lake {08} monthly + average + - name: snw_pc_v09 + description: Snow Cover Extent {v} within 3 km vicinity of lake {09} monthly + average + - name: snw_pc_v10 + description: Snow Cover Extent {v} within 3 km vicinity of lake {10} monthly + average + - name: snw_pc_v11 + description: Snow Cover Extent {v} within 3 km vicinity of lake {11} monthly + average + - name: snw_pc_v12 + description: Snow Cover Extent {v} within 3 km vicinity of lake {12} monthly + average + - name: glc_cl_vmj + description: Land Cover Classes {v} within 3 km vicinity of lake {mj} spatial + majority + - name: glc_pc_v01 + description: Land Cover Extent {v} within 3 km vicinity of lake {01} spatial + extent (%) by class + - name: glc_pc_v02 + description: Land Cover Extent {v} within 3 km vicinity of lake {02} spatial + extent (%) by class + - name: glc_pc_v03 + description: Land Cover Extent {v} within 3 km vicinity of lake {03} spatial + extent (%) by class + - name: glc_pc_v04 + description: Land Cover Extent {v} within 3 km vicinity of lake {04} spatial + extent (%) by class + - name: glc_pc_v05 + description: Land Cover Extent {v} within 3 km vicinity of lake {05} spatial + extent (%) by class + - name: glc_pc_v06 + description: Land Cover Extent {v} within 3 km vicinity of lake {06} spatial + extent (%) by class + - name: glc_pc_v07 + description: Land Cover Extent {v} within 3 km vicinity of lake {07} spatial + extent (%) by class + - name: glc_pc_v08 + description: Land Cover Extent {v} within 3 km vicinity of lake {08} spatial + extent (%) by class + - name: glc_pc_v09 + description: Land Cover Extent {v} within 3 km vicinity of lake {09} spatial + extent (%) by class + - name: glc_pc_v10 + description: Land Cover Extent {v} within 3 km vicinity of lake {10} spatial + extent (%) by class + - name: glc_pc_v11 + description: Land Cover Extent {v} within 3 km vicinity of lake {11} spatial + extent (%) by class + - name: glc_pc_v12 + description: Land Cover Extent {v} within 3 km vicinity of lake {12} spatial + extent (%) by class + - name: glc_pc_v13 + description: Land Cover Extent {v} within 3 km vicinity of lake {13} spatial + extent (%) by class + - name: glc_pc_v14 + description: Land Cover Extent {v} within 3 km vicinity of lake {14} spatial + extent (%) by class + - name: glc_pc_v15 + description: Land Cover Extent {v} within 3 km vicinity of lake {15} spatial + extent (%) by class + - name: glc_pc_v16 + description: Land Cover Extent {v} within 3 km vicinity of lake {16} spatial + extent (%) by class + - name: glc_pc_v17 + description: Land Cover Extent {v} within 3 km vicinity of lake {17} spatial + extent (%) by class + - name: glc_pc_v18 + description: Land Cover Extent {v} within 3 km vicinity of lake {18} spatial + extent (%) by class + - name: glc_pc_v19 + description: Land Cover Extent {v} within 3 km vicinity of lake {19} spatial + extent (%) by class + - name: glc_pc_v20 + description: Land Cover Extent {v} within 3 km vicinity of lake {20} spatial + extent (%) by class + - name: glc_pc_v21 + description: Land Cover Extent {v} within 3 km vicinity of lake {21} spatial + extent (%) by class + - name: glc_pc_v22 + description: Land Cover Extent {v} within 3 km vicinity of lake {22} spatial + extent (%) by class + - name: glc_pc_u01 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {01} spatial extent (%) by class + - name: glc_pc_u02 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {02} spatial extent (%) by class + - name: glc_pc_u03 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {03} spatial extent (%) by class + - name: glc_pc_u04 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {04} spatial extent (%) by class + - name: glc_pc_u05 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {05} spatial extent (%) by class + - name: glc_pc_u06 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {06} spatial extent (%) by class + - name: glc_pc_u07 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {07} spatial extent (%) by class + - name: glc_pc_u08 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {08} spatial extent (%) by class + - name: glc_pc_u09 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {09} spatial extent (%) by class + - name: glc_pc_u10 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {10} spatial extent (%) by class + - name: glc_pc_u11 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {11} spatial extent (%) by class + - name: glc_pc_u12 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {12} spatial extent (%) by class + - name: glc_pc_u13 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {13} spatial extent (%) by class + - name: glc_pc_u14 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {14} spatial extent (%) by class + - name: glc_pc_u15 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {15} spatial extent (%) by class + - name: glc_pc_u16 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {16} spatial extent (%) by class + - name: glc_pc_u17 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {17} spatial extent (%) by class + - name: glc_pc_u18 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {18} spatial extent (%) by class + - name: glc_pc_u19 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {19} spatial extent (%) by class + - name: glc_pc_u20 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {20} spatial extent (%) by class + - name: glc_pc_u21 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {21} spatial extent (%) by class + - name: glc_pc_u22 + description: Land Cover Extent {u} in total watershed upstream of lake pour + point {22} spatial extent (%) by class + - name: pnv_cl_vmj + description: Potential Natural Vegetation Classes {v} within 3 km vicinity + of lake {mj} spatial majority + - name: pnv_pc_v01 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {01} spatial extent (%) by class + - name: pnv_pc_v02 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {02} spatial extent (%) by class + - name: pnv_pc_v03 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {03} spatial extent (%) by class + - name: pnv_pc_v04 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {04} spatial extent (%) by class + - name: pnv_pc_v05 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {05} spatial extent (%) by class + - name: pnv_pc_v06 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {06} spatial extent (%) by class + - name: pnv_pc_v07 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {07} spatial extent (%) by class + - name: pnv_pc_v08 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {08} spatial extent (%) by class + - name: pnv_pc_v09 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {09} spatial extent (%) by class + - name: pnv_pc_v10 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {10} spatial extent (%) by class + - name: pnv_pc_v11 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {11} spatial extent (%) by class + - name: pnv_pc_v12 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {12} spatial extent (%) by class + - name: pnv_pc_v13 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {13} spatial extent (%) by class + - name: pnv_pc_v14 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {14} spatial extent (%) by class + - name: pnv_pc_v15 + description: Potential Natural Vegetation Extent {v} within 3 km vicinity + of lake {15} spatial extent (%) by class + - name: pnv_pc_u01 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {01} spatial extent (%) by class + - name: pnv_pc_u02 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {02} spatial extent (%) by class + - name: pnv_pc_u03 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {03} spatial extent (%) by class + - name: pnv_pc_u04 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {04} spatial extent (%) by class + - name: pnv_pc_u05 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {05} spatial extent (%) by class + - name: pnv_pc_u06 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {06} spatial extent (%) by class + - name: pnv_pc_u07 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {07} spatial extent (%) by class + - name: pnv_pc_u08 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {08} spatial extent (%) by class + - name: pnv_pc_u09 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {09} spatial extent (%) by class + - name: pnv_pc_u10 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {10} spatial extent (%) by class + - name: pnv_pc_u11 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {11} spatial extent (%) by class + - name: pnv_pc_u12 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {12} spatial extent (%) by class + - name: pnv_pc_u13 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {13} spatial extent (%) by class + - name: pnv_pc_u14 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {14} spatial extent (%) by class + - name: pnv_pc_u15 + description: Potential Natural Vegetation Extent {u} in total watershed upstream + of lake pour point {15} spatial extent (%) by class + - name: wet_cl_vmj + description: Wetland Classes {v} within 3 km vicinity of lake {mj} spatial + majority + - name: wet_pc_vg1 + description: vazio + - name: wet_pc_ug1 + description: vazio + - name: wet_pc_vg2 + description: vazio + - name: wet_pc_ug2 + description: vazio + - name: wet_pc_v01 + description: Wetland Extent {v} within 3 km vicinity of lake {01} spatial + extent (%) by class + - name: wet_pc_v02 + description: Wetland Extent {v} within 3 km vicinity of lake {02} spatial + extent (%) by class + - name: wet_pc_v03 + description: Wetland Extent {v} within 3 km vicinity of lake {03} spatial + extent (%) by class + - name: wet_pc_v04 + description: Wetland Extent {v} within 3 km vicinity of lake {04} spatial + extent (%) by class + - name: wet_pc_v05 + description: Wetland Extent {v} within 3 km vicinity of lake {05} spatial + extent (%) by class + - name: wet_pc_v06 + description: Wetland Extent {v} within 3 km vicinity of lake {06} spatial + extent (%) by class + - name: wet_pc_v07 + description: Wetland Extent {v} within 3 km vicinity of lake {07} spatial + extent (%) by class + - name: wet_pc_v08 + description: Wetland Extent {v} within 3 km vicinity of lake {08} spatial + extent (%) by class + - name: wet_pc_v09 + description: Wetland Extent {v} within 3 km vicinity of lake {09} spatial + extent (%) by class + - name: wet_pc_u01 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {01} spatial extent (%) by class + - name: wet_pc_u02 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {02} spatial extent (%) by class + - name: wet_pc_u03 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {03} spatial extent (%) by class + - name: wet_pc_u04 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {04} spatial extent (%) by class + - name: wet_pc_u05 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {05} spatial extent (%) by class + - name: wet_pc_u06 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {06} spatial extent (%) by class + - name: wet_pc_u07 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {07} spatial extent (%) by class + - name: wet_pc_u08 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {08} spatial extent (%) by class + - name: wet_pc_u09 + description: Wetland Extent {u} in total watershed upstream of lake pour point + {09} spatial extent (%) by class + - name: for_pc_vse + description: Forest Cover Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: for_pc_use + description: Forest Cover Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: crp_pc_vse + description: Cropland Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: crp_pc_use + description: Cropland Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: pst_pc_vse + description: Pasture Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: pst_pc_use + description: Pasture Extent {u} in total watershed upstream of lake pour point + {se} spatial extent (%) + - name: ire_pc_vse + description: Irrigated Area Extent (Equipped) {v} within 3 km vicinity of + lake {se} spatial extent (%) + - name: ire_pc_use + description: Irrigated Area Extent (Equipped) {u} in total watershed upstream + of lake pour point {se} spatial extent (%) + - name: gla_pc_vse + description: Glacier Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: gla_pc_use + description: Glacier Extent {u} in total watershed upstream of lake pour point + {se} spatial extent (%) + - name: prm_pc_vse + description: Permafrost Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: prm_pc_use + description: Permafrost Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: pac_pc_lse + description: Protected Area Extent {l} inside lake polygon {se} spatial extent + (%) + - name: pac_pc_use + description: Protected Area Extent {u} in total watershed upstream of lake + pour point {se} spatial extent (%) + - name: tbi_cl_lmj + description: Terrestrial Biomes {l} inside lake polygon {mj} spatial majority + - name: tec_cl_lmj + description: Terrestrial Ecoregions {l} inside lake polygon {mj} spatial majority + - name: fmh_cl_lmj + description: Freshwater Major Habitat Types {l} inside lake polygon {mj} spatial + majority + - name: fec_cl_lmj + description: Freshwater Ecoregions {l} inside lake polygon {mj} spatial majority + - name: cly_pc_vav + description: Clay Fraction in Soil {v} within 3 km vicinity of lake {av} average + - name: cly_pc_uav + description: Clay Fraction in Soil {u} in total watershed upstream of lake + pour point {av} average + - name: slt_pc_vav + description: Silt Fraction in Soil {v} within 3 km vicinity of lake {av} average + - name: slt_pc_uav + description: Silt Fraction in Soil {u} in total watershed upstream of lake + pour point {av} average + - name: snd_pc_vav + description: Sand Fraction in Soil {v} within 3 km vicinity of lake {av} average + - name: snd_pc_uav + description: Sand Fraction in Soil {u} in total watershed upstream of lake + pour point {av} average + - name: soc_th_vav + description: Organic Carbon Content in Soil {v} within 3 km vicinity of lake + {av} average + - name: soc_th_uav + description: Organic Carbon Content in Soil {u} in total watershed upstream + of lake pour point {av} average + - name: swc_pc_vyr + description: Soil Water Content {v} within 3 km vicinity of lake {yr} annual + average + - name: swc_pc_uyr + description: Soil Water Content {u} in total watershed upstream of lake pour + point {yr} annual average + - name: swc_pc_v01 + description: Soil Water Content {v} within 3 km vicinity of lake {01} monthly + average + - name: swc_pc_v02 + description: Soil Water Content {v} within 3 km vicinity of lake {02} monthly + average + - name: swc_pc_v03 + description: Soil Water Content {v} within 3 km vicinity of lake {03} monthly + average + - name: swc_pc_v04 + description: Soil Water Content {v} within 3 km vicinity of lake {04} monthly + average + - name: swc_pc_v05 + description: Soil Water Content {v} within 3 km vicinity of lake {05} monthly + average + - name: swc_pc_v06 + description: Soil Water Content {v} within 3 km vicinity of lake {06} monthly + average + - name: swc_pc_v07 + description: Soil Water Content {v} within 3 km vicinity of lake {07} monthly + average + - name: swc_pc_v08 + description: Soil Water Content {v} within 3 km vicinity of lake {08} monthly + average + - name: swc_pc_v09 + description: Soil Water Content {v} within 3 km vicinity of lake {09} monthly + average + - name: swc_pc_v10 + description: Soil Water Content {v} within 3 km vicinity of lake {10} monthly + average + - name: swc_pc_v11 + description: Soil Water Content {v} within 3 km vicinity of lake {11} monthly + average + - name: swc_pc_v12 + description: Soil Water Content {v} within 3 km vicinity of lake {12} monthly + average + - name: lit_cl_vmj + description: Lithological Classes {v} within 3 km vicinity of lake {mj} spatial + majority + - name: kar_pc_vse + description: Karst Area Extent {v} within 3 km vicinity of lake {se} spatial + extent (%) + - name: kar_pc_use + description: Karst Area Extent {u} in total watershed upstream of lake pour + point {se} spatial extent (%) + - name: ero_kh_vav + description: Soil Erosion {v} within 3 km vicinity of lake {av} average + - name: ero_kh_uav + description: Soil Erosion {u} in total watershed upstream of lake pour point + {av} average + - name: pop_ct_vsu + description: Population Count {v} within 3 km vicinity of lake {su} sum + - name: pop_ct_usu + description: Population Count {u} in total watershed upstream of lake pour + point {su} sum + - name: ppd_pk_vav + description: Population Density {v} within 3 km vicinity of lake {av} average + - name: ppd_pk_uav + description: Population Density {u} in total watershed upstream of lake pour + point {av} average + - name: urb_pc_vse + description: Urban Extent {v} within 3 km vicinity of lake {se} spatial extent + (%) + - name: urb_pc_use + description: Urban Extent {u} in total watershed upstream of lake pour point + {se} spatial extent (%) + - name: nli_ix_vav + description: Nighttime Lights {v} within 3 km vicinity of lake {av} average + - name: nli_ix_uav + description: Nighttime Lights {u} in total watershed upstream of lake pour + point {av} average + - name: rdd_mk_vav + description: Road Density {v} within 3 km vicinity of lake {av} average + - name: rdd_mk_uav + description: Road Density {u} in total watershed upstream of lake pour point + {av} average + - name: hft_ix_v93 + description: Human Footprint {v} within 3 km vicinity of lake {93} year 1993 + - name: hft_ix_u93 + description: Human Footprint {u} in total watershed upstream of lake pour + point {93} year 1993 + - name: hft_ix_v09 + description: Human Footprint {v} within 3 km vicinity of lake {09} year 2009 + - name: hft_ix_u09 + description: Human Footprint {u} in total watershed upstream of lake pour + point {09} year 2009 + - name: gad_id_lmj + description: Global Administrative Areas {l} inside lake polygon {mj} spatial + majority + - name: gdp_ud_vav + description: Gross Domestic Product {v} within 3 km vicinity of lake {av} + average + - name: gdp_ud_vsu + description: Gross Domestic Product {v} within 3 km vicinity of lake {su} + sum + - name: gdp_ud_usu + description: Gross Domestic Product {u} in total watershed upstream of lake + pour point {su} sum + - name: hdi_ix_vav + description: Human Development Index {v} within 3 km vicinity of lake {av} + average + - name: geometry + description: Data layers are provided in geographic (latitude/longitude) projection, referenced to datumnWGS84 \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql index 00ffa2d1..8bc27de1 100644 --- a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__basins_atlas.sql @@ -302,5 +302,5 @@ SAFE_CAST(gdp_ud_sav AS INT64) gdp_ud_sav, SAFE_CAST(gdp_ud_ssu AS INT64) gdp_ud_ssu, SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, SAFE_CAST(hdi_ix_sav AS INT64) hdi_ix_sav, -ST_GEOGFROMTEXT(geometry) geometry +ST_GEOGFROMTEXT(geometry, make_valid => TRUE) geometry FROM basedosdados-staging.world_wwf_hydrosheds_staging.basins_atlas AS t \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql index b7259737..81f9eb2e 100644 --- a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__lakes_atlas.sql @@ -313,5 +313,5 @@ SAFE_CAST(gdp_ud_vav AS INT64) gdp_ud_vav, SAFE_CAST(gdp_ud_vsu AS INT64) gdp_ud_vsu, SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, SAFE_CAST(hdi_ix_vav AS INT64) hdi_ix_vav, -ST_GEOGFROMTEXT(geometry) geometry +ST_GEOGFROMTEXT(geometry, make_valid => TRUE) geometry FROM basedosdados-staging.world_wwf_hydrosheds_staging.lakes_atlas AS t \ No newline at end of file diff --git a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql index 10d7bcdd..2e09534b 100644 --- a/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql +++ b/models/world_wwf_hydrosheds/world_wwf_hydrosheds__rivers_atlas.sql @@ -303,5 +303,5 @@ SAFE_CAST(gdp_ud_cav AS INT64) gdp_ud_cav, SAFE_CAST(gdp_ud_csu AS INT64) gdp_ud_csu, SAFE_CAST(gdp_ud_usu AS INT64) gdp_ud_usu, SAFE_CAST(hdi_ix_cav AS INT64) hdi_ix_cav, -ST_GEOGFROMTEXT(geometry) geometry +ST_GEOGFROMTEXT(geometry, make_valid => TRUE) geometry FROM basedosdados-staging.world_wwf_hydrosheds_staging.rivers_atlas AS t \ No newline at end of file From 4eab762a0383cd6eee1405cf99ee2260a84adceb Mon Sep 17 00:00:00 2001 From: Ricardo Dahis Date: Mon, 22 Jan 2024 09:13:25 +1100 Subject: [PATCH 15/15] 2 new tables, patches --- .../br_tse_eleicoes__bens_candidato.sql | 3 +- .../br_tse_eleicoes__candidatos.sql | 3 +- .../br_tse_eleicoes__despesas_candidato.sql | 3 +- .../br_tse_eleicoes__receitas_candidato.sql | 3 +- .../br_tse_eleicoes__receitas_comite.sql | 3 +- ...se_eleicoes__receitas_orgao_partidario.sql | 3 +- .../br_tse_eleicoes__resultados_candidato.sql | 3 +- ...e_eleicoes__resultados_candidato_secao.sql | 35 +++++++++ ...tse_eleicoes__resultados_partido_secao.sql | 33 +++++++++ models/br_tse_eleicoes/schema.yml | 72 +++++++++++++++++-- 10 files changed, 149 insertions(+), 12 deletions(-) create mode 100644 models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato_secao.sql create mode 100644 models/br_tse_eleicoes/br_tse_eleicoes__resultados_partido_secao.sql diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql index 5770aefd..9efb5499 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__bens_candidato.sql @@ -11,7 +11,8 @@ "end": 2022, "interval": 2 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql b/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql index f5f78bf3..1cb2ce6c 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__candidatos.sql @@ -11,7 +11,8 @@ "end": 2022, "interval": 2 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql index 8ddbcfac..4b7a804c 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__despesas_candidato.sql @@ -12,7 +12,8 @@ SELECT "end": 2022, "interval": 2 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql index 425476d5..7a18f573 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_candidato.sql @@ -11,7 +11,8 @@ "end": 2022, "interval": 2 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql index 1cd0cdb8..e7644a4f 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_comite.sql @@ -11,7 +11,8 @@ "end": 2014, "interval": 2 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql index 9aa4a978..d43e0f18 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__receitas_orgao_partidario.sql @@ -11,7 +11,8 @@ "end": 2022, "interval": 2 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql index 2a1c02c3..0ff6f721 100644 --- a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql +++ b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato.sql @@ -11,7 +11,8 @@ "end": 2022, "interval": 1 } - } + }, + cluster_by=["sigla_uf"], ) }} diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato_secao.sql b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato_secao.sql new file mode 100644 index 00000000..aea7d81e --- /dev/null +++ b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_candidato_secao.sql @@ -0,0 +1,35 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'resultados_candidato_secao', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 1994, + "end": 2022, + "interval": 2 + } + }, + cluster_by=["sigla_uf"], + ) +}} + +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(turno AS INT64) turno, +SAFE_CAST(tipo_eleicao AS STRING) tipo_eleicao, +SAFE_CAST(sigla_uf AS STRING) sigla_uf, +SAFE_CAST(id_municipio AS STRING) id_municipio, +SAFE_CAST(id_municipio_tse AS STRING) id_municipio_tse, +SAFE_CAST(zona AS STRING) zona, +SAFE_CAST(secao AS STRING) secao, +SAFE_CAST(cargo AS STRING) cargo, +SAFE_CAST(numero_partido AS STRING) numero_partido, +SAFE_CAST(sigla_partido AS STRING) sigla_partido, +SAFE_CAST(sequencial_candidato AS STRING) sequencial_candidato, +SAFE_CAST(numero_candidato AS STRING) numero_candidato, +SAFE_CAST(id_candidato_bd AS STRING) id_candidato_bd, +SAFE_CAST(votos AS INT64) votos +FROM basedosdados-staging.br_tse_eleicoes_staging.resultados_candidato_secao AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/br_tse_eleicoes__resultados_partido_secao.sql b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_partido_secao.sql new file mode 100644 index 00000000..8b8840a4 --- /dev/null +++ b/models/br_tse_eleicoes/br_tse_eleicoes__resultados_partido_secao.sql @@ -0,0 +1,33 @@ +{{ + config( + schema='br_tse_eleicoes', + alias = 'resultados_partido_secao', + materialized='table', + partition_by={ + "field": "ano", + "data_type": "int64", + "range": { + "start": 1994, + "end": 2022, + "interval": 2 + } + }, + cluster_by=["sigla_uf"], + ) +}} + +SELECT +SAFE_CAST(ano AS INT64) ano, +SAFE_CAST(turno AS INT64) turno, +SAFE_CAST(tipo_eleicao AS STRING) tipo_eleicao, +SAFE_CAST(sigla_uf AS STRING) sigla_uf, +SAFE_CAST(id_municipio AS STRING) id_municipio, +SAFE_CAST(id_municipio_tse AS STRING) id_municipio_tse, +SAFE_CAST(zona AS STRING) zona, +SAFE_CAST(secao AS STRING) secao, +SAFE_CAST(cargo AS STRING) cargo, +SAFE_CAST(numero_partido AS STRING) numero_partido, +SAFE_CAST(sigla_partido AS STRING) sigla_partido, +SAFE_CAST(votos_nominais AS INT64) votos_nominais, +SAFE_CAST(votos_nao_nominais AS INT64) votos_nao_nominais +FROM basedosdados-staging.br_tse_eleicoes_staging.resultados_partido_secao AS t \ No newline at end of file diff --git a/models/br_tse_eleicoes/schema.yml b/models/br_tse_eleicoes/schema.yml index aa943877..d5a65f6e 100644 --- a/models/br_tse_eleicoes/schema.yml +++ b/models/br_tse_eleicoes/schema.yml @@ -2,7 +2,7 @@ version: 2 models: - name: br_tse_eleicoes__candidatos - description: "microdados de candidatos" + description: "Microdados de candidatos" columns: - name: ano description: Ano @@ -71,7 +71,7 @@ models: - name: prestou_contas description: Indicador de prestação de contas - name: br_tse_eleicoes__bens_candidato - description: "microdados bens candidato" + description: "Microdados bens candidato" columns: - name: ano description: Ano @@ -92,7 +92,7 @@ models: - name: valor_item description: Valor do Item (R$) - name: br_tse_eleicoes__receitas_candidato - description: microdados receitas candidato + description: Microdados receitas candidato columns: - name: ano description: Ano @@ -209,7 +209,7 @@ models: - name: entrega_conjunto description: Entrega em conjunto - name: br_tse_eleicoes__despesas_candidato - description: microdados despesas candidato + description: Microdados despesas candidato columns: - name: ano description: Ano @@ -511,4 +511,66 @@ models: - name: resultado description: Resultado - name: votos - description: Número de votos \ No newline at end of file + description: Número de votos + - name: br_tse_eleicoes__resultados_candidato_secao + description: Resultados a nível de candidato e seção eleitoral. + columns: + - name: ano + description: Ano + - name: turno + description: Turno + - name: tipo_eleicao + description: Tipo da eleição + - name: sigla_uf + description: Sigla da unidade da federação + - name: id_municipio + description: ID Município - IBGE 7 Dígitos + - name: id_municipio_tse + description: ID Município - TSE + - name: zona + description: Zona eleitoral + - name: secao + description: Seção eleitoral + - name: cargo + description: Cargo + - name: numero_partido + description: Número do partido + - name: sigla_partido + description: Sigla do partido + - name: sequencial_candidato + description: Sequencial do candidato + - name: numero_candidato + description: Número de candidato + - name: id_candidato_bd + description: ID Candidato - Base dos Dados + - name: votos + description: Número de votos + - name: br_tse_eleicoes__resultados_partido_secao + description: Resultados a nível de partido e seção eleitoral. + columns: + - name: ano + description: Ano + - name: turno + description: Turno + - name: tipo_eleicao + description: Tipo da eleição + - name: sigla_uf + description: Sigla da unidade da federação + - name: id_municipio + description: ID Município - IBGE 7 Dígitos + - name: id_municipio_tse + description: ID Município - TSE + - name: zona + description: Zona eleitoral + - name: secao + description: Seção eleitoral + - name: cargo + description: Cargo + - name: numero_partido + description: Número do partido + - name: sigla_partido + description: Sigla do partido + - name: votos_nominais + description: Número de votos nominais + - name: votos_nao_nominais + description: Número de votos não-nominais \ No newline at end of file