irfu / irfu-matlab

Matlab routines to work with space data, particularly with MMS and Cluster/CAA data. Also some general plasma routines.
59 stars 46 forks source link

will not result in error if field does not exist #48

Closed chasapis closed 5 years ago

chasapis commented 5 years ago

Only delete existing fields. Scalar ts objects may not have all those fields. This change checks a field exists before deleting it, thus avoiding an error.

thomas-nilsson-irfu commented 5 years ago

Dear @chasapis, thank you for this contribution. This code looks good to me. (I took the liberty to change the target branch to our devel branch, in accordance with our contributing guidelines).