Hey all,
after your hints about double-entries in the .in file I finally looked really really close once again and, alas, I found an entire block of entries at the very end of my file (after the Glossary and coupling section). My guess how it ended up there: an accidental mousewheel click while scrolling (Linux). This probably pasted in the block I must have copied before. The double-allocation error is solved.
However, I am struggling with another problem since quite some time now. It's this error from the regrid routine:
Code: Select all
REGRID - input gridded data does not contain model grid:
Gridded: LonMin = -179.2500 LonMax = 180.0000
LatMin = -90.0000 LatMax = 90.0000
Model: LonMin = -179.9848 LonMax = 179.9680
LatMin = 45.0081 LatMax = 89.9205
Found Error: 04 Line: 254 Source: ROMS/Utility/get_2dfld.F
GET_2DFLD - error while reading variable: sustr at TIME index = 1
Found Error: 04 Line: 139 Source: ROMS/Nonlinear/get_data.F
Found Error: 04 Line: 772 Source: ROMS/Nonlinear/initial.F
Found Error: 04 Line: 188 Source: ROMS/Drivers/nl_ocean.h
This problem was discussed frequently here in the forum. Still, no solution worked for me so far. Some facts about my files:
I am using the respective Matlab package to generate forcing files, so they come with the "spherical" integer variable and it is set to the value=1. The grid file I am using, however, is not created by me but comes from a set up I am partially recycling for my project. Checking the spherical variable gives this for the grid file:
Code: Select all
char spherical ;
spherical:long_name = "Grid type logical switch" ;
spherical:option_F = "Cartesian" ;
spherical:option_T = "spherical" ;
data:
spherical = "T" ;
Also, in the header there is a grid mapping variable:
Code: Select all
int grid_mapping ;
grid_mapping:long_name = "grid mapping" ;
grid_mapping:grid_mapping_name = "polar_stereographic" ;
grid_mapping:ellipsoid = "sphere" ;
grid_mapping:earth_radius = 6371000. ;
grid_mapping:latitude_of_projection_origin = 90. ;
grid_mapping:straight_vertical_longitude_from_pole = 58. ;
grid_mapping:standard_parallel = 60. ;
grid_mapping:false_easting = 4180000. ;
grid_mapping:false_northing = 2570000. ;
grid_mapping:dx = "20000" ;
grid_mapping:proj4 = "+proj=stere +R=6371000.0 +lat_0=90 +lat_ts=60.0 +x_0=4180000.0 +y_0=2570000.0 +lon_0=58.0" ;
I have the suspicion that my grid file and forcing files are not compatible and that is why the spherical attribute is not recognized by ROMS. I tried to manipulate the matlab script in order to make the spherical variable a char of values T and F and set it to T but this did not solve the problem. Trying to set the grid file to spherical=1 didn't help either (adding the attribute flag_meanings and flag_values neither). Finally, I even attempted to directly set the value of "spherical" in the mod_scalar to true but no positive result again.
I have full understanding that ROMS cannot accept the forcing files not completely overlapping the model domain. Still, I don't know how to help it. I am very grateful for any hints!