You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I ran COMPASS with unzipped files, I was getting read errors.
I checked the _temp.vrt file made for each burst:
$ gdalinfo unzipped/scratch/t087_185679_iw1/20180511/t087_185679_iw1_20180511_VV_temp.vrt
Driver: VRT/Virtual Raster
Files: unzipped/scratch/t087_185679_iw1/20180511/t087_185679_iw1_20180511_VV_temp.vrt
Size is 20492, 1490
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1490.0)
Upper Right (20492.0, 0.0)
Lower Right (20492.0, 1490.0)
Center (10246.0, 745.0)
Band 1 Block=128x128 Type=CFloat32, ColorInterp=Undefined
NoData Value=0
ERROR 4: unzipped/scratch/t087_185679_iw1/20180511/S1A_IW_SLC__1SDV_20180511T161552_20180511T161622_021859_025BF8_1292.SAFE/measurement/s1a-iw1-slc-vv-20180511t161552-20180511t161620-021859-025bf8-004.tiff: No such file or directory
What did you expect?
I expected the VRT to correctly point to the .tiff file
We are using relativeToVRT=1, which means we're saying that the location of the tiff_path will be relative to the location of the VRT.
This is probably only going to be true when we do slc_to_vrt_file('.'), since we're passing some other path to the tiff_path.
Checked for duplicates
Yes - I've already checked
Describe the bug
When I ran COMPASS with unzipped files, I was getting read errors.
I checked the _temp.vrt file made for each burst:
What did you expect?
I expected the VRT to correctly point to the .tiff file
Reproducible steps
The reason for the failure is here: https://github.com/opera-adt/s1-reader/blob/428328de5011968da91174cdf14db6eb3e8264c7/src/s1reader/s1_burst_slc.py#L360
We are using
relativeToVRT=1
, which means we're saying that the location of thetiff_path
will be relative to the location of the VRT.This is probably only going to be true when we do
slc_to_vrt_file('.')
, since we're passing some other path to thetiff_path
.The reason this is currently working for the zipped file testing is gdal ignores your indication of
relativeToVrt
when your path starts with a/
and treats it as absoluteNote that "relativeToVRT=0" doesn't mean it has to be a full path. If it's not, then the path is treated relative to whatever directory you are in.
For example:
The text was updated successfully, but these errors were encountered: