Replies: 4 comments 10 replies
-
Are you able to provide the input datasets? |
Beta Was this translation helpful? Give feedback.
-
@snowman2 |
Beta Was this translation helpful? Give feedback.
-
The datasets should be accessible here: |
Beta Was this translation helpful? Give feedback.
-
The WRF data has 2D longitude/latitude coordinates. rioxarray requires 1D x and y variables. Since the coordinates are geographic, you will need to re-project them to the projected coordinate system ('+proj=lcc +lat_1=33 +lat_2=45 +lat_0=40 +lon_0=-97 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs') and flatten it to 1D. See #209. |
Beta Was this translation helpful? Give feedback.
-
I am trying to run a regression with MOD13Q1 NDVI and Weather Research and Forecasting (WRF) climate model outputs.
For this I need to assure that the MODIS raster and WRF dataset are on the same projection and spatial resolution. MODIS geotiff is downloaded in its native projection and resolution using Earth Engine. Then converted the file to a netCDF using gdal package in python.
Next I am trying to use python's reproject_match to reproject MOD13Q1 to WRF's projection, which is explained here: https://spatialreference.org/ref/sr-org/wrf-lambert-conformal-conic/
Following is the code, the current outputs and the desired output.
The code is:
the above code produces the following plot:
And I actually need it to look like this to be able to do a regression at each x,y
removing the string quotes from "crs" here:
wrf.T2.rio.write_crs("crs", inplace=True)
generates this plot:Beta Was this translation helpful? Give feedback.
All reactions