Comments (9)
Hi thanks for your interests in this. So you don't use xarray
? You can install it and load your netcdf file by dset = xarray.open_dataset('data.nc')
and then quickly peek the dataset by dset.u.plot()
. Also, the results returned by xinvert
are also xarray
object and can be plotted simply as u_gill.plot()
That is not the key point. Could you please show that if your heating source is a 2D global field? If yes, the returned data will be a 2D global field. Note that do not fill the region where heat source = 0 with nan, because nan is used as land-sea mask by default.
from xinvert.
Hi, many thanks for your answer. It seems that the problem has to do with the definition of longitudes and latitudes of the heating source and the region for which h1, v1 and u1 are estimated. Can you please clarify what are your:
lat, lon = xr.broadcast(ds.lat, ds.lon) for the heating source, and
lat, lon = xr.broadcast(u1.lat, u1.lon) for the impacted region
Many thanks in advance.
from xinvert.
Hi, I guess you read my notebook about Gill model at here. Now I've change a little of the notebook so that the heat source Q is a global field, and so are the h1, u1 and v1. You can follow this example because this idealized test does not need any data files.
from xinvert.
from xinvert.
from xinvert.
Sorry, I cannot see your figure. Could you post it as a link?
from xinvert.
from xinvert.
Well, I see... The original Gill model does not take into account topographic effects. But I guess one can modify it to parameterize their effect into the model. As xinvert
support topographic (see oceanic case), maybe you can prescribe the Andes as a patch of NaN and set kwarg undef=np.nan
. Then you can get the flow stopped at Andes.
Also, the effects of the cooling over the cold tongue is not clear. You can invert the flow separately for the cooling source only. Generally, the flow pattern is NOT totally unrealistic to me. It still fits Gill's classical pattern in the tropics.
from xinvert.
Many thanks for your insights.
from xinvert.
Related Issues (20)
- submit a JOSS paper HOT 1
- add a example of Stommel-Aron model for deep ocean circulation HOT 1
- add a example of Bretherton-Haidvogel model for 2D turbulence over topography HOT 1
- add a 2D reference state example HOT 1
- add a Fofonoff model HOT 1
- JOSS review: Installation HOT 5
- JOSS review: Automated tests HOT 12
- JOSS review: community guidelines HOT 3
- JOSS review: state of the field HOT 3
- Add installation instructions to the documentation HOT 15
- Software paper: Citation of python packages HOT 3
- Dependence on xcontour package HOT 3
- Re-running notebooks HOT 3
- add a vertical mode decomposition case HOT 1
- invert_omega: Need to pass N2 and f0 as dataArrays HOT 9
- 'dz' counts a lot HOT 9
- Lat-Lon Finite Differences HOT 4
- Broken link in readme HOT 2
- Pressure perturbation equation HOT 1
- a constants module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xinvert.