Closed agrouaze closed 3 months ago
another issue?
python main.py --input_file /home/datawork-cersat-public/provider/asc-csa/satellite/l1/rcm/rcm3/SC50MC/GRD/2023/162/RCM3_OK2597128_PK2600375_1_SC50MC_20230611_134458_HH_HV_GRD/ --outputdir /home1/scratch/agrouaze/ --resolution 2 --overwrite
161/ 162/
the DataArray or Variable constructor; it can be silenced by converting the values to nanosecond precision ahead of time.
{"timeStamp": ds["timeStamp"].astype("datetime64")}
/opt/conda-envs/dev/lib/python3.10/site-packages/safe_rcm/product/reader.py:68: 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.
{"timeStamp": ds["timeStamp"].astype("datetime64")}
10/07/2023 13:58:12 ERROR io.py(224) FilePath is currently a read-only interface.
10/07/2023 13:58:12 ERROR io.py(224) FilePath is currently a read-only interface.
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'246e050c-dbd6-4b3f-acce-32f5cd35a37b/246e050c-dbd6-4b3f-acce-32f5cd35a37b.aux'
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'246e050c-dbd6-4b3f-acce-32f5cd35a37b/246e050c-dbd6-4b3f-acce-32f5cd35a37b.AUX'
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'246e050c-dbd6-4b3f-acce-32f5cd35a37b/246e050c-dbd6-4b3f-acce-32f5cd35a37b.aux'
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'246e050c-dbd6-4b3f-acce-32f5cd35a37b/246e050c-dbd6-4b3f-acce-32f5cd35a37b.AUX'
10/07/2023 13:58:12 ERROR io.py(224) FilePath is currently a read-only interface.
10/07/2023 13:58:12 ERROR io.py(224) FilePath is currently a read-only interface.
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'b71745a7-5471-4ba2-90bb-ae9b6a248ce2/b71745a7-5471-4ba2-90bb-ae9b6a248ce2.aux'
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'b71745a7-5471-4ba2-90bb-ae9b6a248ce2/b71745a7-5471-4ba2-90bb-ae9b6a248ce2.AUX'
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'b71745a7-5471-4ba2-90bb-ae9b6a248ce2/b71745a7-5471-4ba2-90bb-ae9b6a248ce2.aux'
10/07/2023 13:58:12 ERROR io.py(224) File-like object not found in virtual filesystem: b'b71745a7-5471-4ba2-90bb-ae9b6a248ce2/b71745a7-5471-4ba2-90bb-ae9b6a248ce2.AUX'
10/07/2023 13:58:58 WARNING base_dataset.py(813) Raster variable are experimental
Traceback (most recent call last):
File "/opt/conda-envs/dev/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3652, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 147, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 176, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'VV'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/conda-envs/dev/lib/python3.10/site-packages/xarray/core/indexes.py", line 486, in sel
indexer = self.index.get_loc(label_value)
File "/opt/conda-envs/dev/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3654, in get_loc
raise KeyError(key) from err
KeyError: 'VV'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home1/datahome/agrouaze/sources/git/grdwindinversion/grdwindinversion/main.py", line 50, in <module>
out_file = makeL2(input_file, out_folder, config_file,overwrite=args.overwrite)
File "/home1/datahome/agrouaze/sources/git/grdwindinversion/grdwindinversion/inversion.py", line 241, in makeL2
dataset_1000m['owiNrcs'] = dataset_1000m['sigma0_ocean'].sel(pol='VV')
File "/opt/conda-envs/dev/lib/python3.10/site-packages/xarray/core/dataarray.py", line 1550, in sel
ds = self._to_temp_dataset().sel(
File "/opt/conda-envs/dev/lib/python3.10/site-packages/xarray/core/dataset.py", line 2653, in sel
query_results = map_index_queries(
File "/opt/conda-envs/dev/lib/python3.10/site-packages/xarray/core/indexing.py", line 190, in map_index_queries
results.append(index.sel(labels, **options))
File "/opt/conda-envs/dev/lib/python3.10/site-packages/xarray/core/indexes.py", line 488, in sel
raise KeyError(
KeyError: "not all values found in index 'pol'. Try setting the `method` keyword argument (example: method='nearest')."
For the first issue, try
/home/datawork-cersat-public/provider/asc-csa/satellite/l1/rcm/rcm3/SCLNC/GRD/2023/137/RCM3_OK2554779_PK2560509_1_SCLNC_20230517_132957_VV_VH_GRD
instead of
/home/datawork-cersat-public/provider/asc-csa/satellite/l1/rcm/rcm3/SCLNC/GRD/2023/137/RCM3_OK2554779_PK2560509_1_SCLNC_20230517_132957_VV_VH_GRD/
Ok the right trailing slash issue as already been fixed. The problem is in fact that your algorithm only applied for dual pol acquisition in VV for now. Question is do I let the algo also process:
for now I will add a secuity on the main.py
script stating that :
this processor only handle dual polarization acquisitions VV+VH for now.
closed; can handle single or dualpol can handle RCM
traceback: