Changes between Initial Version and Version 1 of Ticket #870
- Timestamp:
- 10/16/20 00:06:43 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #870
- Property Resolution → Done
- Property Status new → closed
-
Ticket #870 – Description
initial v1 1 Several changes were introduced src:ticket:869 about how to process the surface tracer fluxes that are used as boundary conditions to the vertical diffusion term. A couple of additional changes are made here to remove any ambiguity about the surface freshwater flux needed for ROMS.1 Several changes were introduced in src:ticket:869 about how to process the surface/bottom tracer fluxes that are used as top/bottom boundary conditions to the vertical diffusion terms. A couple of additional changes are made here to remove any ambiguity about the surface freshwater flux needed for ROMS. 2 2 3 3 Notice that ROMS has the following vertical surface/bottom boundary condition for temperature and salinity: … … 5 5 [[Image(http://www.myroms.org/trac/stflux.png, center, 600)]] 6 6 7 In particular, the blue square shows what ROMS needs as a freshwater flux. Usually, '''E-P''' is units of '''kilogram meter-2 second-1'''. Then, the flux is divided by freshwater density, which converts to '''meter second-1'''. In routine '''set_vbc.F''' such flux is multiplied by the surface salinity. Since the salinity does not have [https://www.myroms.org/forum/viewtopic.php?t=294 physical units], the vertical boundary condition is still in '''meter second-1'''.7 In particular, the blue square shows what ROMS needs as a freshwater flux. Usually, '''E-P''' is in units of '''kilogram meter-2 second-1'''. Then, the flux is divided by freshwater density, which converts to '''meter second-1'''. In routine '''set_vbc.F''' such flux is multiplied by the surface salinity. Since the salinity does not have [https://www.myroms.org/forum/viewtopic.php?t=294 physical units], the vertical boundary condition is still in '''meter second-1'''. 8 8 9 9 I cleaned the metadata in '''varinfo.dat''', now we have: … … 31 31 'meter second-1' ! computed by NLM ROMS 32 32 'EminusP, scalar, series' ! bulk_flux.F or coupling 33 'ocean_time' ! needed in adjoint-based34 'idEmPf' ! applications33 'ocean_time' 34 'idEmPf' 35 35 'r2dvar' 36 36 1.0d0 37 37 }}} 38 38 39 As it is specified in the preamble of '''varinfo.dat''', the '''PSS''' is added on purpose to indicate that the Practical Salinity Scale was use to determine condutivity but it not a physical unit. We areusing the latest UNESCO equation of state.39 As specified in the preamble of '''varinfo.dat''', the '''PSS''' information is added to indicate that the Practical Salinity Scale was used to determine conductivity, but it is not a physical unit. We are not using the latest UNESCO equation of state. 40 40 41 We have two different variables for input freshwater flux: '''swflux''' and '''EminusP'''. Historically, '''swflux''' has been used for available datasets while '''EminusP''' has been used when derived from parameterizations ('''BULK_FLUXES''' and atmospheric coupling). To avoid any confusion, the units and scale for '''swflux''' were changed to '''meter second-1''' and '''1.0d0''' respectively. It is the standard units. If such field is in '''centimeter day-1''', I recomend to add the '''scale_factor''' attribute to the NetCDF, so the conversion is done during reading in ROMS:41 We have two different variables for input freshwater flux: '''swflux''' and '''EminusP'''. Historically, '''swflux''' has been used for available datasets while '''EminusP''' has been used when derived from parameterizations ('''BULK_FLUXES''' and atmospheric coupling). To avoid any confusion, the units and scale for '''swflux''' were changed to '''meter second-1''' and '''1.0d0''', respectively. It is the standard unit for freshwater flux. If such field is in '''centimeter day-1''', I recomend to add the '''scale_factor''' attribute to the NetCDF, so the conversion is done during reading in ROMS: 42 42 {{{ 43 43 float swflux(swf_time, eta_rho, xi_rho) ; … … 50 50 swflux:scale_factor = 1.157407e-07f ; 51 51 }}} 52 We could use the Matlab script to adjust the NetCDF file: 53 {{{ 54 nc_attadd('my_file.nc','scale_factor',0.01/86400,'swflux') 55 }}} 56 57 ---- 52 58 53 59 * Corrected '''get_data.F''' and '''set_data.F''' processing of the freshwater flux when the '''SCORRECTION''' is activated. 54 60 55 * Corrected issue in '''regrid.F'''. It was missing the '''MASKING''' conditional.61 * Corrected compiling issue in '''regrid.F'''. It was missing the '''MASKING''' conditional.