CAOM XML records can be created and modified using customized software built off the
pyCAOM Python module. This
module enables the user to create more complex relations between
observational datasets than can be achieved using the fits2caom process. The
assists the user in creating CAOM objects which can then be written to
an XML file and uploaded to the CADC caom2repo service.
As this a Python module the installation follows a very standard pattern:
pip install https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/software/pyCAOM2-0.6.1.tar.gz
Or one can download the tar file, unpack and examine the contents and do the installation manually.
pyCAOM2 module require having the lxml module installed also.
pyCAOM2 is a python module that enables customized software to be written. One must build the various objects
that will make up the Observation records, put them together and then write out the XML.
ingest.py is a bare-bones example of how one might use
pyCAOM to build a CAOM XML record.
Download ingest.py and, assuming one has a single FITS image named exposure.fits then the command:
python ingest.py exposure.fits
will produce the file exposure.xml which could then be ingested using caom2repo.py
- Date modified: