Hi Nathan, <div><br><div>Thanks for your response. In fact I was reading your blog yesterday itself. gdal_calc.py may be of my help. I will explore that option.</div><div><br></div><div>I would be happy to receive a little more elaboration on how to write shell script for automating this calculation for entire directory? I am aware that you have already written it in on your blog at DEM generation. </div>
<div>However, if you can suggest how to write shell script specific to once need would be really great.</div><div><br></div><div>Thanks a ton!</div><div><br></div><div><div>Swapnil</div><div> o__</div><div> _> /__</div>
<div> (_) \(_)....... live healthy</div><br>
<br><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 12:58 PM, Nathan Woodrow <span dir="ltr"><<a href="mailto:madmanwoo@gmail.com">madmanwoo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can try gdal_calc.py<div><br></div><div><a href="http://smathermather.wordpress.com/2011/12/01/gdal_calc-py-raster-calculator-using-numby-functions/" target="_blank">http://smathermather.wordpress.com/2011/12/01/gdal_calc-py-raster-calculator-using-numby-functions/</a></div>
<div><br></div><div>- Nathan<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Apr 6, 2012 at 4:35 PM, Swapnil Chaudhari <span dir="ltr"><<a href="mailto:swapsslan@gmail.com" target="_blank">swapsslan@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Dear QGIS User Team, <div><br><div>I have sets of grid files, corresponding to monthly mean temperature for few years.</div><div><br></div><div>I am working on scaling the raw data and modifying the extent of output file from -180,180,-90,90 to -180,180,-60, 90.</div>
<div><br></div><div>The process of doing this with Raster Calculator is straight and very simple, where you have to give raster calculation expression, output extent and name of output with its format. </div><div>The scaling equation for doing so e.g. is, (cru_tmp_clim_<a href="tel:1961-1970" value="+6119611970" target="_blank">1961-1970</a>_05@1*0.51)-85</div>
<div><br></div><div>Although very simple, its very time consuming since I have data for around 6 to 7 dacads. </div><div><br></div><div>I would be very glad if some one can help me find the python script for doing this in loop. So that I can process whole directory in single go. </div>
<div><br></div><div>In addition to that, I would also request you to inform mannaul, guide to learn python scripting for simple raster and vector operations.</div><div><br></div><div>You efforts in helping with this is much appreciated. </div>
<div><br></div><div>Thank you very much. </div><div><br></div><div>Best, </div><div><br></div><div><div>Swapnil</div><div> o__</div><div> _> /__</div><div> (_) \(_)....... live healthy</div><br>
</div></div>
<br></div></div>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div>