Repository navigation
Add NAQU60to30cr8 mesh - #104
Conversation
|
@sbrus89, based on discussions at the E3SM meeting today (https://acme-climate.atlassian.net/wiki/spaces/EWCG/pages/879656961/2018-11-09+Meeting+notes+-+Water+Cycle), I think we are ok for now (cc @maltrud). We can follow up next week more to discuss any minor tweaks that may be needed. |
- Includes all of USNAQU60to30cr8 refined coastlines plus Labrador Sea
|
@sbrus89 I added this last commit to fix those specs on the date line on the mesh density variable. |
c7b1747 to
1beeeea
Compare
|
@sbrus89 I rebased onto the head of ocean/develop to make sure all my testing is up to date. When you start again, you should fetch and then rebase your local branch on this remote one for those recent changes you added. |
|
@sbrus89 and Kristin, the spin-up process is now in place, and I'm testing it again. You can try as follows: where you use your own directory. You can use my config file. Then cd into that directory, load modules, and from here, run_test.py. That will take you through the whole sequence, and the |
Major improvement to coastal_tools.py - Convert lon, lat coordinates of coastlines and background mesh to x,y,z and compute distances based off the Cartesian coordinates This produces much better results near the poles and avoids the need to use a different projection for different regions of the globe Update build_mesh.py and config_base_mesh.xml for NAEC60to30cr8 mesh - Add links to inject_meshDensity.py and inject_bathymetry.py - Fix order of input statements in build_mesh.py Get rid of obsolete anitmeridian correction in coastal_tools.py - The antimeridian correction done before the distance computation is no longer needed after the switch to using Cartesian coordinates - Right now, this correction is still necessary in finding data inside bounding box regions. This is still triggered by setting lon_wrap = True in the params input. Updates to coastal_tools.py - Add more print statements and clean up screen output - Automatically detect when a bounding box requires wrapping, i.e. the box straddles the antimeridian Right now, this change will only work for include/exclude restrict boxes that modify the application of the cell width function. Region boxes for coastline extraction still need to be entirely on one side of the antimeridian.
c85268b to
fb07ba5
Compare
|
I squashed some of mine and Steve's recent commits. Merged into ocean/develop locally and retested. |
|
@mark-petersen, does this mean we are now ready to merge and spin-up the E3SM case? |
|
@sbrus89 could you do two things, and then we can merge it in.
so we only import those libraries if they are needed (i.e. depending on an option flag)? If they are always needed, that's OK. @pwolfram BTW, @kristin-hoch has been running the CONUS mesh for ten years for the coastal study, following the plan with resolutions of (30, 20, 12, 8km ) and varying transition widths. |
|
@sbrus89 , what is the bathymetry dataset that is being used? i'm not familiar with it. |
@mark-petersen, best practices in python are to import libraries at the top of python files without extra logic to the extent possible. My understanding is that this actually leads to more efficient execution in general. Part of what the PEP8 standard checks for is that imports happen before anything else. I couldn't find these particular imports but I suspect the same should apply here. The exception would be if the logic is checking whether the package even exists, in which case that's reasonable. |
|
@maltrud, The dataset I'm using to find the coastline contours is called SRTM 15 plus. It's a 1/2 degree global resolution and is availiable here: https://topex.ucsd.edu/WWW_html/srtm30_plus.html (first link at the top) At this point, it's not being used in init mode to set the bottom depth variable because the file is too large to be read in and interpolated without running out of memory. We have a script called inject_bathymetry.py that does the interpolation in chunks to get around this. |
|
@mark-petersen, Somehow the file lost the climate group permissions. Sorry about that; I went ahead and set it back. I tried to copy the |
|
@mark-petersen, Unfortunately, those two python libraries are always needed. I believe they were added to e3sm-unified via this issue: E3SM-Project/e3sm-unified#25 |
This merge within COMPASS only. This PR adds the NAEC60to30cr8 test case to COMPASS, which is the US North American refined coastlines plus Labrador Sea, where the background mesh is EC60to30 and the refined part is 8 km. This includes two COMPASS cases, init and spin-up. Init uses jigsaw and adds initial conditions. Spin up has six steps with a sequence of increasing dt and decreasing Rayleigh drag values.
|
@mark-petersen, thanks for the merge on this so that we have a hash for the mesh! |
This merge within COMPASS only. This PR adds the NAEC60to30cr8 test case to COMPASS, which is the US North American refined coastlines plus Labrador Sea, where the background mesh is EC60to30 and the refined part is 8 km. This includes two COMPASS cases, init and spin-up. Init uses jigsaw and adds initial conditions. Spin up has six steps with a sequence of increasing dt and decreasing Rayleigh drag values.
…PAS-Dev#104) * Switch to using flux method in RUC LSM 2-m diagnostics. * The version is changed to 8.2.2-2.5 * mpas_atmphys_driver_seaice.F 1. Fix the bug that crashes MPAS when frac_seaice=false. Use 'if(config_frac_seaice) then' around arrays with *_sea that are allocated only when config_frac_seaice=true. This bug is reported to Michael Duda. 2. Add flqc and flhc computation for fractional ice. These variables are used in RUC ice module and are needed for reproducibility over sea ice. * mpas_atmphys_driver_sfclayer.F: 1. Do not deallocate flqc_sea and flhc_sea - they are used later in the seaice driver. * mpas_atmphys_driver_sfclayer.F: do not compine sea and ice values when xice=1. It will reduce computations over solid sea ice (Arctic). * Skip aggreagation of sea and ice values when xice=1. CPM is not RUC-specific variable, moved out of sf_ruc IF. * Added definition of flhc and flqc for RUC LSM. * Deleted excutables. * Added a blank line. * removed local files. * Set targetcell to 0, this will turn off debug printing. * Modify version to v8.2.2-2.8 * The version is changed to v8.2.2-2.8. * mpas_atmphys_driver_seaice.F: reset water background albedo to sea ice background albedo when water is frozen. * Now I got the sfc_albbck updated correctly. * Sfc_albbck and config_frac_seaice definitions are moved to different lines for easy merge with NCAR code. * mpas_atmphys_driver_lsm.F In the LSM driver frpcpn = false. If it is false, frozen precipitation in RUC and Noah LSMs is computed using temperature threshold and ignoring the information from the microphysics scheme. A new parameter frpcpn_ruc is introduced for use with RUC LSM, and it is set to true. This change will use the microphysics information correctly and will fix the problem with the run-total accumulation of snow depth. * Removed atmosphere_model.v8.2.2-2.8.intdebug * Change cersion to 8.2.2-2.10 * Added comment * fix spacing to match authoritative --------- Co-authored-by: jderrico-noaa <[email protected]>


This PR adds the NAEC60to30cr8 test case to COMPASS, which is the US North American refined coastlines plus Labrador Sea, where the background mesh is EC60to30 and the refined part is 8 km. This includes two COMPASS cases, init and spin-up. Init uses jigsaw and adds initial conditions. Spin up has six steps with a sequence of increasing dt and decreasing Rayleigh drag values.