This is a user contributed routine. Thank you. We welcome the sharing of useful code snippets like this via the forum. While the example here pertains to Aquarius, the code could be applied with minor modifications (eg. directory paths) to any of the other datasets available via the PO.DAAC ftp-site.
Since the the post pertains to Aquarius, it is also captured in the Salinity area of the Forum. The cross-reference for this is...https://podaac.jpl.nasa.gov/forum/viewtopic.php?f=20&t=184