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') } data = gc.get_datasets_from_csw(csw_endpoint, True) generate_skeleton(data, args.destination_dir, context)
def main(argv): args = gc.parse_args(sys.argv) data_config_filename = args.data_config geoserver = args.geoserver sciencebase = args.sciencebase_url context = { u'root_url': u'' + args.root_url, u'last_modified': u'' + datetime.datetime.now().strftime('%Y-%m-%d') } data_config = gc.get_structured_data_config(data_config_filename) data = gc.get_nwc_data(geoserver, sciencebase, data_config) generate_skeleton(data, args.destination_dir, data_config, context)
def main(argv): args = gc.parse_args(sys.argv) geoserver = args.geoserver sciencebase = args.sciencebase_url context = { 'root_url' : args.root_url, 'last_modified' : datetime.datetime.now().strftime('%Y-%m-%d') } data = gc.get_nwc_data(geoserver, sciencebase) generate_sitemap(data, args.destination_dir, context)
def main(argv): args = gc.parse_args(sys.argv) geoserver = args.geoserver sciencebase = args.sciencebase_url destination_dir = args.destination_dir gc.make_sure_path_exists(destination_dir) context = { 'root_url' : args.root_url, 'last_modified' : datetime.datetime.now().strftime('%Y-%m-%d') } data = gc.get_nwc_data(geoserver, sciencebase) generate_sitemap.generate_sitemap(data, os.path.join(destination_dir, 'sitemap'), context) generate_skeleton.generate_skeleton(data, os.path.join(destination_dir, 'skeleton'), 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)