Search found 5 matches

by yusriy
Wed Jun 17, 2020 3:45 am
Forum: ROMS Usage
Topic: How do I input my own netCDF grid file for the ROMS Upwelling test case?
Replies: 10
Views: 11147

Re: How do I input my own netCDF grid file for the ROMS Upwelling test case?

clear; % Import the local grid netcdf file. local_grid = '/your_folder/your_file.nc'; ncdisp(local_grid); % to preview the nc file ncid3=netcdf.open(local_grid); % Read the values from the original netcdf file h(1:xi_rho,1:eta_rho) = ncread(local_grid,'h'); % Edit the values h(h <= 0) = 2; % to a ...
by yusriy
Tue Jun 16, 2020 2:59 pm
Forum: ROMS Usage
Topic: How do I input my own netCDF grid file for the ROMS Upwelling test case?
Replies: 10
Views: 11147

Re: How do I input my own netCDF grid file for the ROMS Upwelling test case?

Where you have land (mask_rho = 0) set h to some finite positive value. Most users choose the minimum depth in the valid water points as the value to use where there is land.
Thanks for the response! Do you have suggestions on how can I do the quoted above?
by yusriy
Tue Jun 16, 2020 1:32 pm
Forum: ROMS Usage
Topic: How do I input my own netCDF grid file for the ROMS Upwelling test case?
Replies: 10
Views: 11147

Re: How do I input my own netCDF grid file for the ROMS Upwelling test case?

When ROMS runs it writes the grid information to the output netcdf files. Everything is in there to actually use the history file as a grid file. So test this out. Run UPWELLING with the ana_grid option for a brief simulation. Then #undef ANA_GRID and instead point GRDNAME to the history file. Does ...
by yusriy
Thu Jun 11, 2020 12:38 am
Forum: ROMS Usage
Topic: How do I input my own netCDF grid file for the ROMS Upwelling test case?
Replies: 10
Views: 11147

Re: How do I input my own netCDF grid file for the ROMS Upwelling test case?

Thanks for the suggestion! I will try that now and post the result here.
by yusriy
Tue Jun 09, 2020 1:16 pm
Forum: ROMS Usage
Topic: How do I input my own netCDF grid file for the ROMS Upwelling test case?
Replies: 10
Views: 11147

Re: How do I input my own netCDF grid file for the ROMS Upwelling test case?

Hi everyone! I am in the same boat as satpal97. I want to run a local grid using the upwelling test case but faced the same error. This is what I did so far. I created the grid using GridBuilder, changed #define to #undef for the ANA_GRID in the upwelling.h file, recompiled, edited the roms ...