import library


In [ ]:
from pyCMR.pyCMR import CMR

Provide configuration file.


In [ ]:
cmr=CMR("../cmr.cfg")

Delete a granule by granule_UR


In [ ]:
cmr.deleteGranule("AMSR_2_L2_RainOcean_R00_201508190926_A.he5")

Delete a collection by dataset_id


In [ ]:
cmr.deleteCollection("NRT AMSR2 L2B GLOBAL SWATH GSFC PROFILING ALGORITHM 2010: SURFACE PRECIPITATION, WIND SPEED OVER OCEAN, WATER VAPOR OVER OCEAN AND CLOUD LIQUID WATER OVER OCEAN V0")

In [ ]: