Search found 38 matches

by Dan_chan
Mon Mar 04, 2024 8:51 am
Forum: ROMS Discussion
Topic: Difference between 'TIDE_START' and 'zero_phase_date'
Replies: 0
Views: 178

Difference between 'TIDE_START' and 'zero_phase_date'

Hi, I use OTPS to extract my TIDEFILE and have some confusion about "tide_start". As OTPS toolbox couldn't set zero_phase_date variable directly, I set TIDE_START in roms.in. As shown in #896 https://www.myroms.org/projects/src/ticket/896 , it returns to same result compared with zero_phas...
by Dan_chan
Sat Mar 02, 2024 11:20 am
Forum: ROMS Discussion
Topic: Query about FRCNAME Limitation in .in Files
Replies: 2
Views: 442

Re: Query about FRCNAME Limitation in .in Files

Thank you,

I am currently using rst to implement long-time simulation, it works. ROMS/Modules/mod_iounits.F helps me steer clear of potential issues related to character lengths in the future, I would continue to familiarize myself with the ROMS source code. :D
by Dan_chan
Fri Mar 01, 2024 8:02 am
Forum: ROMS Discussion
Topic: Query about FRCNAME Limitation in .in Files
Replies: 2
Views: 442

Query about FRCNAME Limitation in .in Files

Hi everyone, I've encountered an issue with the FRCNAME parameter in my roms.in and I'm seeking some guidance. It seems that when the number of FRCNAME entries exceeds 204 , for example 210 (though NFFILES == 7, 7*30years=210), I encounter an error. Unfortunately, there is no specific "Error&qu...
by Dan_chan
Sat Jan 27, 2024 9:35 am
Forum: ROMS Tools and Techniques
Topic: different pm and pn using COAWST and Rutgers Toolkits
Replies: 2
Views: 1083

Re: different pm and pn using COAWST and Rutgers Toolkits

Thank you. I have followed your suggestion and updated the mat2roms_mw.m. I am pleased to report that the results are now align correctly with another. mean of pm using coawst = 2.2583e-04; mean of pn using coawst = 2.2577e-04; mean of pm using roms_metrics = 2.2567e-04; mean of pn using roms_metric...
by Dan_chan
Fri Jan 26, 2024 4:23 pm
Forum: ROMS Tools and Techniques
Topic: different pm and pn using COAWST and Rutgers Toolkits
Replies: 2
Views: 1083

different pm and pn using COAWST and Rutgers Toolkits

Hi, I am currently experimenting with the generation of grid.nc using two different toolkits (coawst and roms-web). But I noticed a significant disparity in the values of pm and pn obtained from these two sources. I then stick some steps briefly to show how I generated pm and pn below. (lon and lat ...
by Dan_chan
Mon Jan 08, 2024 4:52 pm
Forum: ROMS Bugs
Topic: History file archiving intervals: bug in output.F?
Replies: 12
Views: 43693

Re: History file archiving intervals: bug in output.F?

I am sorry to post my error here. I met similar Error, inquiring average file TIME-STEP YYYY-MM-DD hh:mm:ss.ss KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME C => (i,j,k) Cu Cv Cw Max Speed 394560 1993-01-01 00:00:00.00 4.052343E-03 2.939434E+02 2.939475E+02 2.416712E+13 (127,076,31) 1.508281E-02 3.1...
by Dan_chan
Tue Sep 26, 2023 11:18 am
Forum: ROMS Documentation
Topic: update of "Waves Effect on Currents" ?
Replies: 2
Views: 5405

Re: update of "Waves Effect on Currents" ?

Thank you for answers :D

:!: I changed the revision 1192 back to 1170 without "Waves Effect on Currents", but pio failed to compile.

revision 1192:
image-20230926191545808.png
I used the same external libraries in revision 1170:
image-20230926191600315.png
by Dan_chan
Mon Sep 25, 2023 8:09 am
Forum: ROMS Documentation
Topic: update of "Waves Effect on Currents" ?
Replies: 2
Views: 5405

update of "Waves Effect on Currents" ?

Hi,

I found ROMS update "Waves Effect on Currents" in roms.in (https://www.myroms.org/projects/src/ticket/943) which I have never used in old versions. I am very confused of these settings and how to activate ?
by Dan_chan
Mon May 29, 2023 9:07 am
Forum: ROMS Results
Topic: boundary condition not absorb
Replies: 5
Views: 5125

Re: boundary condition not absorb

I change my ''bry.nc'', the results become better, though the figure of two "bry.nc" seem nearly same. I will continue to check is there any invisible requirements when make boundary file.
by Dan_chan
Sat May 13, 2023 3:02 pm
Forum: ROMS Results
Topic: boundary condition not absorb
Replies: 5
Views: 5125

Re: boundary condition not absorb

I apologize for my earlier premature enthusiasm. While the large-scale anomaly at the eastern boundary has indeed disappeared, a narrow anomaly remains at the southern boundary. Even after moving south boundary northward, contracting the simulation area, this anomaly persists. Moreover, it is partic...
by Dan_chan
Sat May 13, 2023 2:11 pm
Forum: ROMS Results
Topic: boundary condition not absorb
Replies: 5
Views: 5125

Re: boundary condition not absorb

Hi, Chen I think I may not explain clear before, I changed TNU2 from 0 to 10, which help diffusion of TS, It looked better. However, actually, I find I not solve the problem at all. There is still strong error at southern boundary, it appears only in May, June, July and Aug at surface. I am try to f...
by Dan_chan
Mon May 08, 2023 7:10 pm
Forum: ROMS Problems
Topic: NaN occur in fisrt step
Replies: 7
Views: 8399

Re: NaN occur in fisrt step

I believe there are many possible causes for this issue, such as ‘NaN’ in the forcing files or timestamp problems, as noted by fellow contributors earlier in this thread. In fact, I myself recently encountered a same problem. Fortunately or unfortunately, my model did not blow-up, possibly because I...
by Dan_chan
Sat May 06, 2023 10:59 am
Forum: ROMS Results
Topic: boundary condition not absorb
Replies: 5
Views: 5125

Re: boundary condition not absorb

Hi, I change my configure of TNU2, TNUDG and OBCFAC, and the boundary condition becomes better. Before, I use similiar configure of upwelling which set them as zero. But, it seems not suitable in my case. Hope to learn more of how to configure my roms.in later.
by Dan_chan
Sat May 06, 2023 10:52 am
Forum: ROMS Problems
Topic: CPU time and MPI issues with nested grids
Replies: 18
Views: 22317

Re: CPU time and MPI issues with nested grids

Hello everyone, I apologize for resurrecting this post. However, I believe I have identified where my previous issue occurred. It relates to the advection schemes, and I realized that the new version of ROMS allows for setting advection schemes for each tracer with switches instead of a single CPP f...
by Dan_chan
Tue May 02, 2023 8:27 am
Forum: ROMS Results
Topic: boundary condition not absorb
Replies: 5
Views: 5125

boundary condition not absorb

Hi, I am having an issue with the temperature output from my ROMS model. The temperature seems to be bad at the open boundary, as shown in Figure 1. I have compared the ROMS output with the sst data from ERA5 and avhrr-oisst datasets. I also checked the boundary netcdf compared to the ROMS output an...
by Dan_chan
Sat Apr 08, 2023 8:18 am
Forum: ROMS Discussion
Topic: Error while using contact.m : Unrecognized field name "contact".
Replies: 2
Views: 4856

Re: Error while using contact.m : Unrecognized field name "contact".

I faced this problem but forgot some details. Maybe you could try to use matlab tool to extract child grid. Or, try to run contact script lines by lines. The error may caused by lon-lat or xi-eta, the difference between these two types not recognized automatically.
Best regards. :D
by Dan_chan
Wed Mar 29, 2023 8:32 am
Forum: ROMS Problems
Topic: CPU time and MPI issues with nested grids
Replies: 18
Views: 22317

Re: CPU time and MPI issues with nested grids

Hi, I have a nesting error, and I am not sure if it is somthing to this topic. I have two exp, they are both online-nesting. One is two-layers, outer parent grid's rho points is '221*303' (grdA), and its child grid (refined factor = 3) is '362*254' (grdB). I test one year, it can run. And I set Ntil...
by Dan_chan
Fri Nov 04, 2022 4:53 am
Forum: ROMS Tools and Techniques
Topic: some possible errors using matlab tool
Replies: 6
Views: 13382

Re: some possible errors using matlab tool

Thank you Wikin, you are right. nc_attadd and nc_varrename are ok.
wilkin wrote: Thu Nov 03, 2022 3:29 pm However, I did not get any errors using nc_attadd or nc_varrename. Only nc_drename.
by Dan_chan
Thu Nov 03, 2022 2:55 pm
Forum: ROMS Tools and Techniques
Topic: some possible errors using matlab tool
Replies: 6
Views: 13382

Re: some possible errors using matlab tool

The NetCDF library encountered an error during execution of 'renameDim' function - 'Operation not allowed in data mode (NC_ENOTINDEFINE)'. When I use 'nc_drename' function today,I encounter the following error: >> nc_drename(fid,'xrho','xi_rho') Error using matlab.internal.imagesci.netcdflib The Ne...
by Dan_chan
Mon Oct 31, 2022 6:31 am
Forum: ROMS Tools and Techniques
Topic: some possible errors using matlab tool
Replies: 6
Views: 13382

some possible errors using matlab tool

Unrecognized field name "f" using coarse2fine Hi, I am using the latest version matlab tools ( https://www.myroms.org/svn/src/matlab) to generate finer grid nc. But, I encounter the following error: Unrecognized field name "f". Error in coarse2fine (line 666) status = nc_write (...
by Dan_chan
Thu Oct 20, 2022 1:09 pm
Forum: ROMS Tools and Techniques
Topic: Create boundary and initial file from seagrid and GLBa0.08
Replies: 35
Views: 268197

Re: Create boundary and initial file from seagrid and GLBa0.08

Hi, I test pyroms example Palau_HYCOM directly and make grid nc file. But when I run 'python make_remap_weight_file.py' or 'python make_bdry_file.py 2015', it return an error on spheical. I find out the error command in .py script is dstgrd = pyroms.grid.get_ROMS_grid('PALAU1') >>> dstgrd = pyroms.g...
by Dan_chan
Thu Sep 22, 2022 5:42 am
Forum: ROMS Discussion
Topic: Which tool is the stablest tools to create ROMS grid?
Replies: 56
Views: 258289

Re: Which tool is the stablest tools to create ROMS grid?

Remarkably, I tested contact function in lake_jersey app, came with the same error. I run the command according to https://www.myroms.org/wiki/Lake_Jersey_Refinement_Example_ADE. I guess something may need to update. >> Gnames = {'lake_jersey_grd_a.nc', 'lake_jersey_grd_d.nc', 'lake_jersey_grd_e.nc'...
by Dan_chan
Thu Sep 22, 2022 4:36 am
Forum: ROMS Discussion
Topic: Which tool is the stablest tools to create ROMS grid?
Replies: 56
Views: 258289

Re: Which tool is the stablest tools to create ROMS grid?

Hi Kosa,

For Mac (apple silicon is also ok), you might just double click "GridBuilder_toolbox.mltbx" in Matlab window, and it will be loaded in your matlab toolbox automatically. Then, run "GridBuilder" command directly, Gui will show.

Hope it could help.

Dan
by Dan_chan
Wed Sep 21, 2022 4:13 pm
Forum: ROMS Discussion
Topic: Which tool is the stablest tools to create ROMS grid?
Replies: 56
Views: 258289

Re: Which tool is the stablest tools to create ROMS grid?

Hi, I used grid matlab tool (from https://www.myroms.org/svn/src/matlab/grid/) to generate my nested grid contact nc. But, I met the same problem as the second question of floor #22. %% create grd nc of parent domain [99-140,0-26] >> x = 99:1:140; >> y = 0:1:26; >> [rlon,rlat] = meshgrid(x,y); >> rl...
by Dan_chan
Wed Sep 21, 2022 3:05 pm
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

Thank you wilkin, I will git it for keeping latest version.
by Dan_chan
Wed Sep 21, 2022 2:40 pm
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

Dear Wilkin,

Is there any difference between svn and github? I used svn to download and svn update in current dir. But it keeps -360.

If so, I might to download from github.

Thank you
by Dan_chan
Wed Sep 21, 2022 3:47 am
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

Thank you arango,

They are useful to change my lon of past downloded file.
by Dan_chan
Tue Sep 20, 2022 8:15 am
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

(to answer #3) Refer to forum https://www.myroms.org/forum/viewtopic.php?p=22253#p22253 (#13), I try to modify roms_get_era5_NCARds633_bulkflux in around line 282 and line 292. original version: lon = ncread(url,'longitude')-360; % read global lon, this is to change (180,360] to [-180,0] which is wo...
by Dan_chan
Tue Sep 20, 2022 1:33 am
Forum: ROMS Tools and Techniques
Topic: Extraction of ERA 5 data for custom grid
Replies: 34
Views: 84084

Re: Extraction of ERA 5 data for custom grid

Hi Wilkin,

You are right, the error may be fixed automatically. Now it works well.

Thank you
by Dan_chan
Mon Sep 19, 2022 6:25 am
Forum: ROMS Tools and Techniques
Topic: Extraction of ERA 5 data for custom grid
Replies: 34
Views: 84084

Re: Extraction of ERA 5 data for custom grid

Hi all, I met a new wrong when using roms_get_era5_NCARds633_bulkflux function. Actually, it worked well yesterday and I got some forcing nc. But, today the error shows like: Processing variable mean sea-level pressure Error using matlab.internal.imagesci.netcdflib The NetCDF library encountered an ...
by Dan_chan
Mon Sep 19, 2022 3:37 am
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

Hi Arango,

Thank you for kind help.

Dan
by Dan_chan
Sun Sep 18, 2022 2:47 pm
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

Hi, I still have a problem on bbox. I am used to -180 to 180 or 0 to 360 when read longitude. But, the output is -360 to 0 when units shows 'degree_east'. I want to make sure that this is correct or not? I had set bbox as [99 140 0 26] before, but error showed like: Processing variable mean sea-leve...
by Dan_chan
Sun Sep 18, 2022 2:36 pm
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

Re: no bitcount using roms_write_era5_NCARds633_frcfile.m

Sorry,

Maybe I missed bitcount. I download bitcount function from matlab web. https://ww2.mathworks.cn/matlabcentral/ ... bitcount_2.

Now, roms_write_era5_NCARds633_frcfile.m is ok.

Thanks to all.
by Dan_chan
Sun Sep 18, 2022 2:29 pm
Forum: ROMS Tools and Techniques
Topic: no bitcount using roms_write_era5_NCARds633_frcfile.m
Replies: 12
Views: 20580

no bitcount using roms_write_era5_NCARds633_frcfile.m

Hi, I am using Matlab tool shared by Wilkin to write forcing file. First, I got E value using roms_get_era5_NCARds633_bulkflux.m. I chose the real box as 99E-140E 0-26N, and set bbox as [-261 -220 0 26]. This function worked well and E value generated. Then, I run roms_write_era5_NCARds633_frcfile.m...
by Dan_chan
Tue Aug 30, 2022 1:56 pm
Forum: ROMS Discussion
Topic: How to correct HYCOM SSH before using it as OBCs in ROMS
Replies: 4
Views: 2844

Re: How to correct HYCOM SSH before using it as OBCs in ROMS

Dear Ivan, I am new in ROMS and Data assimilation, so I am sorry for I couldn't solve your problems. Besides, I'd like to ask you some question on your result. As shown in npo_roms_grids_new.png, what did 2 rectangle mean? Do they relate to Nested Grids? How could you realize nested grids in OI. If ...
by Dan_chan
Tue Aug 30, 2022 5:10 am
Forum: ROMS Installation
Topic: Errors when install Plotting Package
Replies: 3
Views: 4184

Re: Errors when install Plotting Package

The homebrew installed NCL (NCAR Graphics) was built for x86-64 (presumably under the Rosetta 2) but you are attempting to build the package for arm64. I'm not familiar with homebrew but a quick google search suggests maybe trying to install ncl with: arch -arm64 brew install ncl Hi, Thank you for ...
by Dan_chan
Mon Aug 29, 2022 3:32 pm
Forum: ROMS Installation
Topic: Errors when install Plotting Package
Replies: 3
Views: 4184

Re: Errors when install Plotting Package

Does that mean ARM could not support Plotting Package?
by Dan_chan
Mon Aug 29, 2022 3:31 pm
Forum: ROMS Installation
Topic: Errors when install Plotting Package
Replies: 3
Views: 4184

Errors when install Plotting Package

Hello, I tried to install Plotting Package in my PC(MAC with apple silicon). But when I 'make', it errors like that. How to solve it? Thank you Warning: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)). /opt/homebrew/Cellar/open-mpi/4.1.4_1/bin/mpif90 -fre...