You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a subprocess to call the clover to_netcdf on a filename pattern such as It*-Ts*-sc.tif to return a NetCDF file with a time dimensions. The problem is that the order in which the files are stacked is different between Windows and Unix systems, resulting in the order of the timesteps to be unpredicatable. I am not using the datetime-pattern parameter, but these files are not datetimes at all.
For example, if my stack of GeoTIFFs are the following:
Would it be possible to add a sort parameter to the to_netcdf command? In my implementation I have modified clover.cli.convert.py @ line 87 to call filesnames.sort(), which puts them filenames back in the same order as they are on Windows.
The text was updated successfully, but these errors were encountered:
I am using a
subprocess
to call theclover to_netcdf
on a filename pattern such asIt*-Ts*-sc.tif
to return a NetCDF file with a time dimensions. The problem is that the order in which the files are stacked is different between Windows and Unix systems, resulting in the order of the timesteps to be unpredicatable. I am not using the datetime-pattern parameter, but these files are not datetimes at all.For example, if my stack of GeoTIFFs are the following:
calling
glob.glob
on Windows will return them in ascending order:On Unix, the pattern seems unpredictable:
Would it be possible to add a
sort
parameter to theto_netcdf
command? In my implementation I have modifiedclover.cli.convert.py
@ line 87 to callfilesnames.sort()
, which puts them filenames back in the same order as they are on Windows.The text was updated successfully, but these errors were encountered: