JCSDA-internal / ioda-converters

Various converters for getting obs data in and out of IODA
8 stars 2 forks source link

smap soil moisture converter date parsing #1471

Closed BenjaminRuston closed 4 months ago

BenjaminRuston commented 4 months ago

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:

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

not ideal