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
test chunks='auto' in dfmt.open_partitioned_dataset() >> performance for plotting a single field is way slower (code below)
this should also not raise the warning in suppress chunking warning again #947 anymore, so disable the suppression again if that is indeed the case >> keep the suppression, since we will not change the default chunks argument and for e.g. EPD it is equally fast to plot a single field independent on the chunks.
also test with merging p:\11210331-004-bes-modellering-2024\4_simulations\hydrodynamica\simulations\abc_000\DFM_OUTPUT_abc\abc_0*_map.nc ("ValueError: Object has inconsistent chunks along dimension Two") >> works with xugrid main branch where avoid inconsistent chunks error in merge_partitions() xugrid#279 is included
Code to test DCSM with different chunks:
importdfm_toolsasdfmtimportdatetimeasdtfile_nc=r'p:\1204257-dcsmzuno\2006-2012\3D-DCSM-FM\A18b_ntsu1\DFM_OUTPUT_DCSM-FM_0_5nm\DCSM-FM_0_5nm_0*_map.nc'chunks="auto"# 21% of memory increase# chunks = {"time":1} # 2% of memory increaseuds=dfmt.open_partitioned_dataset(file_nc, chunks=chunks)
print('>> load single timestep of waterlevels: ', end='')
dtstart=dt.datetime.now()
uds['mesh2d_s1'].isel(time=365).load()
print(f'{(dt.datetime.now()-dtstart).total_seconds():.2f} sec')
veenstrajelmer
changed the title
set chunks='auto' in dfmt.open_partitioned_dataset()
test chunks='auto' in dfmt.open_partitioned_dataset()Aug 15, 2024
veenstrajelmer
changed the title
test chunks='auto' in dfmt.open_partitioned_dataset()
flexible chunks again in dfmt.open_partitioned_dataset()Aug 16, 2024
Deltares/xugrid#253 made chunks argument not flexible in some cases. This new code now gives merging errors for some large datafiles.
Todo:
merge_partitions()
xugrid#279merge_partitions()
xugrid#279)chunks='auto'
indfmt.open_partitioned_dataset()
>> performance for plotting a single field is way slower (code below)p:\11210331-004-bes-modellering-2024\4_simulations\hydrodynamica\simulations\abc_000\DFM_OUTPUT_abc\abc_0*_map.nc
("ValueError: Object has inconsistent chunks along dimension Two"
) >> works with xugrid main branch where avoid inconsistent chunks error inmerge_partitions()
xugrid#279 is includedCode to test DCSM with different chunks:
Gives:
The text was updated successfully, but these errors were encountered: