Project

General

Profile

WRF file in QGIS

Added by Beatrice Sorrentino 3 months ago

Good evening to everyone,

I am trying to load .nc file in QGIS that I've don in a simulation in WRF-Chem.
I'm trying to add it as Raster layer, which loads the .nc file but is not capable of reading the coordinates, so it loads it in a random place.

I'm tryng with the code found here in another similar question:

cdo griddes -setgridtype,lonlat -selgrid,1 infile.nc > mygrid
cdo setgrid,mygrid infile.nc outfile.nc

but does not work, here the error message:

cdo(1) setgridtype (Warning): Conversion of curvilinear grid to regular grid failed!

cdo(1) setgridtype (Abort): Unsupported grid type!

Anyone knows how to solve it?

Here the output of cdo sinfo:

File format : NetCDF4
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter ID
1 : unknown unknown v instant 1 1 20300 1 F32 : -1
2 : unknown unknown v instant 1 2 20300 1 F32 : -2
3 : unknown unknown v instant 1 2 20300 1 F32 : -3
4 : unknown unknown v instant 1 1 20300 1 F32 : -4
5 : unknown unknown v instant 1 1 20300 1 F32 : -5
6 : unknown unknown v instant 1 1 20300 1 F32 : -6
7 : unknown unknown v instant 1 1 20300 1 F32 : -7
8 : unknown unknown v instant 1 3 20300 1 F32 : -8
9 : unknown unknown v instant 1 2 20300 1 F32 : -9
10 : unknown unknown v instant 1 2 20300 1 F32 : -10
Grid coordinates :
1 : curvilinear : points=20300 (145x140)
XLONG : 10.37302 to 12.18933 degree_east
XLAT : 43.26046 to 44.51578 degree_north
Vertical coordinates :
1 : surface : levels=1
2 : generic : levels=1
3 : generic : levels=1
Time coordinate :
XTIME : 8833 steps
RefTime = 2018-12-29 00:00:00 Units = minutes Calendar = standard
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2018-12-29 00:00:00 2018-12-29 01:00:00 2018-12-29 02:00:00 2018-12-29 03:00:00
2018-12-29 04:00:00 2018-12-29 05:00:00 2018-12-29 06:00:00 2018-12-29 07:00:00
2018-12-29 08:00:00 2018-12-29 09:00:00 2018-12-29 10:00:00 2018-12-29 11:00:00
2018-12-29 12:00:00 2018-12-29 13:00:00 2018-12-29 14:00:00 2018-12-29 15:00:00
2018-12-29 16:00:00 2018-12-29 17:00:00 2018-12-29 18:00:00 2018-12-29 19:00:00
2018-12-29 20:00:00 2018-12-29 21:00:00 2018-12-29 22:00:00 2018-12-29 23:00:00
2018-12-30 00:00:00 2018-12-30 01:00:00 2018-12-30 02:00:00 2018-12-30 03:00:00
2018-12-30 04:00:00 2018-12-30 05:00:00 2018-12-30 06:00:00 2018-12-30 07:00:00
2018-12-30 08:00:00 2018-12-30 09:00:00 2018-12-30 10:00:00 2018-12-30 11:00:00
2018-12-30 12:00:00 2018-12-30 13:00:00 2018-12-30 14:00:00 2018-12-30 15:00:00
2018-12-30 16:00:00 2018-12-30 17:00:00 2018-12-30 18:00:00 2018-12-30 19:00:00
2018-12-30 20:00:00 2018-12-30 21:00:00 2018-12-30 22:00:00 2018-12-30 23:00:00
2018-12-31 00:00:00 2018-12-31 01:00:00 2018-12-31 02:00:00 2018-12-31 03:00:00
2018-12-31 04:00:00 2018-12-31 05:00:00 2018-12-31 06:00:00 2018-12-31 07:00:00
2018-12-31 08:00:00 2018-12-31 09:00:00 2018-12-31 10:00:00 2018-12-31 11:00:00
................................................................................
................................................................................
...............................................................................
2019-12-29 16:00:00 2019-12-29 17:00:00 2019-12-29 18:00:00 2019-12-29 19:00:00
2019-12-29 20:00:00 2019-12-29 21:00:00 2019-12-29 22:00:00 2019-12-29 23:00:00
2019-12-30 00:00:00 2019-12-30 01:00:00 2019-12-30 02:00:00 2019-12-30 03:00:00
2019-12-30 04:00:00 2019-12-30 05:00:00 2019-12-30 06:00:00 2019-12-30 07:00:00
2019-12-30 08:00:00 2019-12-30 09:00:00 2019-12-30 10:00:00 2019-12-30 11:00:00
2019-12-30 12:00:00 2019-12-30 13:00:00 2019-12-30 14:00:00 2019-12-30 15:00:00
2019-12-30 16:00:00 2019-12-30 17:00:00 2019-12-30 18:00:00 2019-12-30 19:00:00
2019-12-30 20:00:00 2019-12-30 21:00:00 2019-12-30 22:00:00 2019-12-30 23:00:00
2019-12-31 00:00:00 2019-12-31 01:00:00 2019-12-31 02:00:00 2019-12-31 03:00:00
2019-12-31 04:00:00 2019-12-31 05:00:00 2019-12-31 06:00:00 2019-12-31 07:00:00
2019-12-31 08:00:00 2019-12-31 09:00:00 2019-12-31 10:00:00 2019-12-31 11:00:00
2019-12-31 12:00:00 2019-12-31 13:00:00 2019-12-31 14:00:00 2019-12-31 15:00:00
2019-12-31 16:00:00 2019-12-31 17:00:00 2019-12-31 18:00:00 2019-12-31 19:00:00
2019-12-31 20:00:00 2019-12-31 21:00:00 2019-12-31 22:00:00 2019-12-31 23:00:00
2020-01-01 00:00:00

Thank you,
Beatrice


Replies (2)

RE: WRF file in QGIS - Added by Estanislao Gavilan 3 months ago

Hi Beatrice,

Have you tried to use remapbil? I read several post related with QGIS. It seems remapbil or other remap command gives a better solution.

RE: WRF file in QGIS - Added by Karin Meier-Fleischer 3 months ago

Hi Beatrice,

can you upload one time step of your infile.nc and the grid you want to interpolate to?

    (1-2/2)