fr:develop:utilisation:cli

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
fr:develop:utilisation:cli [2021/03/01 16:37] qroyerfr:develop:utilisation:cli [2023/12/15 13:59] qroyer
Line 1: Line 1:
-===== Utilisation en ligne de commande (CLI) ===== +===== Avec un terminal (CLI) ===== 
-Dans un terminal Windows, tapez : 'habby.exe' suivis de la commande souhaitée :+ 
 +FIXME En travaux .. FIXME 
 + 
 +Dans un terminal Windows, tapez : 'habby.exe' ou 'python.exe habby.py' suivis de la commande souhaitée.
  
   * LIST_COMMAND : liste toutes commandes disponibles ;   * LIST_COMMAND : liste toutes commandes disponibles ;
   * CREATE_PROJECT : création d'un projet ;   * CREATE_PROJECT : création d'un projet ;
   * CREATE_HYD : création d'un fichier hydraulique .hyd ;   * CREATE_HYD : création d'un fichier hydraulique .hyd ;
-  * LOAD_SUB : création d'un fichier substrat .sub ;+  * CREATE_SUB : création d'un fichier substrat .sub ;
   * MERGE_GRID_SUB : création d'un fichier habitat .hab ;   * MERGE_GRID_SUB : création d'un fichier habitat .hab ;
   * RUN_HABITAT : calcul des valeurs d'habitat à partir d'un fichier .hab ;   * RUN_HABITAT : calcul des valeurs d'habitat à partir d'un fichier .hab ;
Line 13: Line 16:
   * RUN_STATHAB : lance le calcul Stathab ;   * RUN_STATHAB : lance le calcul Stathab ;
   * RUN_FSTRESS : lance le calcul FStress.   * RUN_FSTRESS : lance le calcul FStress.
 +
 +Lien vers la doc sphinx FIXME
 +
 +Quelques exemples :
 +
 +  CREATE_PROJECT path_prj=C:\Users\user.name\Documents\HABBY_projects\DefaultProj
 +
 +  CREATE_HYD model=TELEMAC inputfile="input_file.txt" cut=True outputfilename=cli_test.hyd path_prj=C:\Users\user.name\Documents\HABBY_projects\DefaultProj  
 +  CREATE_HYD model=TELEMAC inputfile="input_file.slf" unit_list=5400.0,7200.0 cut=True outputfilename=cli_test.hyd outputfilename=input_file_spe.hyd path_prj=C:\Users\user.name\Document\HABBY_projects\DefaultProj
 +
 +  CREATE_SUB substrate_mapping_method=polygon inputfile=sub_durance_PolygonCemagrefPercent_gpkg\sub_durance_PolygonCemagrefPercent_gpkg.gpkg path_prj=C:\Users\user.name\Document\HABBY_projects\DefaultProj
 +
 +  MERGE_GRID_SUB hyd=input_file_spe.hyd sub=sub_durance_PolygonCemagrefPercent_gpkg\sub_durance_PolygonCemagrefPercent_gpkg.sub outputfilename=a1_a5_a9_sub_durance_PolygonCemagrefPercent_gpkg.hab path_prj=C:\Users\user.name\Document\HABBY_projects\DefaultProj
 +
 +  RUN_HABITAT hab=a1_a5_a9_sub_durance_PolygonCemagrefPercent_gpkg.hab pref_file_list=biology\models\ABL01.xml,biology\models\ABL01.xml,biology\models\ABL01.xml,biology\models\BAM01b.xml,biology\models\BAM01b.xml,biology\models\BAM01b.xml,biology\models\BAM01.xml,biology\models\BAM01.xml,biology\models\BAM01.xml stage_list=adult,fry,juvenile,[0,45[,[120,270[,[45,120[,adult,fry,juvenile hyd_opt=HV,HV,HV,HV,HV,HV,HV,HV,HV sub_opt=Dominant,Dominant,Dominant,Coarser,Coarser,Coarser,Coarser,Coarser,Coarser path_prj=C:\Users\user.name\Document\HABBY_projects\DefaultProj
 +{{indexmenu_n>0}}
 +
 +  RUN_ESTIMHAB 0.09 1.5 9.26 12.42 0.23 0.37 1.5 0.04 1.2,2.6,0.1 path_prj="C:\Users\user.name\Documents\HABBY_projects\DefaultProj_CLI"
 +  RUN_ESTIMHAB 0.09 1.5 9.26 12.42 0.23 0.37 1.5 0.04 "...\discharge_chronicle_date.txt" path_prj="C:\Users\user.name\Documents\HABBY_projects\DefaultProj_CLI"
  • fr/develop/utilisation/cli.txt
  • Last modified: 2023/12/15 14:00
  • by qroyer