parcels.FieldSet.from_croco() input files #1826
-
QuestionQuestionHi there I'm in the process of setting up my environment to use parcels (3.1.1) for some experiments. On the parcels.FieldSet.from_croco() function, I have two questions:
Thanks! Supporting code/error messages# Paste your code within this block
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for considering to use Parcels, @wavestorm. And also thanks for raising this question. The support for CROCO is very new, and we don't use it much here in my own team, so I don't have much experience. The only output I saw was in a single file, but I believe you that there are other options Parcels does support separate data and grid files for NEMO, I think that you could leverage that support. Following the 3D NEMO tutorial, you might be able to do something like datafiles = sorted(glob("data*.nc")) # replace with your list of filenames
gridfile = "grid.nc" # replace with name of gridfile
filenames = {
"U": {"lon": gridfile, "lat": gridfile, "depth": gridfile, "data": datafiles},
"V": {"lon": gridfile, "lat": gridfile, "depth": gridfile, "data": datafiles},
"W": {"lon": gridfile, "lat": gridfile, "depth": gridfile, "data": datafiles},
"H": {"lon": gridfile, "lat": gridfile, "depth": gridfile, "data": datafiles},
"Zeta": {"lon": gridfile, "lat": gridfile, "depth": gridfile, "data": datafiles},
"Cs_w": {"lon": gridfile, "lat": gridfile, "depth": gridfile, "data": gridfile},
} where you of course replace the correct filenames in the first two lines, and then use that Hope this helps; please let us know if this works! |
Beta Was this translation helpful? Give feedback.
Thanks for considering to use Parcels, @wavestorm. And also thanks for raising this question. The support for CROCO is very new, and we don't use it much here in my own team, so I don't have much experience. The only output I saw was in a single file, but I believe you that there are other options
Parcels does support separate data and grid files for NEMO, I think that you could leverage that support. Following the 3D NEMO tutorial, you might be able to do something like