Open purijs opened 3 years ago
On passing --clip_to_aoi
2021-10-25 04:58:26,134 - utils.data_utils - INFO - Data path is ../../S2A_MSIL1C_20200514T052651_N0209_R105_T43RGM_20200514T083730.SAFE/MTD_MSIL1C.xml
/home/ubuntu/anaconda3/envs/tensorflow2_p37/lib/python3.7/site-packages/rasterio/__init__.py:220: NotGeoreferencedWarning: Dataset has no geotransform, gcps, or rpcs. The identity matrix be returned.
s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
/home/ubuntu/anaconda3/envs/tensorflow2_p37/lib/python3.7/site-packages/pyproj/crs/crs.py:131: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6
in_crs_string = _prepare_from_proj_string(in_crs_string)
/home/ubuntu/anaconda3/envs/tensorflow2_p37/lib/python3.7/site-packages/pyproj/crs/crs.py:131: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6
in_crs_string = _prepare_from_proj_string(in_crs_string)
Traceback (most recent call last):
File "./s2_tiles_supres.py", line 213, in <module>
args.data_file_path, args.clip_to_aoi, args.copy_original_bands, args.output_dir
File "./s2_tiles_supres.py", line 178, in process
data10, data20, data60, coord, pr_10m = self.start()
File "./s2_tiles_supres.py", line 79, in start
dsdesc, self.clip_to_aoi
File "../utils/data_utils.py", line 152, in area_of_interest
x_1, y_1 = self.to_xy(roi_lon1, roi_lat1, data)
File "../utils/data_utils.py", line 129, in to_xy
return int(x_n), int(y_n)
ValueError: cannot convert float NaN to integer
It gives
NotGeoreferenced
warning