public software.sextractor

[/] [trunk/] [src/] [xml.c] - Diff between revs 235 and 241

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 235 Rev 241
Line 20... Line 20...
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*       GNU General Public License for more details.
*       GNU General Public License for more details.
*       You should have received a copy of the GNU General Public License
*       You should have received a copy of the GNU General Public License
*       along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*       along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
*
*       Last modified:          11/10/2010
*       Last modified:          24/01/2011
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
 
 
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include        "config.h"
#include        "config.h"
Line 229... Line 229...
INPUT   Pointer to the output file (or stream),
INPUT   Pointer to the output file (or stream),
        Pointer to an error msg (or NULL).
        Pointer to an error msg (or NULL).
OUTPUT  RETURN_OK if everything went fine, RETURN_ERROR otherwise.
OUTPUT  RETURN_OK if everything went fine, RETURN_ERROR otherwise.
NOTES   -.
NOTES   -.
AUTHOR  E. Bertin (IAP)
AUTHOR  E. Bertin (IAP)
VERSION 03/08/2010
VERSION 24/01/2011
 ***/
 ***/
int     write_xml_meta(FILE *file, char *error)
int     write_xml_meta(FILE *file, char *error)
  {
  {
   char                 *pspath,*psuser, *pshost, *str;
   char                 *pspath,*psuser, *pshost, *str;
   struct tm            *tm;
   struct tm            *tm;
Line 752... Line 752...
        prefs.nassoc_param, prefs.assoc_param[0]);
        prefs.nassoc_param, prefs.assoc_param[0]);
      for (n=1; n<prefs.nassoc_param; n++)
      for (n=1; n<prefs.nassoc_param; n++)
        fprintf(file, " %d", prefs.assoc_param[n]);
        fprintf(file, " %d", prefs.assoc_param[n]);
      fprintf(file, "\"/>\n");
      fprintf(file, "\"/>\n");
      }
      }
 
    fprintf(file,
 
        "   <PARAM name=\"AssocCoord_Type\" datatype=\"char\" arraysize=\"*\""
 
        " ucd=\"meta.code;obs.param\" value=\"%s\"/>\n",
 
        key[findkeys("ASSOCCOORD_TYPE", keylist,
 
                        FIND_STRICT)].keylist[prefs.assoccoord_type]);
    fprintf(file, "   <PARAM name=\"Assoc_Radius\" datatype=\"float\""
    fprintf(file, "   <PARAM name=\"Assoc_Radius\" datatype=\"float\""
        " ucd=\"phys.size.radius;obs.param\" value=\"%g\" unit=\"pix\"/>\n",
        " ucd=\"phys.size.radius;obs.param\" value=\"%g\" unit=\"pix\"/>\n",
        prefs.assoc_radius);
        prefs.assoc_radius);
    fprintf(file,
    fprintf(file,
        "   <PARAM name=\"Assoc_Type\" datatype=\"char\" arraysize=\"*\""
        "   <PARAM name=\"Assoc_Type\" datatype=\"char\" arraysize=\"*\""