Search found 27 matches

by jc_Sun
Mon Jul 24, 2023 1:00 pm
Forum: ROMS Discussion
Topic: How to obtain pressure or pressure gradient in ROMS
Replies: 2
Views: 4465

Re: How to obtain pressure or pressure gradient in ROMS

pressure gradient: the averaged value tends to the instantaneous value as the averaging period tends to zero, six-hourly averages may not be much different than the instantaneous value you need. you can hack the code to not average pressure: you can compute the pressure by integrating density ...
by jc_Sun
Tue Jul 18, 2023 8:49 am
Forum: ROMS Discussion
Topic: How to obtain pressure or pressure gradient in ROMS
Replies: 2
Views: 4465

How to obtain pressure or pressure gradient in ROMS

Dear users, Maybe I'm asking a stupid question, but I still can't figure out a good way to determine it after reading some posts. This is because I am asking to solve the kinetic energy budget equation, but the pressure or pressure gradient in the equation is not known to me. So what I am asking is ...
by jc_Sun
Mon Apr 03, 2023 6:48 am
Forum: ROMS Discussion
Topic: wrf-roms coupling for tropical cyclone simulation duration
Replies: 1
Views: 4557

wrf-roms coupling for tropical cyclone simulation duration

Hello, everyone I found that if I start the wrf-roms simulation a few days before a tropical cyclone appears, the tc path shift is very strong. So can the simulation only be started at the beginning of the cyclone? I see that the sandy case of coawst also starts at the beginning of the cyclone. Is ...
by jc_Sun
Sun Mar 19, 2023 1:58 pm
Forum: ROMS Discussion
Topic: Error caused by define NONLIN_EOS
Replies: 0
Views: 4889

Error caused by define NONLIN_EOS

Hello, colleagues I am running a simulation and find that the simulation below up immediately after defining NONLIN_EOS. I tried to circumvent the problem by shortening the dt, but the problem was not solved. The simulation continues when NONLIN_EOS is not defined, i.e. when using linear density ...
by jc_Sun
Fri Nov 11, 2022 8:28 am
Forum: ROMS Discussion
Topic: Wrong Temperature and salinity outputs
Replies: 1
Views: 1502

Re: Wrong Temperature and salinity outputs

This is the log file.
by jc_Sun
Fri Nov 11, 2022 8:26 am
Forum: ROMS Discussion
Topic: Wrong Temperature and salinity outputs
Replies: 1
Views: 1502

Wrong Temperature and salinity outputs

Hello everyone, When I plotted the roms output file, I found that the temperature difference was particularly large. The graph at the initial moment should be normal. However, after the simulation calculation, the temperature dropped sharply in the following moments. After a few days of simulation ...
by jc_Sun
Tue Oct 18, 2022 6:02 am
Forum: ROMS Discussion
Topic: ROMS runtime setting problem
Replies: 7
Views: 11420

Re: ROMS runtime setting problem

Dear Dr Wilkin,
Thank you very much for your help. I have solved this error. Referring to this post, after I modified the boundary file and dt, it works fine. viewtopic.php?t=4455
by jc_Sun
Tue Oct 11, 2022 7:52 am
Forum: ROMS Discussion
Topic: ROMS runtime setting problem
Replies: 7
Views: 11420

Re: ROMS runtime setting problem

You haven't #define MASKING Dear, wilkin Thank you for your reply. I modified the h-file section and compiled it, but I still get the same error. I don't understand why the error section TIME-STEP in the output file is so huge. And I don't have NAN in all input files, but KINETIC_ENRG and TOTAL ...
by jc_Sun
Mon Oct 10, 2022 2:50 pm
Forum: ROMS Discussion
Topic: ROMS runtime setting problem
Replies: 7
Views: 11420

Re: ROMS runtime setting problem

Thank you for your reply. Is it possible if I replace nan with 0 in the file? And will roms do the screening operation based on mask? Yes, zero values (any finite value) in the land should solve your initialization problem. Then the masks will be applied - zero times anything finite is zero. ROMS ...
by jc_Sun
Mon Oct 10, 2022 1:30 pm
Forum: ROMS Discussion
Topic: ROMS runtime setting problem
Replies: 7
Views: 11420

Re: ROMS runtime setting problem

You can't have NaNa in any input fields, not even in the area masked as land. ROMS computes on all points and then applies the 0/1 land mask afterward. Zero times NaN is NaN, so they won't go away. Your log reports that both forcing and boundary data were read for initial time 2019-08-01 00:00:00 ...
by jc_Sun
Sat Oct 08, 2022 2:09 pm
Forum: ROMS Discussion
Topic: ROMS runtime setting problem
Replies: 7
Views: 11420

ROMS runtime setting problem

Hello, everyone I'm having 2 problems running roms, hope someone can help me out. The first is whether the time step of the drive field file and the boundary file are inconsistent, which will lead to an error in the calculation result. The second is whether nan in temperature and salinity in the ...
by jc_Sun
Thu Sep 22, 2022 2:55 pm
Forum: ROMS Discussion
Topic: Re: D_ECMWF2ROMS Matlab scripts (ECMWF hourly data accumulation)
Replies: 6
Views: 10982

Re: D_ECMWF2ROMS Matlab scripts (ECMWF hourly data accumulation)

Your file output.txt indicates that the ERA5 forcing data were read successfully. The next thing ROMS is doing when the error occurs is reading the open boundary conditions file, and the first variable it reads is zeta, so that's why you are getting an error about zeta_time. The log says your Input ...
by jc_Sun
Thu Sep 22, 2022 2:12 pm
Forum: ROMS Discussion
Topic: Re: D_ECMWF2ROMS Matlab scripts (ECMWF hourly data accumulation)
Replies: 6
Views: 10982

Re: D_ECMWF2ROMS Matlab scripts (ECMWF hourly data accumulation)

The netcdf files created by roms_write_era5_NCARds633_frcfile.m have a time coordinate variable called "time" (not zeta_time) and the "time" attribute of all variables will point ROMS to read "time" in preference the default in varinfo.dat. But, I can't imagine what meteorology forcing file would ...
by jc_Sun
Thu Sep 22, 2022 8:34 am
Forum: ROMS Discussion
Topic: Re: D_ECMWF2ROMS Matlab scripts (ECMWF hourly data accumulation)
Replies: 6
Views: 10982

Re: D_ECMWF2ROMS Matlab scripts (ECMWF hourly data accumulation)

I wrote that code long ago and have not updated from ERA-Interim to ERA5. You will have to figure out the accumulation logic yourself, if indeed that is still how the data are presented (it may not be, check the units). I now access ERA5 from the NCAR Research Data Archive using roms_write_era5 ...
by jc_Sun
Wed Sep 21, 2022 8:17 am
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

Re: How do I set the time in the bulk file

From what I could gather, the problem might be that your forcing fields grid is inconsistent with your model grid. Your model grid appears to be defined in cartesian coordinates: ANA_GRID - x-location of RHO-points: x_rho (Grid = 01, Min = -5.00000000E+02 Max = 8.35000000E+04) ANA_GRID - y-location ...
by jc_Sun
Tue Sep 20, 2022 2:37 pm
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

Re: How do I set the time in the bulk file

jbettencourt wrote: Tue Sep 20, 2022 11:52 am Can you post the log file?
This si my log file.
by jc_Sun
Tue Sep 20, 2022 8:03 am
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

Re: How do I set the time in the bulk file

GET_2DFLD_NF90 - error while reading variable: Uwind at TIME index = 8 I think this means that the error is with the Uwind variable data in the file. I'm sorry I left a little bit out, but it's related to the grid.But how to deal with that? The latitude and longitude of my bulk file is shown below ...
by jc_Sun
Mon Sep 19, 2022 12:03 pm
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

Re: How do I set the time in the bulk file

[/code] Your units attribute should be like "days since 1980-01-01 00:00:00", so that the model can have a reference time from which to count the time units. In the input file, you should set TIMEREF to an appropriate reference time, that could be the same as the one in the forcing file, and then ...
by jc_Sun
Mon Sep 19, 2022 7:59 am
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

Re: How do I set the time in the bulk file

Your units attribute should be like "days since 1980-01-01 00:00:00", so that the model can have a reference time from which to count the time units. In the input file, you should set TIMEREF to an appropriate reference time, that could be the same as the one in the forcing file, and then set ...
by jc_Sun
Mon Sep 19, 2022 7:27 am
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

Re: How do I set the time in the bulk file

Hi, It seems you need to check two things: In your forcing file, the units attribute of the time variable to see if it matches with the time data. In your input file, the initialisation time of the model, that is the value of TIMEREF and DSTART. Hello, In my forcing file, the units attribute of the ...
by jc_Sun
Sat Sep 17, 2022 8:46 am
Forum: ROMS Discussion
Topic: How do I set the time in the bulk file
Replies: 11
Views: 3250

How do I set the time in the bulk file

Hello, I'm having a problem running ROMs, which tells me that there is a problem with the timing. The driver field file I use is CFVR data, and the time is datenum(NECPTime-1980010100:00:00). Do I need to convert it into ROMS readable time? How do I set it? MULTIFILE_INFO_S2D - Error while ...
by jc_Sun
Mon Sep 12, 2022 9:35 am
Forum: ROMS Problems
Topic: Forcing file erro
Replies: 2
Views: 3332

Re: Forcing file erro

Thank you for your advice
by jc_Sun
Sun Sep 11, 2022 3:13 pm
Forum: ROMS Problems
Topic: Forcing file erro
Replies: 2
Views: 3332

Forcing file erro

Hi, I want to use ROMS for one month simulation, and I made the relevant NC file using crocotools, but the following error appears after execution, I checked blk.nc and found that there is no variable wind_time and cycle_length related properties. GET_CYCLE_NF90 - unable to get value for attribute ...
by jc_Sun
Thu Sep 01, 2022 3:02 pm
Forum: ROMS Installation
Topic: Error compiling ROMS in COAWST
Replies: 5
Views: 10178

Re: Error compiling ROMS in COAWST

Thank you very much for your answer, it helped me solve my doubt.If I have any more questions, I will choose to go to GitHub to ask.
by jc_Sun
Thu Sep 01, 2022 2:28 pm
Forum: ROMS Installation
Topic: Error compiling ROMS in COAWST
Replies: 5
Views: 10178

Re: Error compiling ROMS in COAWST

In other words, as long as I can compile successfully to produce coawstM, that's equivalent to romsM compiling successfully, right?
by jc_Sun
Thu Sep 01, 2022 1:18 pm
Forum: ROMS Installation
Topic: Error compiling ROMS in COAWST
Replies: 5
Views: 10178

Re: Error compiling ROMS in COAWST

Thank you for your reply.
by jc_Sun
Thu Sep 01, 2022 6:05 am
Forum: ROMS Installation
Topic: Error compiling ROMS in COAWST
Replies: 5
Views: 10178

Error compiling ROMS in COAWST

Dear all, I tried to compile in the ROMS module in COAWST, but the following error occurred: svn: E155007: '/public/home/sunjiacheng/coawst_test/COAWST-master' is not a working copy svn: E155007: '/public/home/sunjiacheng/coawst_test/COAWST-master' is not a working copy rm -f -r core *.ipo /public/h ...