Hi all,
I hope this is the right channel to ask this question.
If it is not, my apologies, just let me know where can I ask this question in a more appropriate location.
I'm Bruno Picard, I'm familiar with satpy, pyresample and the pytroll group.
I'm currently involved in the SWOT mission commissioning phase, using some precipitation product to assess the impact of rain
Note that this may be a well-known question but I was not able to find any solution.
but it may be related to
also described here
Objective
The goal is to map a H60 gridded product distributed by Eumetsat Hydro-SAF
H60 precipitation gridded products are described as
Instantaneous precipitation maps generated combining geostationary (GEO) IR images from operational geostationary satellites 'calibrated' by precipitation measurements from MW images on Low Earth Orbit (LEO) satellites, processed soon after each acquisition of a new image from GEO.
They are based on Seviri 0deg
Issue
Using pyresample to compute x,y coordinates and longitude/latitudes coordinates results in a fliplr / flipud image
Description
the product does not include the coordinates. lon/lat are available in a separate file.
I try to compute lon/lat using pyresample but failed to have the correct sorting or columns/lines
# read the dataset
ds = xr.open_dataset(hdle)
# load the area def
area_def = get_area_def('seviri_0deg')
# get native coordinate
x, y = area_def.get_proj_coords()
# load crs
source_crs = CRS.from_proj4(ds.attrs['gdal_projection'])
# = '+proj=geos +a=6378169.000000 +b=6356583.800000 +lon_0= 0.000000 +h=35785831.000000 +sweep=y'
# compute lon lat from x, y using Proj
geos = Proj(source_crs, preserve_units=False)
lat, lon = geos(x, y,inverse=True)
but the lat/lon grid are just messed up.
I would need to flipud/fliplr the data grid (precipitation) to have correct map.
I would appreciate any help on this,
thank you
Bruno