EcohydroLib  1.29
Namespaces | Functions | Variables
DumpMetadataToiRODSXML.py File Reference

Namespaces

 

Functions

def DumpMetadataToiRODSXML.writeAVUToXMLFile
 Write Attribute, Value, Unit (AVU) element to iRODS metadata XML file. More...
 
def DumpMetadataToiRODSXML.writeDictToXMLFile (outfile, target, dict)
 Write the contents of a dict as AVU elements in an iRODS metadata XML file. More...
 

Variables

string DumpMetadataToiRODSXML.PATH_SEP_IRODS = '/'
 
string DumpMetadataToiRODSXML.OUTFILE_NAME = 'metadata.xml'
 
tuple DumpMetadataToiRODSXML.parser = argparse.ArgumentParser(description='Dump point climate station information from EcohydroLib metadata to standard output')
 
string DumpMetadataToiRODSXML.help = 'The directory from which metadata should be read'
 
tuple DumpMetadataToiRODSXML.args = parser.parse_args()
 
tuple DumpMetadataToiRODSXML.context = Context(args.projectDir, None)
 
tuple DumpMetadataToiRODSXML.collection = args.collection.rstrip(PATH_SEP_IRODS)
 
tuple DumpMetadataToiRODSXML.outfilePath = os.path.join(context.projectDir, OUTFILE_NAME)
 
tuple DumpMetadataToiRODSXML.outfile = codecs.getwriter('utf-8')
 
tuple DumpMetadataToiRODSXML.history = GenericMetadata.getProcessingHistoryList(context)
 
int DumpMetadataToiRODSXML.i = 1
 
string DumpMetadataToiRODSXML.attribute = "processing_step_%d"
 
tuple DumpMetadataToiRODSXML.provenance = GenericMetadata.readAssetProvenanceObjects(context)
 
 DumpMetadataToiRODSXML.target = collection+PATH_SEP_IRODS+entry.dcIdentifier
 
tuple DumpMetadataToiRODSXML.stations = GenericMetadata.readClimatePointStations(context)