Thanks a lot for the both answers!
I will try some possibilities and post the results
User Profile
Collapse
-
speed up data extraction from large arrays
hi,
I have three arrays with variable values from a netCDF file. xy contains the vectors for the lon and lat coordinates. I am extracting the coordinates out of the two arrays (lon, lat) according to the vectors in the xy array. So far, I get the correct results, but the speed of the extraction process (for-loop) is extremely poor!!
Here's my code:
...Code:from netCDF4 import Dataset import scipy
No activity results to display
Show More
Leave a comment: