Well why dont you answer the question yourself? you dont even need a script, you can easily test it by using the sky cube image directly as command line parameter.
I guess the maximum size on any 3D card is 6144x1024. 1365 can't work because its no power of 2, and sky cubes bigger than 1024 make no sense anyway. 3072x512 is enough in most cases.