copied index_ngdc.py from index_ngdc_standalone branch