Hi everyone!
I hope you could help me with some issue that I found last night when I was using the nesting tools with a bulk file for an interanual simulation.
I have to do an interanual nested simulation of Golf of Mexico. I did a test, running a simulation with only one grid (pather) and al preprocessing and execution of CROCO model. All was great. I used ERA5 to download atmospheric forcing and Mercator to inicial conditions.
But when I decide to use nesting tools, especific nested_bulk function, the error appears:
>> start 10:40:54
Add the paths of the different toolboxes
Arch : x86_64 - Matlab version : 2021b
Use of mexnc and loaddap in 64 bits.
>> nested_bulk('CROCO_FILES/croco_grd.nc.1','CROCO_FILES/croco_blk_ERA5_Y2005M01.nc','CROCO_FILES/croco_blk_ERA5_Y2005M01.nc.1')
bulk file for the embedded grid :CROCO_FILES/croco_blk_ERA5_Y2005M01.nc.1 using parent bulk file: CROCO_FILES/croco_blk_ERA5_Y2005
M01.nc
Read in the embedded grid...
Read in the parent bulk file...
Create the bulk file...
No time reference
Warning: ## close failed: CROCO_FILES/croco_blk_ERA5_Y2005M01.nc.1
> In netcdf/close (line 20)
In create_nestedbulk (line 172)
In nested_bulk (line 74)
Do the interpolations...
## NetCDF file not opened: CROCO_FILES/croco_blk_ERA5_Y2005M01.nc.1
tair...
Assigning to 4 elements using a simple assignment statement is not supported. Consider using comma-separated list assignment.
Error in interpvar3d (line 52)
nc{varname}(tindex,:,:)=interp2(igrid_par,jgrid_par,var_par,...
Error in nested_bulk (line 103)
interpvar3d(np,nc,igrd_r,jgrd_r,ichildgrd_r,jchildgrd_r,'tair',mask,tindex)
This surprised me because I had used this function before with bulk_files from GFS for forecasting and always works good.
The steps that I used to do for preprocessing:
- Make pather grid
- Make preprocessing files: bulk and initial files.
- Make child grid
- Use nested_initial and nested_bulk functions to create preprocessing files from pather files.
I tried to seach the root of the issue and i identified that inside nested_bulk.m in the next line it does not create the child bulk file. And then when the code wants to save data in that file, it does not exist.
% Create the bulk file
%
disp(' ')
disp(' Create the bulk file...')
create_nestedbulk(child_blk,parent_blk,child_grd,title,...
bulkt,bulkc)
I think that is not problem of nested routines because It works with bulk files from GFS. I tried to search some differences between bulk files from ERA5 and GFS and found that both have the same variable information.
ERA5 file hace all permitions of write and reading.
Are there any other information that we could see to identify the possible problem?
Thank you for your time and support.