Maybe this is a very silly problem, but I am a new user, and after trying to read many posts about river configuration, I cannot understand what is wrong with my settings, so here is my problem. I am trying to add one river to my application to use it as a point source of inert tracer, and I got into trouble; I do not know if because I have “missed” some CPP option, because of something else, or if it is a combination of CPP+ other things… I saw in many posts that analytical CPPs are needed for forcing the tracer analytically, but as far as I read, I did not see any “special” option for nc river-forcing files (I am attaching the CPP options I used).
I am using COAWST distribution, and I am forcing ROMS with WRF. I was following the tutorial in https://www.myroms.org/wiki/River_Runoff, and I built my river forcing using the Matlab script create_roms_rivers.m (modified by me to add the tracer) that is distributed among the Matlab toolbox of COAWST.
I want to simulate the river discharge of total nitrogen(TN) in my river as a tracer and to do so, I have hourly simulation river results for discharge (m3 s-1) and TN (kg m-3). I first tried to give the tracer not constant concentration (to use my simulated load) and gave it the same structure in the forcing file as to the river transport, but I do not know if this is correct because maybe I am horribly misunderstanding this, since the other river tracers (temp and salt) have vertical distributed structure.
Code: Select all
river_dye_01ID = netcdf.defVar(nc_forc,'river_dye_01','double', [riverdimID river_timedimID]);
netcdf.putAtt(nc_forc,river_dye_01ID,'long_name','river total nitrogen concentration');
netcdf.putAtt(nc_forc,river_dye_01ID,'units','kilograms/meter^3');
netcdf.putAtt(nc_forc,river_dye_01ID,'time','river_time');
netcdf.putAtt(nc_forc,river_dye_01ID,’ field’,’ river tracer mass, scalar, series’);
Code: Select all
river_dye_01ID = netcdf.defVar(nc_forc,'river_dye_01','double',[riverdimID s_rhodimID river_timedimID]);
netcdf.putAtt(nc_forc,river_dye_01ID,'long_name','river tracer mass');
netcdf.putAtt(nc_forc,river_dye_01ID,'units','kilograms/m^3');
netcdf.putAtt(nc_forc,river_dye_01ID,'time','river_time');
netcdf.putAtt(nc_forc,river_dye_01ID,’ field’,’ river tracer mass, scalar, series’);
I’ve re-checked the indexes of the river Xposition and Eposition (because Matlab and Fortran have different start as I read), same as the direction sign, and I think they are ok…
I will really appreciate your comments and help! Thanks in advance,
Valentina