final StringBuffer buff = new StringBuffer(baseFile);
// looking for another extension
final Set ext=WorldImageFormat.getWorldExtension(extension);
final Iterator it=ext.iterator();
if(!it.hasNext())
throw new DataSourceException("Unable to parse extension "+extension);
buff.append((String)it.next());
final File worldFile = new File(buff.toString());
final PrintWriter out = new PrintWriter(new FileOutputStream(worldFile));
out.println(xPixelSize);
out.println(rotation1);