I create this page to share code that I have used in my research. Some might look crappy, but hope they can save you time when you happen to come across the same questions/tasks.
CustomizeTMY3 function in NREL SAM model
Code that helped me:
(Under construction, more to come)