Skip to main content
deleted 18 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd /d %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs EPSG:4326 -te 113.205 1.120 157.105 2.005 HDF4_SDS:hdf:@file:01 %out_path%\@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd /d %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs EPSG:4326 -te 113.205 1.120 157.105 2.005 HDF4_SDS:hdf:@file:01 %out_path%\@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd /d %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs EPSG:4326 -te 113.205 1.120 157.105 2.005 HDF4_SDS:hdf:@file:01 %out_path%\@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Changes made in code to meet finally worked out solution
Source Link
jzol
  • 862
  • 6
  • 11

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd /d %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs 'proj=longlat +datum=WGS84'EPSG:4326 -te 113.205 1.120 157.105 2.005 @pathHDF4_SDS:hdf:@file:01 %out_path%/@fname%out_path%\@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs 'proj=longlat +datum=WGS84' -te 113.205 1.120 157.105 2.005 @path %out_path%/@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd /d %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs EPSG:4326 -te 113.205 1.120 157.105 2.005 HDF4_SDS:hdf:@file:01 %out_path%\@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

edited body
Source Link
jzol
  • 862
  • 6
  • 11

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones/

md %out_path%

cd %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs "proj=longlat'proj=longlat +datum=WGS84"+datum=WGS84' -te 113.205 1.120 157.105 2.005 @path %out_path%@fname%out_path%/@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones/

md %out_path%

cd %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs "proj=longlat +datum=WGS84" -te 113.205 1.120 157.105 2.005 @path %out_path%@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

Here is a solution as windows batch script, maybe it'll help:

set in_path=path_to_stored_hdfs
set out_path=path_to_proccessed_ones

md %out_path%

cd %in_path%

FORFILES /m *L2_LAC*.hdf /C "cmd /c gdalwarp -geoloc -t_srs 'proj=longlat +datum=WGS84' -te 113.205 1.120 157.105 2.005 @path %out_path%/@fname.tif"

Where /m is a mask to match desired filenames - for further details: http://ss64.com/nt/forfiles.html

Looking at your code I understand you've set GDAL path in system so gdalwarp should work.

Hope it helps!

small change in code
Source Link
jzol
  • 862
  • 6
  • 11
Loading
Corrected code, added more information about solution.
Source Link
jzol
  • 862
  • 6
  • 11
Loading
Source Link
jzol
  • 862
  • 6
  • 11
Loading