def main(argv):

    args = gc.parse_args(sys.argv)
    csw_endpoint = args.csw_endpoint
    
    context = {
               'root_url' : args.root_url,
               'last_modified' : datetime.datetime.now().strftime('%Y-%m-%d')
               }
    data = gc.get_gdp_data(csw_endpoint)

    generate_sitemap(data, args.destination_dir, context)
def main(argv):

    args = gc.parse_args(sys.argv)
    csw_endpoint = args.csw_endpoint  
        
    context = {
               u'root_url' : u'' + args.root_url,
               u'last_modified' : u'' + datetime.datetime.now().strftime('%Y-%m-%d'),
               u'gdp_algorithms' : [
                        u'Weighted Area Grid Statistics',
                        u'Unweighted Area Grid Statistics',
                        u'OPeNDAP Subset',
                        u'WCS Subset',
                        u'Categorical Coverage Fraction'
                    ]
           }

    data = gc.get_gdp_data(csw_endpoint)
    generate_skeleton(data, args.destination_dir, context)