Storing the fieldset components (U, V, W, S, T) as netcdfs #1815
-
QuestionHello! I am using C-gridded ocean model output and I am hoping to save the FieldsetC (U, V, W, S, T) components as individual netcdf files so one doesn't need to load the FieldsetC every time when running a parcels experiment. I think this is quite a basic thing, but when writing the Thank you so much! Please let me know if my question or anything is unclear as well. Supporting code/error messages
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @ischiller-weiss, thanks for using Parcels. However, I'm not sure why you would want to write your Field. The If you want to separate out the different variables of your model files, I suggest using the |
Beta Was this translation helpful? Give feedback.
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: