2

Is there any way that I can do a batch process in projecting hdf files wherein I could get and include only the geospatial_lat and lon in the batch script since every hdf file have different geospatial extent.

  • 1
    Have you tried gdalwarp -geoloc on the subdatasets of the hdf? If it works manually, you can put it into a batch file as well. – AndreJ Apr 30 '15 at 8:45
  • Does having an unknown projection will affect the output? I have tried the geoloc but the output was divided into three and it has big spaces between each of the divided image. I don't have any idea what is causing these spaces. – user Apr 30 '15 at 9:15
  • 1
    The output does not have to be continuos. Think of aerial/satellite imagery taken during orbiting around the Earth. This may cover only a limited part of the globe, according to the flight route and sensor width. – AndreJ Apr 30 '15 at 9:40
  • @AndreJ - Thank you for that wonderful explanation. I just want to know after doing this process, does this mean the output file is already projected or not? – user May 3 '15 at 9:06
  • Assuming the geolocation is given in lat/lon, the output will be in EPSG:4326. If you want another CRS, you have to add -t_srs with the target CRS you want. – AndreJ May 3 '15 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.