[Qgis-user] How-to-Batch_convert the Spatial resolution of a set of >100 Geotiff files from 500m to 1000m

Nicolas Cadieux njacadieux.gitlab at gmail.com
Tue May 31 12:45:15 PDT 2022


Hi,

What ever you do, make sure you use the correct resampling method in all your datasets.

Nicolas Cadieux
https://gitlab.com/njacadieux

> Le 31 mai 2022 à 15:42, Nicolas Cadieux <njacadieux.gitlab at gmail.com> a écrit :
> 
> Hi,
> 
> I think you need a 64bit version of Windows…. Make sure it’s compatible with Windows 7.  You may need Windows 10 because of the latest versions of Python…
> 
> Nicolas Cadieux
> https://gitlab.com/njacadieux
> 
>>> Le 31 mai 2022 à 15:38, Amal Kar via Qgis-user <qgis-user at lists.osgeo.org> a écrit :
>>> 
>> 
>> THANK YOU VERY MUCH, SIR!
>> I shall first replace my present QGIS software (ver. 3.18.2, Zurich) with  the new one (ver. 3.24), and then use the procedure for batch processing. 
>> Hope the new version runs on my old Windows 7.
>> Thanks again for the tips.
>> Regards,
>> amal kar.
>> -- -----------------------------
>> 
>>> On Tue, 31 May 2022 at 21:28, Randal Hale <rjhale at northrivergeographic.com> wrote:
>>> Depending on which version of QGIS you have (3.22, 3.24  - you can select the "translate" command in the processing toolbox (you'll find that under gdal -> raster conversion) and either right click the tool and run as batch process or in 3.24 you can select the batch button from the translate menu. 
>>> 
>>> You can grab all the imagery from a directory and convert it. I will admit that batch processing does throw me off just a bit - BUT - work with it and it should do what you want. 
>>> 
>>> Randy
>>> 
>>> On 5/31/22 11:28, Amal Kar via Qgis-user wrote:
>>>> Hello,
>>>> I am new to QGIS. 
>>>> Recently i downloaded a set of MODIS Terra surface reflectance Daily data for a fixed rectangular area of my interest (118 daily files for each of the bands 1-4 and for years 2000-2020), using the AppEEARS tool (NASA-USGS-LP DAAC) in geotiff format (WGS 84; LatLong). 
>>>> I wanted to convert the original data in 500 m spatial resolution
>>>> (0.0041667 arc deg; 2985 col x 1671 row for each scene) to 1 km resolution (0.00833333 arc deg; 1493 col x 836 row), so that i am able to create Max.value (& Min. value) Composites (MVCs) for consecutive 8-Day periods at 1 km resolution and then analyse the data sets for matching with other 8-Day data series available  at 1 km resolution from Modis Terra sites. 
>>>> No downloaded data from AppEEARS is automatically 'imported" to my Idrisi software (neither geotiff, nor netCDF; same is the case with my GlobalMapper 8.0 software also; the same formats from other sites get converted easily). The file format could be read in my QGIS Desktop software (ver. 3.18.2; Zurich), and then exported either in geotiff or other formats (incl. idrisi) in whatever  resolution, etc., i chose. 
>>>> Although i am doing it file by file, this is a huge back-breaking pre-processing task. 
>>>> I was thinking if there is any tool in QGIS for automatic batch processing of the data (say, 50 or 100 at one time, once i select the "Raster datasets" and  "add" them in the given Box under "Data Source Manager"). Presently, after adding the datafiles, i have to select one raster image at a time and "Export" it with the desired resolution/ file format, etc. It helps if i am able to select all the files together, give one output resolution value and one desired file format for all the files to be processed). It also helps if the output data file uses the same name as given for the input file, but allows the user to provide a short prefix to each of them (say 4-6 letters, either replacing the first 4-6 ones, or adding to the given names).  
>>>> Once i am able to pre-process the data quickly, i am thinking of trying my QGIS for cloud removal (by providing a zero, No Data value to the cloud pixels) and then try it for getting MVCs for consecutive 8-day periods.
>>>> Thanks for your patience, and kind regards,
>>>> amal kar.
>>>> 
>>>> -- 
>>>> Dr. Amal Kar
>>>> Former Principal Scientist and Head, Division of Natural Resources & Environment,
>>>> Central Arid Zone Research Institute, Jodhpur 342003, India
>>>> A-1/6, Baitalik Housing Society, KMDA Housing Complex,
>>>> Baghajatin (Near Hiland Park),
>>>> KOLKATA 700 094, India
>>>> Email: akarcaz50 at gmail.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Qgis-user mailing list
>>>> Qgis-user at lists.osgeo.org
>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> -- 
>>> -------------------------------------
>>> Randal Hale
>>> rjhale at northrivergeographic.com
>>> https://www.northrivergeographic.com
>> 
>> 
>> -- 
>> Dr. Amal Kar
>> Former Principal Scientist and Head, Division of Natural Resources & Environment,
>> Central Arid Zone Research Institute, Jodhpur 342003, India
>> A-1/6, Baitalik Housing Society, KMDA Housing Complex,
>> Baghajatin (Near Hiland Park),
>> KOLKATA 700 094, India
>> Email: akarcaz50 at gmail.com
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220531/5a6de495/attachment.htm>


More information about the Qgis-user mailing list