Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oversampling module results to satellite's pixels #1

Closed
zxdawn opened this issue Mar 20, 2020 · 8 comments
Closed

Oversampling module results to satellite's pixels #1

zxdawn opened this issue Mar 20, 2020 · 8 comments

Comments

@zxdawn
Copy link

zxdawn commented Mar 20, 2020

Hi Kang @Kang-Sun-CfA ,

Your repository is very useful for resampling data.

Now, I'm trying to resample 3D model profiles to satellite pixels like TROPOMI, or reversely.
Does your method also work for this situation?

It seems you're updating the popy.py recently, is that the main script of oversampling now?

Thanks,
Xin

@Kang-Sun-CfA
Copy link
Owner

Kang-Sun-CfA commented Mar 20, 2020 via email

@zxdawn
Copy link
Author

zxdawn commented Mar 20, 2020

@Kang-Sun-CfA
Thanks, Kang!

I will take a look at that function later.
Hope I can make some contributions ;)

Regards,
Xin

@zxdawn
Copy link
Author

zxdawn commented Mar 21, 2020

@Kang-Sun-CfA
Hi Kang,

I read the pop.py today and have one question about the sounding_ps.
You use the surface pressure from reanalysis data to recalculate the pressures at each model level.

If we set different model levels, the Ap and Bp need to be changed in the F_interp_gcrs function, right?
So, why not using RegularGridInterpolator (the method of calculating the gc_gas_doy) to get pressures at the model levels over pixels?

Could tell me the advantage of using surface pressure from reanalysis data, instead of the pressure in the model?

Thanks,
Xin

@Kang-Sun-CfA
Copy link
Owner

Kang-Sun-CfA commented Mar 21, 2020 via email

@zxdawn
Copy link
Author

zxdawn commented Mar 22, 2020

@Kang-Sun-CfA
Hi Kang,

Thank you for your explanation.
WRF-Chem is similar to GEOS-Chem. It supports the terrain following (TF) vertical coordinate and hybrid vertical coordinate (HVC). I've finished the interpolation draft for WRF-Chem using the pressure variable in the output file.

As the GEOS-Chem resolution is lower than that of OMI/TROPOMI data, it's OK to use the simple interpolation.
For the high resolution (<= 1km) model like WRF-Chem, is it better to use a weight function for resampling the simulation to pixels?

BTW, I checked the resampling method in the BEHR product. They use the tessellation approach as mentioned in your paper but without weight.

Since my purpose is replacing the a priori profiles in each pixel like that in the BEHR, is it necessary to use the physical resampling (which doesn't support resampling to pixels)? or just calculate the average of grids in pixels with weight based on overlapped area?
,
Xin

@zxdawn
Copy link
Author

zxdawn commented Mar 22, 2020

xarray just added the weighted function 3 days ago!
It may be useful to combine our own weights with xarray function.

BTW, I also used the interp function of xarray in interp_profile, like this:

sounding_profile = wc_gas_t.interp(west_east=x, south_north=y).transpose()
sounding_pEdge = wc_p_t.interp(west_east=x, south_north=y).transpose()

@Kang-Sun-CfA
Copy link
Owner

Kang-Sun-CfA commented Mar 23, 2020 via email

@zxdawn
Copy link
Author

zxdawn commented Mar 30, 2020

@Kang-Sun-CfA
Hi Kang,

Thanks for your suggestion.

The resolution of my model is 1 km. I've tried the area_weighted in xESMF.
It works well:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants