Hey guys,
I hope you all are doing well
For my thesis I want to simulate some cases with different SST-input data, and now I faced a problem, for which I cannot find the solution...
I have two different sst grib-files. First one is original.
For the second one I converted the grib-file into a netcdf file (via " cdo -f nc copy data_sst_zonal.grib data_sst_zonal.nc " )
For changing the values of the sst-variable, I have gotten another nc-file with only one variable which has the same dimensions as my original sst data.
So I just added those two variables together via:
sstnew = sst1,:, + sst2,
(sst2 is time invariant, so it hast only lon-lat dimension)
I checked and plotted the variable sstnew and everything seems fine and with ncwrite I replaced the old sst with my variable sstnew (and changed the name into sst)
It has the same dimension/size as the original sst variable, so I converted the nc file back to grib via: " cdo -f grb copy data_sst_zonal.nc data_sst_zonal.grib "
But when I link this grib-file and execute ungrib, it says that there is no data for my date...as you can see in the attached log_ungrib_sst.txt
almost at the end of the logfile it shows:
ERROR: Data not found: 2002-07-14_00:00:00.0000
The 07/14/2002 00:00:00 is the first timestep in my namelist.wps, so I guess I can not simply change the values via MatLab?
If so, how can I change them... I want to analyze the differences between the WRF-run with original SST and the one with modified SST.
I tried it the same way just with the original sst-grib file and everything works just fine.
Pls let me know if you need any more information and thank you very much in advance for helping me out
Cheers
Torben
I hope you all are doing well
For my thesis I want to simulate some cases with different SST-input data, and now I faced a problem, for which I cannot find the solution...
I have two different sst grib-files. First one is original.
For the second one I converted the grib-file into a netcdf file (via " cdo -f nc copy data_sst_zonal.grib data_sst_zonal.nc " )
For changing the values of the sst-variable, I have gotten another nc-file with only one variable which has the same dimensions as my original sst data.
So I just added those two variables together via:
sstnew = sst1,:, + sst2,
(sst2 is time invariant, so it hast only lon-lat dimension)
I checked and plotted the variable sstnew and everything seems fine and with ncwrite I replaced the old sst with my variable sstnew (and changed the name into sst)
It has the same dimension/size as the original sst variable, so I converted the nc file back to grib via: " cdo -f grb copy data_sst_zonal.nc data_sst_zonal.grib "
But when I link this grib-file and execute ungrib, it says that there is no data for my date...as you can see in the attached log_ungrib_sst.txt
almost at the end of the logfile it shows:
ERROR: Data not found: 2002-07-14_00:00:00.0000
The 07/14/2002 00:00:00 is the first timestep in my namelist.wps, so I guess I can not simply change the values via MatLab?
If so, how can I change them... I want to analyze the differences between the WRF-run with original SST and the one with modified SST.
I tried it the same way just with the original sst-grib file and everything works just fine.
Pls let me know if you need any more information and thank you very much in advance for helping me out
Cheers
Torben