Like Ruiming wu I used ecmwf2roms generated forcing file.
I did my grid, and I used the grid lat and lon for create all my inputs files.
Code: Select all
But when I run my model, I get:
REGRID - input gridded data does not contain model grid:
Gridded: LonMin = -140.0000 LonMax = -70.0000
LatMin = -10.0000 LatMax = 40.0000
Model: LonMin = -130.9754 LonMax = -76.7665
LatMin = -10.3043 LatMax = 20.3071
GET_2DFLD - error while reading variable: Uwind at TIME index = 1
I have checked the size of my input files and they are all around these coordinates, with the exception of forcings. Although these files I set them the same coordinates in the ecmwf2roms, the files still have the coordinates that the original files (the ECMWF files I downloaded with lat 40 to -10 and lon -140 a -70 )
Code: Select all
% Various parameters.
spherical = true; % Spherical switch
LonMin = -130.9754; % GOM left-bottom longitude
LonMax = -76.7665; % GOM right-top longitude
LatMin = -10.3042; % GOM left-bottom latitude
LatMax = 20.3070; % GOM right-top latitude
FlipLat = true; % Flip data in ERA NetCDF files
% (see below information)
% StrDay = datenum('01-Jan-2000'); % starting day to process
% EndDay = datenum('31-Dec-2011'); % ending day to process
StrDay = datenum('01-Jan-2001'); % starting day to process
EndDay = datenum('31-Dec-2001'); % ending day to process
I have been reading about this problem and for the most part the cause is that the files do not have the latitude and longitude information, but my files have them.
I don't know if I need change the get_varcoords.F and where...
I appreciate any help to solve this problem.