L1_path = "/home/datawork-cersat-public/cache/project/mpc-sentinel1/data/esa/sentinel-1a/L1/IW/S1A_IW_SLC__1S/2022/046/S1A_IW_SLC__1SDV_20220215T021005_20220215T021035_041917_04FDBB_2C64.SAFE/"
meta = xsar.Sentinel1Meta(L1_path)
dt = xsar.Sentinel1Dataset(meta.subdatasets.index[0],resolution='1000m')
i have no error and
python dt.dataset is resampled
while when i do :
L1_path = "/home/datawork-cersat-public/cache/project/mpc-sentinel1/data/esa/sentinel-1a/L1/IW/S1A_IW_SLC__1S/2022/046/S1A_IW_SLC__1SDV_20220215T021005_20220215T021035_041917_04FDBB_2C64.SAFE #without / at the end"
meta = xsar.Sentinel1Meta(L1_path)
dt = xsar.Sentinel1Dataset(meta.subdatasets.index[0],resolution='1000m')
python dt.dataset is not resampled but i have no error. This is due to the "/" not present at the end
(Excepted those non-related warnings) :
/home1/datawork/vlheureu/conda-env/xsar_N/lib/python3.10/site-packages/safe_s1/sentinel1_xml_mappings.py:705: UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time.
return xr.DataArray(values, dims=['line', 'sample'], coords={'line': line, 'sample': sample})
/home1/datawork/vlheureu/conda-env/xsar_N/lib/python3.10/site-packages/safe_s1/sentinel1_xml_mappings.py:472: UserWarning: Converting non-nanosecond precision datetime values to nanosecond precision. This behavior can eventually be relaxed in xarray, as it is an artifact from pandas which is now beginning to support non-nanosecond precision values. This warning is caused by passing non-nanosecond np.datetime64 or np.timedelta64 values to the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time.
........
........
When i do
i have no error and
python dt.dataset
is resampledwhile when i do :
python dt.dataset
is not resampled but i have no error. This is due to the "/" not present at the end(Excepted those non-related warnings) :