public void convertirEstaciones(String ruta, String nombre_archivo) {
        FileWriter out = null;
        File file = null;
        FileReader reader = null;
        BufferedReader bf = null;
        int cont_sta = 0;
        String r = "estaciones_convertidas";
        try {
            file = new File(ruta);
            reader = new FileReader(file);
            bf = new BufferedReader(reader);
            out = new FileWriter(nombre_archivo + ".sta");
            String line = "";
            String[] aux_line;
            String new_line = "";
            while ((line = bf.readLine()) != null) {
                if ((line.length() == 82 || line.length() == 63) && !line.contains("RESET")) {
                    aux_line = line.trim().replace("    ", "").split(" ");
                    if (aux_line.length == 5) {
                        String nom_esta = aux_line[0];
                        String dir_a = completarEspaciosIzquierda(convertirUnidades(aux_line[1].trim().substring(0, aux_line[1].length() - 1)), 8);
                        String dir_b = completarEspaciosIzquierda(convertirUnidades(aux_line[2].trim().substring(0, 7)), 8);
                        String klm = convertToKlm(Double.parseDouble(aux_line[2].trim().substring(8, 12)));
                        new_line = (cont_sta + " " + nom_esta + " " + dir_a + " " + dir_b + " " + klm).replace(",", ".");
                        out.write(new_line);
                        out.write(System.getProperty("line.separator"));
                        cont_sta++;
                    }
                }
            }
            out.close();
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Estaciones.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Estaciones.class.getName()).log(Level.SEVERE, null, ex);
        }
    }