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

How to correctly retrieve IMERG products #58

Open
1 task done
edsml-ds423 opened this issue Jun 13, 2024 · 3 comments
Open
1 task done

How to correctly retrieve IMERG products #58

edsml-ds423 opened this issue Jun 13, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@edsml-ds423
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi,

First of all, I want to just say great job on the gpm-api. I was previously getting IMERG V07B data via FTPS in Python but moving forward, I might migrate and use your API.

Before doing so I wanted to just sense check the downloaded data. I could be missing something but I did a test on the timeslice 27th September 20:00-20:30. To do so, I downoloaded the file via your api and I downloaded the file directly from https://arthurhouhttps.pps.eosdis.nasa.gov/gpmdata/2022/09/27/imerg/. I then checked the data.

I found a mismatch between the values and if I plot a cropped region containing Hurricane Ian (peak intensity at the chosen timeslice), you can visually see the difference.

The two files that I am comparing are:

  • gpm-api: 3B-HHR-E.MS.MRG.3IMERG.20220927-S200000-E202959.1200.V07B
gpm_api
  • direct download: 3B-HHR.MS.MRG.3IMERG.20220927-S200000-E202959.1200.V07B.HDF5
direct_download

Can I ask what server are you getting the version 7 files from?

Thanks,
Dan

Expected Behavior

I was expecting the API and directly downloaded data to match exactly.

Steps To Reproduce

  1. Download data using the GPM-API tutorial notebook using the following dates:
start_time = datetime.datetime.strptime("2022-09-27 00:00:00", "%Y-%m-%d %H:%M:%S")
end_time = datetime.datetime.strptime("2022-09-28 00:00:00", "%Y-%m-%d %H:%M:%S")
  1. Download the data directly from https://arthurhouhttps.pps.eosdis.nasa.gov/gpmdata/2022/09/27/imerg/
  2. Compare the results either using np.allclose() or plot.

Environment

- OS:
- python:

Anything else?

No response

@edsml-ds423 edsml-ds423 added the bug Something isn't working label Jun 13, 2024
@ghiggi
Copy link
Owner

ghiggi commented Jun 18, 2024

Hi @edsml-ds42. Sorry for the slight delay in answering, I just got back from holidays.

I think you are looking at different products:

  • 3B-HHR.MS.MRG.3IMERG.20220927-S200000-E202959.1200.V07B.HDF5 correspond to the IMERG Final Run (IMERG-FR)
  • 3B-HHR-E.MS.MRG.3IMERG.20220927-S200000-E202959.1200.V07B correspond to the IMERG Early Run (IMERG-ER)

To get the file you directly downloaded, you need to specify product="IMERG-FR", product_type = "RS".
To download IMERG Early Run, you need to specify product="IMERG-ER", product_type = "NRT".
Note that you can download data from either storage="PPS" or storage="GES_DISC".

Currently, I can already tell you that if you try downloading IMERG from GES_DISC you will likely download duplicates files (one for version V07A and V07B). This might cause problems in gpm.open_dataset. This problem occurs because they are updating IMERG products to version V07B these days .... then I guess they will delete version V07A and the problem will solve.

@ghiggi ghiggi added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jun 18, 2024
@ghiggi ghiggi changed the title [(Possible) BUG] - Discrepancy between gpm-api and direct download How to correctly retrieve IMERG products Jun 18, 2024
@edsml-ds423
Copy link
Author

Hi @ghiggi,

No worries at all!

Thanks for pointing that out, all makes sense. I want the Early Run and I am currently using:
product="IMERG-ER", product_type = "NRT", storage="PPS" so should be good.

@ghiggi
Copy link
Owner

ghiggi commented Jun 19, 2024

Glad I could help @edsml-ds423 ;) Have a nice day !

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

No branches or pull requests

2 participants