esmg / pycnal_regridding Goto Github PK
View Code? Open in Web Editor NEWRegridding library for PyCNAL
License: GNU Lesser General Public License v3.0
Regridding library for PyCNAL
License: GNU Lesser General Public License v3.0
Hey, I had to run this on the resultant OBC files:
ncatted -O -a calendar,time,m,c,"gregorian" $file
It would be nice if this happened during file creation.
This is currently discussed in some emails but sedimented into mailboxes.
Do we want to have pycnal computed those terms ?
I think we should be able to compute them outside of this regridding tool.
PyCNAL is able to process as many scalars variables (T,S,ssh) and couple of vector components (u,v), (uice,vice),... If we compute (dv/dx) and (du/dy) fields before passing them to PYCNAL, they
can be treated as either scalar or vector variables.
I think that since u,v and x,y co-rotate, there is no need to rotate these fields. If I am wrong, the option to do it is to pass those field as a new vector variable and use the options :
rotate_velocities=True, rotation_angle='you read it from the ocean_hgrid.nc', Arakawa='B'
NB: since the resulting gradient is on the q-point, both fields are colocated so we want to make
sure that PyCNAL does not re-colocate them (coded for Arakawa='C')
please try different options and let me know what works.
The current PyCNAL uses the interface height of each grid cell to compute the layer thickness. However, the examples only use the cell center depth instead of cell interface height as input for the PyCNAL to computer layer thickness. This may cause issues to layer thickness in boundary files.
In the PyCNAL, depth is computed using interface height
lib_ioncdf.py, line 348: dz[:-1, :, :] = vc[1:, :, :] - vc[:-1, :, :]
In the PyCNAL examples, only cell center depth is provided:
Creating_Initial_and_Boundary_conditions_from_SODA3.py, line 59:
salt_domain.interpolate_from(sodaic,'salt',frame=0,depthname='st_ocean',coord_names=['xt_ocean','yt_ocean'],
@raphaeldussin We will obsolete "brushcutter" mode when this code can make boundary conditions that are no longer on the supergrid. We want information on the velocity points along the boundary, not at the q points (until we need q at the q points).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.