the current smap surface soil moisture converter parses the date string from the file name
the data appears to be buried in MetaData attributes:
import h5py
f = h5py.File('SMAP_L2_SM_P_E_34714_D_20210801T041949_R18290_001.h5', 'r')
print(f['Metadata'].attrs['iso_19139_dataset_xml'] )
but the xml parsing is not optimal this is a quick fix to make the current method of date retrieval not too hardcoded to how the input file is specified but still relies on unmodified names from the processing center and that these do not change
Description
the current smap surface soil moisture converter parses the date string from the file name
the data appears to be buried in MetaData attributes:
but the xml parsing is not optimal this is a quick fix to make the current method of date retrieval not too hardcoded to how the input file is specified but still relies on unmodified names from the processing center and that these do not change
not ideal