; docformat = 'rst' ; ; NAME: ; GENOIDE_XMLOPEN ; PURPOSE: ; Open a file, print a VOTable header for Genoide, and return the file unit ;+ ; :Description: ; Open a file, print a VOTable header for Genoide, and return the file unit ; ; The suite of small routines GENOIDE_XML... allow to open, complete, close, read ; an XML file in the Genoid standards. ; ; :Categories: ; Disk I/O, Genoide ; ; :Params: ; FILE: in, required, type=string ; The path to the file to be opened ; nRow: in, optional, type=integer ; Number of epochs to be subsequently added to the file ; ; :Returns: The file unit to be subsequently use to fill the file. ; ; :Author: ; B.Carry (IMCCE) ; ; :History: ; Change History:: ; Written in July 2013, B. Carry (IMCCE) ; 2013 Sep. - B.Carry (IMCCE) - Allow unknown number of rowk ;- function genoide_xmlOpen, FILE, nRow ;--I-- Open the File for Writing openw, unit, file, /GET_LUN ;--II-- XML Header printf, unit, '' printf, unit, '' printf, unit, ' ' printf, unit, ' ' ;--III-- Number of Row if keyword_set(NROW) then printf, unit, ' ' $ else printf, unit, ' ' ;--IV-- Significance of Columns printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' printf, unit, ' ' ;--V-- Return the File Unit (for File Completion) return, unit end