Git Product home page Git Product logo

Comments (9)

miniufo avatar miniufo commented on May 24, 2024

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.

PovedaGerman avatar PovedaGerman commented on May 24, 2024

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.

miniufo avatar miniufo commented on May 24, 2024

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.

PovedaGerman avatar PovedaGerman commented on May 24, 2024

from xinvert.

PovedaGerman avatar PovedaGerman commented on May 24, 2024

from xinvert.

miniufo avatar miniufo commented on May 24, 2024

Sorry, I cannot see your figure. Could you post it as a link?

from xinvert.

PovedaGerman avatar PovedaGerman commented on May 24, 2024

This is the figure:
Amazon Heating

from xinvert.

miniufo avatar miniufo commented on May 24, 2024

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.

PovedaGerman avatar PovedaGerman commented on May 24, 2024

Many thanks for your insights.

from xinvert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.