Commit e83a2116f74e2f4f0ccaf9d3c0f60fa09c2a75ba

Authored by Jordi Inglada
1 parent dc3c782f
Exists in master

wip simplification fichier terlab

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
notebook/zonal_stats.org
... ... @@ -15,6 +15,16 @@ import pandas as pd
15 15  
16 16 * Simplification du fichier TERLAB
17 17 - Eliminer les géométries qui ne contiennent pas d'information de rendement.
  18 +#+BEGIN_SRC bash
  19 +source /home/inglada/OTB/SuperBuild/config_otb_py3.5.sh
  20 +ogrinfo -sql "select COUNT(*) from SURFACES-2017-PARCELLES-GRAPHIQUES-CONSTATEES_031_20180210" /work/OT/theia/oso/shapes/TERLAB/ SURFACES-2017-PARCELLES-GRAPHIQUES-CONSTATEES_031_20180210.shp SURFACES-2017-PARCELLES-GRAPHIQUES-CONSTATEES_031_20180210
  21 +#+END_SRC
  22 +
  23 +#+RESULTS:
  24 +
  25 +#+BEGIN_SRC bash
  26 +ogr2ogr -sql "SELECT * FROM ne_50m_populated_places_simple WHERE featurecla IN ('Admin-1 capital', 'Admin-1 region capital')" ne_50m_pop_place_admin1_cap.shp ne_50m_populated_places_simple.shp
  27 +#+END_SRC
18 28  
19 29 * Génération des fichiers de stats zonales
20 30 Le code est ici [[file:/work/OT/theia/oso/jordi/src/maassp/jobs/zonal_stats.pbs]]
... ...