Skip to content
Advertisement

How to make grid faster in python

I have 3 arrays of the same dimension alt = np.array(186 values), sza = np.array(186 values) and per = np.array(186 values). I need to make a grid with the per values over (alt,sza).

I have tried the following code and it is time-consuming process. Can anyone suggest improvisation for the code.

JavaScript

Let me know if any clarification is needed.

Thank You.

Advertisement

Answer

I am able to found an alternative method, which worked faster for me. I am posting as the result.

JavaScript

res is the gridded array of (72,19)

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement