Skip to content

Conversation

@nikizadehgfdl
Copy link

I think this line was missing in GMesh.py. It fixed a problem with refined-sampling of the Southern Cap grid.
I also deleted the old notebooks.

nikizadehgfdl and others added 13 commits April 4, 2019 11:38
merge in corrections and new developments  by adcroft to GMesh
- I think the minimum limiting of nn_i was missing. The need for it showed up in  South Pole Cap refine-sample notebook.
- Works fine for Mercator and Southern Ocean grids
- Not so good for the Bipolar north cap grid (there are missing source hits)
- Not tested for the displaced south pole yet

- Removed the "assert"s from GMesh.py since I didn't understand them!!!!
@adcroft adcroft force-pushed the dev branch 2 times, most recently from e2eae4f to 551d433 Compare May 3, 2019 14:49
nikizadehgfdl and others added 15 commits May 8, 2019 17:48
- Imported the ice9.py tool from MOM6-examples/ice_ocean_SIS2/OM4_025/preprocessing/ice9.py
- Changed ice9.py to work with python3 ( print --> print())
- Added a topog merge tool to concatenate the sub-topog files
- Fixes for the create_topog_refinedSampling.py
- This tool could be generalized to be work for all resolutions
- The tool sometimes crashes by finding j=-1 for the source index
  i index was fixed before by limiting it to imin. Why not j?
  Why does this happen at all?
- ice9 was finishing producing no ocean mask since the seed was not wet.
  This update tries to change the seed to find a wet spot and exist if it cannot.
- In mapping topography from supergrid to grid we should average the
  4 nearest neighbors instead of picking every other point.
  Picking every other point loses information, partcularly on land boundaries
  leading to losing narrow water channels to land (e.g., the Bosphorus).
  See the notebook refineSampleCoarsenTopography-BlackSeaDemo-p125.ipynb for details.
- The notebook zoomzoom_topo_drag.ipynb takes the source data for topography and drag elements
  and regrid them to the cubed-sphere model grid (C48 in this notebook).
  zoomzoom is based on a refine-sample-coarsen sequence of operations.
- Now we can pass the source datafile via arguments
- Fix guessing the origin shift of the target grid
- Fix the restriction to use every other source point
- Why not adding lon-lat to the topog.nc to facilitate inspection.
nikizadehgfdl and others added 4 commits July 14, 2020 17:56
- The least square fitted plane passes through the mean data point.
  This reduces the system of equations for plane slope and intercept
  from 3x3 to 2x2 which has expliicit fomulas for the solution.
- Things to keep in mind and improve:
  1. The height here is the mean of z for data points within a grid cell
     whereas in the RSC approach it was the mean of z for data points
     with the first point closest to the grid cell corner.
     These two sets are different, hence different mean, prove it!
  2. Can we implement the roughness calc in the RSC approach which avoids
     ij looping over grid cells?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant