question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regrid summed variables

See original GitHub issue

I want to regrid total lightning flashcounts (TL) generated by WRF-Chem from 12 km to 1 degree. TL is the sum of flashcounts in each 12 km grid.

I’ve tried xesmf with bilinear or conservative method, but both results fails. You can check notebook1 and notebook2.

Do you have any advice of regridding variables like TL?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zxdawncommented, Nov 26, 2018

Here’s the sample extracted from original wrfout* file.

0reactions
zxdawncommented, Jan 30, 2019

@JiaweiZhuang How about the unit of xe.util.cell_area? I can’t find it in the definition of get_area() and area().

I see … It’s 4*pi*(1^2) https://github.com/JiaweiZhuang/xESMF/blob/3e4610899c2006451f31db723e40688a0877a37b/xesmf/util.py#L104-L107

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xarray - how to regrid or sum up area variables for different ...
How do I sum two variables together from different datasets in xarray while ensuring only data with the same coordinates and time get...
Read more >
Regridding using a sum method (for area variables) - CDO
Hi all, I have a doubt regarding regridding:Usually, when I have a dataset with Temperature or Precipitation, I use remapycon or remapbil ,...
Read more >
NCO netCDF Operators / Discussion / Help: Regrid netcdf files
NCO supports bilinear interpolation. See manual. Summing every two timesteps can be done with is done with the duration feature of ncra: ncra...
Read more >
7. Re-Formatting of Gridded Fields - MET - Read the Docs
This section contains a description of running the Regrid-Data-Plane tool. This tool may be run to read data from any gridded file MET...
Read more >
How RSIG Regrids Data | US EPA
RSIG can optionally quickly regrid all data onto a structured, regular grid (in ... I.e., the values are summed and counted and, at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found