FVCOM-GitHub / FVCOM

Other
48 stars 31 forks source link

How to output density field data #30

Open fodo9 opened 1 week ago

fodo9 commented 1 week ago

I would like to output the density field data, but I can't find it in NML_NETCDF. I have checked source codes but couldn't find any clues. Is there any good way to solve this problem?

oveldg commented 1 week ago

The restart file has the "rho1" and "rmean1" variables. You can check "mod_ncdio.F" to see how they are included in the restart file, and add similar calls for the global file. No need to specify a namelist variable for density output (although it would be ideal). You can use the NC_SALT_TEMP = T, and output density (rho1 and rmean1) when you output Temperature and Salinity.

fodo9 commented 4 days ago

Thanks for your answer, that's very useful!