Open ealucy opened 9 months ago
Based on your config, the code would be searching for input files like this:
/nfs/tcdynasty/lucy/cm1/cm1out_yyyymodd_hhmmss.nc
And the files date/time must be within this range: startdate: '20000101_000004' enddate: '20000101_000008'
You should check to make sure that matches your input files.
Yes, they match. The files are titled like this: 'cm1out_20000101_000004.nc'. Curious!
I just realized that your startdate and enddate only differ by 4 seconds. The code calculates the date/times from your filenames (hence the specified datetime format 'yyyymodd_hhmmss' in the config), and then only keeps those that fall within your specified startdate and enddate for processing.
What does your file names look like? Can you put the list of your full file names here?
Yes, that is correct. This is the file list:
cm1out_20000101_000004.nc
cm1out_20000101_000005.nc
cm1out_20000101_000006.nc
cm1out_20000101_000007.nc
cm1out_20000101_000008.nc
There are only these five files, as the entire dataset is not housed locally. I was hoping to test the tracker on these few to get an idea of how it works before attempting to do so on the entire dataset.
I think I may know why. The function in PyFLEXTRKR converting input file datetimes did not use the digits down to seconds precision. See the code at this line.
You can try making a larger datetime window that include all the files you have, e.g., startdate: '20000101_000000' enddate: '20000101_001000'
My goal is to track vorticity features within tropical cyclone model output in CM1. Currently, when running the code, I'm getting an error that the algorithm doesn't seem to be seeing the files within the directory that I have housed them:
(aug23_env) el381212@turing:/nfs/tcdynasty/lucy$ python run_generic_tracking.py config.yml 2023-12-05 20:01:29,557 - pyflextrkr.idfeature_driver - INFO - Identifying features from raw data 2023-12-05 20:01:30,181 - pyflextrkr.idfeature_driver - INFO - Total number of files to process: 0 2023-12-05 20:01:30,184 - pyflextrkr.idfeature_driver - INFO - Done with features from raw data. 2023-12-05 20:01:30,184 - pyflextrkr.tracksingle_driver - INFO - Tracking sequential pairs of idfeature files 2023-12-05 20:01:30,185 - pyflextrkr.tracksingle_driver - INFO - Total number of files to process: 0 2023-12-05 20:01:30,185 - pyflextrkr.tracksingle_driver - INFO - Done with tracking sequential pairs of idfeature files 2023-12-05 20:01:30,185 - pyflextrkr.gettracks - INFO - Tracking features sequentially from single track files 2023-12-05 20:01:30,186 - pyflextrkr.gettracks - INFO - Total number of files to process: 0 Traceback (most recent call last): File "/nfs/tcdynasty/lucy/run_generic_tracking.py", line 61, in
tracknumbers_filename = gettracknumbers(config)
^^^^^^^^^^^^^^^^^^^^^^^
File "/nfs/knight/mamba_aug23/envs/aug23_env/lib/python3.11/site-packages/pyflextrkr/gettracks.py", line 74, in gettracknumbers
logger.debug(f"files[0]: {files[0]}")