GeoGateway / geogateway-django-app

Apache License 2.0
0 stars 5 forks source link

LOS profile tool: it is not working for some dataset #267

Open webgisdeveloper opened 1 year ago

webgisdeveloper commented 1 year ago

may with uid<1000

https://geo-gateway.org/geogateway_django_app/UAVSAR_csv/?uid=294&dataname=Salton_26513_12009-002_12022-003_0090d_s01_L090HH_01&lat1=33.40857&lon1=-115.63934&lat2=33.42686&lon2=-115.75195&losLength=10.650&azimuth=-79.0

Salton_26513_12009-002_12022-003_0090d_s01_L090HH_01
start,33.40857,-115.63934
end,33.42686,-115.75195
azimuth,-79.0
length,10.650
Lon, Lat, Distance (km), Displacement, Elevation Angle
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
webgisdeveloper commented 1 year ago

https://geo-gateway.org/geogateway_django_app/UAVSAR_csv/?uid=26&dataname=SanAnd_26501_10028-000_10057-100_0079d_s01_L090HH_01&lat1=32.70320&lon1=-115.88992&lat2=32.74804&lon2=-115.75470&losLength=13.603&azimuth=68.5

this one works

webgisdeveloper commented 1 year ago

error from profile tool, it seems the location is totally wrong or something else

/mnt/SGG/G1/NAS/QuakeSim/insar/geotiff/uid_294/uid294_unw.tiff
ERROR 5: /mnt/SGG/G1/NAS/QuakeSim/insar/geotiff/uid_294/uid294_unw.tiff, band 1: Access window out of range in RasterIO().  Requested
(9944,-12960) of size 1x1 on raster of 30878x6900.
Traceback (most recent call last):
  File "/home/geogateway/lostool/gdaldemo/profiletool_testsource.py", line 266, in <module>
    main()
  File "/home/geogateway/lostool/gdaldemo/profiletool_testsource.py", line 257, in main
    profile = gdalprofiletool(uid,path,resolution,debug=False)
  File "/home/geogateway/lostool/gdaldemo/profiletool_testsource.py", line 184, in gdalprofiletool
    value = data[0,0]
TypeError: 'NoneType' object is not subscriptable
webgisdeveloper commented 1 year ago

something wrong with the test code, seems not a bug