This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Greetings! This sounds like something you could use xarray to do. I'm not really good at it, but it seems like this Stack Overflow question/answer does what you need? https://stackoverflow.com/questions/40179593/how-to-get-the-coordinates-of-the-maximum-in-xarray If that gives you any trouble, I'd recommend asking over on xarray's discussions on GitHub: https://github.com/pydata/xarray/discussions That way people with much more expertise in xarray are likely to see it. Hope this helps! Ryan > Good evening, > > I would like to ask if you could help me with a problem that I'm dealing > with Netcdf data in python. I've got monthly data of precipitation and I > was able to reproduce an Hovmoller diagram that represent precipitation > with the latitude on the y axis, the time (month) on the x axis. > > The problem is that now I want also to plot in this graph a specific line > that follows the maximum of precipitation during the year but I'm not able > to do it. This is to see clearly where is the latitude of the ITCZ during > the year. > Ticket Details =================== Ticket ID: VVN-229517 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.