Hi everyone! I’m learning how to work with CROCO now, and I am facing a problem about how to create a forcing file in 360 days rather than 12 months.
The code runs well in the scale of 12 mouths, while returns warning “## close failed: G:\JS\croco_files\croco_frc.nc” in the scale of 360 days. The result is that I can’t write my datas into the empty file next step. And if I comment out part of the code to reduce variables such as ‘sustr’,‘svstr’ , the create_forcing.m will work well again. What’s wrong with it? And how can I solve it?
Thanks for any useful help.
Mengx
*( a file changing from create_forcing.m tha can run directly is following)
Thanks for your help. That maybe a choice. There still have a question that a croco_blk.nc, even larger than the frc file, can produce successfully at the same time. It makes me confused.
It’s a question with format of NetCDF. NetCDF-3 have a limit that can larger than 2G. So, change the format to NetCDF-4 can solve the question.
But I don’t know how to do it in the preprocessing code of CROCO. As a substitude of file ‘create_forcing.m’, I write down a similar code. You can run the code according to your case first. Then run the code ‘make_forcing.m’ by commenting out the part of ‘Create the forcing file’.