I have to give up on this. I do not have any experience with the GDAL library. The GDAL library is a collection of functions that can be used to process images received from satellites. The images are in a form of digital information containing vector values along with Raster information. This type of mathematics is associated with a special set of calculus stuff.
The key issue is the original poster of this thread has a program that he can use from a command line, but cannot be used in a batch file. From what little research. I've been able to do on this, this seems to be typical of some script languages. One example could be Python. When using Python. One has a command line interface in Python that accepts Python programs. However, Python does not have a DOS shell that executes DOS programs for Windows. Well, at least not to my knowledge. The singular issue would be if one was using VBA, visual basic for applications, another script language that has power similar to that of Python and other interpretive languages.
My own limited experience is to use some kind of a hack. When I need to combine a DOS batch file with some kind of interpreter that does not have a usable DOS shell a hack usually means creating files that contain the parameters needed by the interpreter and having the interpreter get its parameters from the file and then passing it on to the function.
But I am not able to help the original poster with this. I don't know which is the script language being used here. I think it is Python. Buffett is Python, it would make more sense to the in entire job inside the Python rather than shelling out to the Windows DOS command.
So I'm kind of stuck here and I like anybody to step in and try to sort this out.
Another problem here is the original poster is making a big fuss about dating system. It should not be necessary to have to resort to copulating dates of leap years and ordinary years and that kind of stuff. Most programming languages have some way to deal with that without using a lot of script commands trying to figure out which days are leap you days in which years early. Pearson that kind of stuff.
In other words, this treaty should not be a batch program. The program that deals with image transformation should be written in that language, and not have to resort to DOS to create a list of objects to be processed. I have no idea why someone would have told him to do it in batch instead of doing it in the language of the interpreter.
About GDAL
http://en.wikipedia.org/wiki/GDALgdal_calculate
Extract Point From Raster in GDALIt is very annoying when people do not say what language the are using. And even when you know which, there is the question of implementation and library.
version. Here is part of what I said to the OP in a PM.
Presently you can use
the gdal_calculate command directly on command line
... _right?
My research indicates that the command itself is a script and can not be executed in a batch file. Where is you get the bath file?
In windows a limited number of external commands are recognized. Such fhave to be in tghe directory or path and must be one of:
.COM
.EXE
.BAT
.VBS
.XML
Python is not a standard feature in Widows.
Sorry I can not solve this. My mental posers are not a sharp as the used to be.