Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
weights_of_evidence_file_conversion [2012/09/01 15:37]
admin created
weights_of_evidence_file_conversion [2012/09/13 05:02] (current)
hermann [Notes]
Line 1: Line 1:
-===== Weights of Evidence File Conversion =====+====== Weights of Evidence File Conversion ​======
  
-Nos mesmos moldes do JoinLookupTable,​ existe agora dentro da pasta de +Dinamica EGO 2.0 comes with an additional command line utility to convert ".dcf" files, used to store Weights of Evidence ranges and coefficients,​ into the corresponding ".csv" table set, used by the [[Genetic Algorithm Tool]] to represent the same information.
-instalação do Dinamica EGO 1.9.24 um utilitário chamado +
-ConvertWeightFiles usado para converter arquivos ​dcf de pesos de +
-evidencia em um conjunto de arquivos ​csv ou um conjunto de arquivos +
-csv de volta em um arquivo dcf de pesos de evidência.+
  
-O uso desse utilitário é o seguinte:+This utility is called ConvertWeightFiles and it can be found in the Dinamica EGO installation folder.
  
----------------------------------------- +===== Use ===== 
-Para converter dcf em csv (A pasta que conterá o resultado é criada +
-automaticamente a partir do nome do arquivo dcf). +
-"​c:​\program files\dinamica ego\ConvertWeightFiles"​ arquivo.dcf+
  
-Para converter csv em dcf +==== DCF to CSV ====
-"​c:​\program files\dinamica ego\ConvertWeightFiles"​ pasta_contendo_csv'​s+
  
-Os exemplos acima estão supondo que o Dinamica está instalado no +A "​.dcf"​ file can be converted into a set of "​.csv"​ tables using the syntax below. The folder ​storing the ".csv" ​tables is created automatically based on the ".dcf" ​filename.
-folder ""​c:\program files\dinamica ego\" +
-----------------------------------------+
  
-Os arquivos csv gerados a partir do arquivo ​dcf usam a seguinte +  "<​Folder where Dinamica EGO is installed>​\ConvertWeightFiles"​ <dcf filename>​ 
-convenção de nomes:+   
 +  "C:\Program Files\Dinamica EGO\ConvertWeightFiles"​ weights.dcf
  
-"​identificador_do_mapa-nome_da_variável-transição.csv"​ +==== CSV to DCF ====
-Ex: "​static_variables-d2mainroads-3_1.csv"​ (nesse caso, o +
-identificador do mapa é "​static_variables",​ a variável é "​d2mainroads"​ +
-e a transição é classe 3 para classe 1)+
  
-Para converter os cvs de volta em dcf, é preciso que os arquivos usem +A series of "​.csv"​ tables can be converted back to a ".dcf" files using the syntax below. All the "​.csv"​ tables must be located in the same folder.
-essa convenção de nomes.+
  
-Notem que esse utilitário é experimental mas torna mais simples o uso +   "<​Folder where Dinamica EGO is installed>​\ConvertWeightFiles"​ <folder where the csv tables are located> 
-da calibração usando algoritmos genéticos até que o problema seja +   ​ 
-resolvido de uma forma mais definitiva.+   "​C:​\Program Files\Dinamica EGO\ConvertWeightFiles"​ weights_dcf
  
 +===== Notes =====
 +
 +The "​.csv"​ tables generated from the "​.dcf"​ file have the following naming convention:
 +
 +   "<​map identifier>​-<​variable name>​-<​transition>​.csv"​
 +
 +Ex: "​static_variables-d2mainroads-3_1.csv"​ (in this example, the map identifier is "​static_variables",​ the variable is "​d2mainroads"​ and the transition is from class 3 to class 1)
 +
 +It is worth noting that, it is only possible to convert a set of "​.csv"​ files back into "​.dcf"​ if they use the naming convention specified above.
 +
 +----
 +Disclaimer: this is an experimental utility aimed to make the calibration of Weights of Evidence files using the Genetic Algorithm Tool simpler. Future version of Dinamica EGO will solve this problem using a more sophisticated and integrated approach.