I have a large number of (nearly a thousand) rasters in .hdf (hdf4) format from the GLASS albedo product. Unfortunately there is a problem with the projection information/header data which means ARCGIS, GDAL, QGIS, SAGA, and GRASS all seem to have problems with the data/will not recognise the projection. This problem has been acknowledged by the product support team as a known issue, but will not be resolved until the next release, until which time they suggest manually editing the headers (see below).
The same is true in ENVI, but I correct the issue and use the data by opening a HDF file in ENVI, editing the envi header for that single file so the projection works, then copying the contents of that header to new text files (saved as .hdr) matching the names of all other files in the folder. This lets me open all those other data successfully in ENVI with the correct projection, however in other software/options it remains either entirely unrecognised/reads erroneously/causes a crash or appears without projection or even inverted. However, if data is opened using this approach in ENVI, and then exported as a Geotiff, it will then work in other software also.
For this reason I am looking for a way to batch export all multiband files in a folder and/subfolders to multiband geotiffs, using ONLY IDL or ENVI GUI, so I can then integrate the data successfully for use in processes/models we have in other software. I wish. It seems previous answers to this batch export question have suggested using GDAL translate, but as I mentioned, this does not seem to work for this data. Obviously exporting each of the hundreds of files individually in the ENVI GUI is not feasible either. Unfortunately I have no coding experience, so please forgive in advance any questions I have which may seem obvious to those used to coding/IDL.
Thanks for any help you can give,