matplotlib.mlab.griddata very slow and returns array of nan when valid data is input

后端 未结 4 717
予麋鹿
予麋鹿 2021-02-10 00:23

I am trying to map an irregularly gridded dataset (raw satellite data) with associated latitudes and longitudes to a regularly gridded set of latitudes and longitudes given by <

4条回答
  •  难免孤独
    2021-02-10 01:00

    More than likely, griddata is way too hard. It's designed to work with randomly sampled data. Your data is almost certainly regularly sampled -- just not on the same grid as your target output grid.

    Look at a much simpler approach like an affine transformation or a series of affine transformations on small chips if the earth's topology or curvature affect yoru results.

    There are some out of the box solutions that might help. GDAL is a good example.

    Also, this type of issue is often discussed in GIS. See:

    https://gis.stackexchange.com/questions/10430/changing-image-projection-using-python

提交回复
热议问题