insarlab / MintPy

Miami InSAR time-series software in Python
https://mintpy.readthedocs.io
Other
586 stars 254 forks source link

geocode.py fails with bilinear interpolation #215

Open EJFielding opened 5 years ago

EJFielding commented 5 years ago

Description of the problem

Running geocoding script with the bilinear flag faults with an error.

Full script that generated the error

geocode.py timeseriesStepModel.h5 timeseries -i bilinear

Full error message

resampling file: timeseriesStepModel.h5
reading timeseries from timeseriesStepModel.h5 ...
bilinear resampling using 1 processor cores ...
Traceback (most recent call last):
  File "/home/fielding/python/MintPy/mintpy/geocode.py", line 340, in <module>
    main()
  File "/home/fielding/python/MintPy/mintpy/geocode.py", line 334, in main
    run_geocode(inps)
  File "/home/fielding/python/MintPy/mintpy/geocode.py", line 311, in run_geocode
    print_msg=True)
  File "/home/fielding/python/MintPy/mintpy/objects/resample.py", line 88, in run_resample
    print_msg=True)
  File "/home/fielding/python/MintPy/mintpy/objects/resample.py", line 466, in run_pyresample
    epsilon=0)
  File "/home/fielding/anaconda3/envs/mintpy/lib/python3.7/site-packages/pyresample/bilinear/__init__.py", line 86, in resample_bilinear
    epsilon=epsilon)
  File "/home/fielding/anaconda3/envs/mintpy/lib/python3.7/site-packages/pyresample/bilinear/__init__.py", line 238, in get_bil_info
    proj = Proj(target_area_def.proj_str)
AttributeError: 'GridDefinition' object has no attribute 'proj_str'

System information

yunjunz commented 5 years ago

Hi @EJFielding, the linear interpolation is not finished. I will put this on the to-do list.

EJFielding commented 5 years ago

Thanks for the information. I hope this can be added, but I understand that you have a PhD dissertation to complete and defend.

yunjunz commented 5 years ago

Thanks for your understanding.