Skip to content

Storing the fieldset components (U, V, W, S, T) as netcdfs #1815

Discussion options

You must be logged in to vote

Ah, we've previously experienced that the opening of all files to read in the time-information can take very long, when constructing a FieldSet with many files.

If that's indeed the bottleneck in your case too, then a workaround is to explicitly provide a lumpy array of the timestamps in each file. This means that Parcels doesn't have to open them anymore and creating a FieldSet could go much faster.

See below an example code we use for the MOi GLO12 data:

data_path = '/storage/shared/oceanparcels/input_data/MOi/'
ufiles = sorted(glob(data_path+'GLO12/psy4v3r1-daily_U_*.nc'))
vfiles = [f.replace('_U_', '_V_') for f in ufiles]
wfiles = [f.replace('_U_', '_W_') for f in ufiles]
mesh_mask = d…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ischiller-weiss
Comment options

@erikvansebille
Comment options

Answer selected by ischiller-weiss
@ischiller-weiss
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants