MODIS SIN Grid data(MOD16A2) visualization.
MODIS SIN Grid data(MOD16A2) visualization.
I am trying to extract MODIS ET SIN Grid data(MOD16A2) for some time period. I am able to extract the data rasters but trying to create one-dimensional longitude and latitude arrays from longitude-minimum/maximum and latitude-minimum/maximum. When I am trying to do this the plot is shifting to the left of the plot. The Python code is attached.
- Attachments
-
- EarthDataForum - Jupyter Notebook_compressed.pdf
- Python code
- (240.67 KiB) Downloaded 244 times
Filters:
-
- User Services
- Posts: 422
- Joined: Mon Sep 30, 2019 10:00 am America/New_York
- Has thanked: 31 times
- Been thanked: 8 times
- Contact:
Re: MODIS SIN Grid data(MOD16A2) visualization.
Hi @kmmrao We'll take a look at your code and get back to you. Thanks - Danielle
Subscribe to the LP DAAC listserv by sending a blank email to lpdaac-join@lists.nasa.gov.
Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.
Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.
Re: MODIS SIN Grid data(MOD16A2) visualization.
hdf and netcdf files are stored latitude maximum to minimum (left to right). I think the problem is line 19 in your code. Latitude values need to decrease, not increase, in numpy array.
Re: MODIS SIN Grid data(MOD16A2) visualization.
Ok, understood, but the map shifting to left in the high latitudes. How to fix it?
Re: MODIS SIN Grid data(MOD16A2) visualization.
lats= np.linspace(lat.min(),lat.max(),2400) this one is wrong. It should be
lats= np.linspace(lat.max(),lat.min(),2400)
lats= np.linspace(lat.max(),lat.min(),2400)
Re: MODIS SIN Grid data(MOD16A2) visualization.
Hi,
Thanks for your response,
Let me explain, if you are into Python, no matter what
lats= np.linspace(lat.max(),lat.min(),2400) (or)
lats= np.linspace(lat.max(),lat.min(),2400)
My point is simple and straight. When I change the coordinate system from
Sinusoidal to Mercator projection. Still, the map is bending towards the left with an increase in latitude from the equator.
Should I need to use any offset to lats= np.linspace(lat.max(),lat.min(),2400) ??
or to lons ?
Thanks for your response,
Let me explain, if you are into Python, no matter what
lats= np.linspace(lat.max(),lat.min(),2400) (or)
lats= np.linspace(lat.max(),lat.min(),2400)
My point is simple and straight. When I change the coordinate system from
Sinusoidal to Mercator projection. Still, the map is bending towards the left with an increase in latitude from the equator.
Should I need to use any offset to lats= np.linspace(lat.max(),lat.min(),2400) ??
or to lons ?
Re: MODIS SIN Grid data(MOD16A2) visualization.
1) You used (lon, lat) and (lons, lats) coordinates, both of them wgs84, and asked why this map is shifting. It is impossible to understand "simple and straight" point when we follow jupyter notebook you shared.
2) Of course, maps will shift if you are projecting them and there is no solution. How do you expect to get the exact map representation (visualization) after projecting it?
3) If you want to extract ET products for a specific ___location, just use the AρρEEARS software. Otherwise, you must handle and merge more than one "hdf" file.
2) Of course, maps will shift if you are projecting them and there is no solution. How do you expect to get the exact map representation (visualization) after projecting it?
3) If you want to extract ET products for a specific ___location, just use the AρρEEARS software. Otherwise, you must handle and merge more than one "hdf" file.
-
- Subject Matter Expert
- Posts: 71
- Joined: Tue Nov 12, 2019 4:02 pm America/New_York
- Been thanked: 3 times
Re: MODIS SIN Grid data(MOD16A2) visualization.
@kmmrao ,
Have you been able to explore NASA's AppEEARS (https://appeears.earthdatacloud.nasa.gov/) as @ogsahin mentioned? I think it would help. Another option outside of Python is to use the GDAL Warp (https://gdal.org/programs/gdalwarp.html) utility.
Have you been able to explore NASA's AppEEARS (https://appeears.earthdatacloud.nasa.gov/) as @ogsahin mentioned? I think it would help. Another option outside of Python is to use the GDAL Warp (https://gdal.org/programs/gdalwarp.html) utility.