New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glorys output weird datetime #7
Comments
Hi,
This should be solved by making sure that the units in jdref is correct.
The correct reference for glorys12v1 is
"hours since 1950-01-01»
In model2roms where the following code is:
```
elif confM2R.oceanindatatype == ‘GLORYS':
jdref = date2num(datetime(1948, 1, 1)
```
Could you check what the output of ```cdf.variables["time_counter"].units```
is? You can alternatively set this hardcoded to "hours since 1950-01-01»
Please let me know if this works. Also, you edited model2roms to be able to
use glorys12v1 yourself? Would you provide a pull request so I can add to
the Github repo?
T.
|
Hi @trondkr Thank you for the suggestion. Change to "hours since 1950-01-01" doesn't work, but gave me some insights. I tried a few combinations and it happens that when I set jdref and jd as showed below, the output will have the right datetime (and everything goes well in the ROMS run with ERA5 forcing files).
However, I don't know if this solution is appropriate, because the jdref is set to zero. Is that right? About the pull request, I'm at the early stages to adapt model2roms to work withglorys12v1. As soon as I'm sure everything is adjusted and working properly, I'll create a PR. Best. |
@nilodna - did you resolve this issue and have you been able to use model2roms as you needed? |
Hi @trondkr I'm new in ROMS and I have a problem with the year of ROMS and your code I get this error in the output of ROMS after adding the forcing files and running: "MULTIFILE_INFO_S2D - Error while processing forcing multi-files: in this link below, you can see my ROMS input and your code that I changed: [https://drive.google.com/file/d/1m0xorpsoeAm80nn7JCgoUaXHFjy_oKoo/view?usp=sharing] Thanks a lot |
Hi. Your data does not seem to include the initial date when you want ROMS to start. Try changing the init file and start date to 2013-01-15 00:00:00 or to the first timestamp you have data for. Use Climate Data Operators to check the files “cdo sinfov file.nc"
T.
…On Jan 27, 2021, 2:02 PM -0800, AMIRJALA ***@***.***>, wrote:
Hi @trondkr
I'm new in ROMS and I have a problem with the year of ROMS and your code
I get this error in the output of ROMS after adding the forcing files and running:
"MULTIFILE_INFO_S2D - Error while processing forcing multi-files:
data does not include initialization time = 2013-01-01 00:00:00.00"
in this link below, you can see my ROMS input and your code that I changed:
[https://drive.google.com/file/d/1m0xorpsoeAm80nn7JCgoUaXHFjy_oKoo/view?usp=sharing]
Thanks a lot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi @trondkr Actually, I didn't have time to continue on this. I'll dig my files to see if I have some hardcoded adaptation and I can send it to you. |
Thanks a lot for your helping @trondkr NETCDF_GET_TIME_1D - error while inquiring ID for variable: srf_time the time from the data that downloaded from your cod is lwrad_time but the model needs srf_time! thanks again for your response |
@AMIRJALA According to the code the following values are used when creating the ERA5 ROMS file:
So you see the time name used is Closing this as it does not seem caused by this toolbox but feel free to re-open if still an issue. |
Hi @trondkr
I'm using model2roms to create initial and boundary conditions files for a ROMS simulation, using GLORYS output as a source dataset. The package is running and generating files with consistent physical patterns. However, these files have wrong and very weird datetime, with years around 3550 (slice of code below). This issue turns out to be a big problem when setting a new simulation with atmospheric forcing because dates don't match.
The problem also repeats in the boundary conditions files:
Any ideas on what is causing the weird years?
The text was updated successfully, but these errors were encountered: