Skip to content

Commit

Permalink
Change r.import command for r.in.gdal since several users notify prob…
Browse files Browse the repository at this point in the history
…lems with use of r.import
  • Loading branch information
tais committed May 18, 2018
1 parent 754c6b2 commit 88bef0d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"For optical and nDSM import, please adapt the input of the ['r.import' commands](https://grass.osgeo.org/grass73/manuals/r.import.html) to match your own data location."
"For optical and nDSM import, please adapt the input of the ['r.in.gdal' commands](https://grass.osgeo.org/grass73/manuals/r.in.gdal.html) to match your own data location."
]
},
{
Expand Down Expand Up @@ -716,7 +716,7 @@
"## Import optical imagery and rename band with color name\n",
"print (\"Importing optical raster imagery at \" + time.ctime())\n",
"\n",
"grass.run_command('r.import', input=\"F:\\\\....\\\\.....\\\\mosaique_georef_ordre2.tif\", output=\"optical\", overwrite=True)\n",
"grass.run_command('r.in.gdal', input=\"F:\\\\....\\\\.....\\\\mosaique_georef_ordre2.tif\", output=\"optical\", overwrite=True)\n",
"for rast in grass.list_strings(\"rast\"):\n",
" if rast.find(\"1\")!=-1: grass.run_command(\"g.rename\", overwrite=True, rast=(rast,\"opt_blue\"))\n",
" elif rast.find(\"2\")!=-1: grass.run_command(\"g.rename\", overwrite=True, rast=(rast,\"opt_green\"))\n",
Expand Down Expand Up @@ -753,7 +753,7 @@
"\n",
"## Import nDSM imagery \n",
"print (\"Importing nDSM raster imagery at \" + time.ctime())\n",
"grass.run_command('r.import', input=\"F:\\\\MAUPP\\\\.....\\\\Orthorectified\\\\mosaique_georef\\\\nDSM\\\\nDSM_mosaik_georef_ordre2.tif\", output=\"ndsm\", overwrite=True)\n",
"grass.run_command('r.in.gdal', input=\"F:\\\\MAUPP\\\\.....\\\\Orthorectified\\\\mosaique_georef\\\\nDSM\\\\nDSM_mosaik_georef_ordre2.tif\", output=\"ndsm\", overwrite=True)\n",
"\n",
"## Define null value for specific value in nDSM raster. Adapt the value to your own data. \n",
"# If there is no null value in your data, comment the next line\n",
Expand Down

0 comments on commit 88bef0d

Please sign in to comment.