Since I have no experience in IDL coding, I need help converting the piece of code below to python.
The following parameters are known and are 1D arrays oder scalars.
IDefScaleSondNbScale, IDefScaleSondScaleFactor,
IDefScaleSondNsfirst, IDefScaleSondNslast,
IDefNsfirst

It's IDL and the python equivalent is the following: