Closed jiligulu-cqs closed 8 months ago
Hi. I'm aware of this issue due to the newer version (> 0.20) of Scikit-image phase_cross_correlation function returning 3 variables instead of one. I am planning to issue a PR to fix this issue in the next few days. In the mean time, if you want to proceed with the current version, you can modify Line 159 in /pyflextrkr/advection_tiles.py by adding [0]
after the function to catch its first return variable as follows:
y, x = -1 * phase_cross_correlation(
field_1, field_2, reference_mask=mask_1t, moving_mask=mask_2t, overlap_ratio=0.7
)[0]
That should fix the issue for now. The PR will address this more comprehensively by checking the version of Scikit-image.
Thanks for your response! I modified the code based on your suggestion, but it still have the same output, I guess there are other code files that also used that function. So I downgrade scikit-image to version 0.19.3, it can operate normally (I see pictures in quicklooks_trackpaths). But there are still two unexpected outputs.
This output was generate during the 'Running PyFLEXTRKR' procedure, and it output many times. The thread number may different, but seems all related to 'can't open attribute'.
HDF5-DIAG: Error detected in HDF5 (1.12.2) thread 12284:
#000: D:\bld\hdf5_split_1671624031008\work\src\H5A.c line 528 in H5Aopen_by_name(): can't open attribute
major: Attribute
minor: Can't open object
#001: D:\bld\hdf5_split_1671624031008\work\src\H5VLcallback.c line 1091 in H5VL_attr_open(): attribute open failed
major: Virtual Object Layer
minor: Can't open object
#002: D:\bld\hdf5_split_1671624031008\work\src\H5VLcallback.c line 1058 in H5VL__attr_open(): attribute open failed
major: Virtual Object Layer
minor: Can't open object
#003: D:\bld\hdf5_split_1671624031008\work\src\H5VLnative_attr.c line 130 in H5VL__native_attr_open(): can't open attribute
major: Attribute
minor: Can't open object
#004: D:\bld\hdf5_split_1671624031008\work\src\H5Aint.c line 545 in H5A__open_by_name(): unable to load attribute info from object header
major: Attribute
minor: Unable to initialize object
#005: D:\bld\hdf5_split_1671624031008\work\src\H5Oattribute.c line 494 in H5O__attr_open_by_name(): can't locate attribute: '_QuantizeBitGroomNumberOfSignificantDigits'
major: Attribute
minor: Object not found
minor: Object not found
Like this, between 'config' and 'tracking'
C:/Users/user/Desktop/downloads/PyFLEXTRKR-main/config///tracking/cloudid_20190125_210003.nc
It seems does not affect the results, but this may be the cause of the previous question, this is just my guess.
Hi,
The issue seems to be with your HDF4/5 versions interacting with libnetcdf. It looks like it began with HDF5 v1.12.2 as you can read about here: (https://github.com/SciTools/iris/issues/5187). I would try updating hdf4, hdf5, and libnetcdf to versions 4.2.15, 1.13.3, and 4.9.2, respectively--this is the configuration that worked for me using Windows 10.
Hi,
The compatibility issue with Scikit-image >= 0.22 should now be resolved with the release 2024.03.0.
I tried setting up a new Conda environment with the updated environment.yml and current latest versions of the required packages, the codes all run well.
Try re-installing PyFLEXTRKR with the current release and see if it works for you.
Hi,
The issue seems to be with your HDF4/5 versions interacting with libnetcdf. It looks like it began with HDF5 v1.12.2 as you can read about here: (SciTools/iris#5187). I would try updating hdf4, hdf5, and libnetcdf to versions 4.2.15, 1.13.3, and 4.9.2, respectively--this is the configuration that worked for me using Windows 10.
Thanks for your reply! It's fixed base on your suggestion. (using Windows 11)
Hi,
The compatibility issue with Scikit-image >= 0.22 should now be resolved with the release 2024.03.0.
I tried setting up a new Conda environment with the updated environment.yml and current latest versions of the required packages, the codes all run well.
Try re-installing PyFLEXTRKR with the current release and see if it works for you.
Thanks again! Now the codes run well.
Dear author. I'm trying to run the demo script "demo_cell_csapr.sh", I modify the dir_demo into the following form, and that's the only change I did to the script.
But it have some errors, the first unexpected output is
In addition, I noticed in the output, the file path may have double or triple / like "//" or "///", I don't know if this is normal. Here what I got after running the script