[docs]defget_models(planetname,datDir=stdDatDir):"""Prints available models for a planet. Parameters ---------- datDir : str Directory where the data file is present. Files are assumed to be named as <planetname>_<modelname>.dat, e.g.: earth_igrf13.dat, jupiter_jrm09.dat etc. planetname : str Name of the planet Returns ------- models : str array Array of available model names """fromglobimportglobplanetname=planetname.lower()dataFiles=glob(datDir+'/'+planetname+"*.dat")models=[]fork,filenameinenumerate(dataFiles):modelname=filename.split('_')[1].split('.dat')[0]models.append(modelname)models=np.sort(models)returnmodels