// An imageJ macro to be used with exercice 
// Détection du cycle solaire
// by O. Marco
// Pour avoir les accents, enregistrer en format
// OCCIDENTAL WINDOWS LATIN 1
// sinon ça plante !


setBatchMode(false);

macroDir =getDirectory("SalsaJ");
homeDir  =getDirectory("home");

print("Home Dir: "+homeDir);
print("Macro Dir: "+macroDir);
print("Startup Dir: "+getDirectory("startup"));
print("Images Dir: "+getDirectory("image"));
print("Plugins Dir: "+getDirectory("plugins"));

print("Script to plot the spectra of the radial velocity spectra");

runMacro("Close_All_Windows.txt");


path=macroDir+"Data/images_radialvel/";

file=path+"fic01.fit";
run("Open a spectrum", "open=/Users/melchior/EUHOU/SalsaJ/Release/Data/images_radialvel/fic01.fit");
file=path+"fic02.fit";
run("Open a spectrum", "open="+file);
file=path+"fic03.fit";
run("Open a spectrum", "open="+file);


run("Sparer");
run("Tile");
run("Kachel");
run("Separar");
run("Disponi tutto");
run("Mosaico");
run("Sida vid sida");
run("Kaskada");

