wrf_alessandro
Member
Hi All,
I am trying to use the corine land cover in WPS, but after following the steps suggested in the user guide, the geo_em has a constant LU_INDEX and does not display any LANDUSEF. These are the steps I did to process the data:
1) Downloaded CLC from this link:
https://land.copernicus.eu/pan-european/corine-land-cover/clc2018
2) Converted the CLC to a regular projection with a resolution of 30s:
gdalwarp U2018_CLC2018_V2020_20u1.tif U2018_CLC2018_V2020_20u1_WGS84_30s.tif -s_srs EPSG:3035 -t_srs EPSG:4326 -dstnodata "255" -tr 0.008333333 0.008333333
3) I have reclassified the 44 CLC categories to 21 IGBP_MODIS categories
python Reclassify_CLC_to_IGBP_MODIS.py U2018_CLC2018_V2020_20u1_WGS84_30s.tif U2018_CLC2018_V2020_20u1_WGS84_MODIS_30s.tif
4) Converted the Geotiff to binary for WPS:
gdal_translate -of ENVI U2018_CLC2018_V2020_20u1_WGS84_MODIS_30s.tif 00001-15529.00001-5805
5) Then, I have created the index file as follow:
projection = regular_ll
known_x = 1
known_y = 5805
known_lat = 72.663269
known_lon = -56.505142
dx=0.00833333
dy=0.00833333
type = categorical
description = "CORINE LandCover"
wordsize = 1
tile_x = 15529
tile_y = 5805
tile_z = 1
category_min = 1
category_max = 21
row_order = top_bottom
units="category"
description="Noah-modified 21-category IGBP-MODIS landuse"
mminlu="MODIFIED_IGBP_MODIS_NOAH"
iswater=17
islake=21
isice=15
isurban=13
6) Finally, I modified namelist.wps and GEOGRID.TBL as follows:
geog_data_res = 'corine_30s+default',
landmask_water = corine_30s:17,21 # CORINE landcover Calculate a landmask from this field
interp_option = corine_30s:nearest_neighbor
rel_path = corine_30s:corine_30s/
My domain completely falls within the CLC bounds, so I suspect and issue with the descriptor index file; however, I tried to modify it in several ways changing the row_order and missing_value but none of the modifications worked.
I wonder if someone could help me to understand what is going wrong in my procedure; I attach the data and scripts I used in the whole process.
Any suggestion is welcome,
Alessandro
I am trying to use the corine land cover in WPS, but after following the steps suggested in the user guide, the geo_em has a constant LU_INDEX and does not display any LANDUSEF. These are the steps I did to process the data:
1) Downloaded CLC from this link:
https://land.copernicus.eu/pan-european/corine-land-cover/clc2018
2) Converted the CLC to a regular projection with a resolution of 30s:
gdalwarp U2018_CLC2018_V2020_20u1.tif U2018_CLC2018_V2020_20u1_WGS84_30s.tif -s_srs EPSG:3035 -t_srs EPSG:4326 -dstnodata "255" -tr 0.008333333 0.008333333
3) I have reclassified the 44 CLC categories to 21 IGBP_MODIS categories
python Reclassify_CLC_to_IGBP_MODIS.py U2018_CLC2018_V2020_20u1_WGS84_30s.tif U2018_CLC2018_V2020_20u1_WGS84_MODIS_30s.tif
4) Converted the Geotiff to binary for WPS:
gdal_translate -of ENVI U2018_CLC2018_V2020_20u1_WGS84_MODIS_30s.tif 00001-15529.00001-5805
5) Then, I have created the index file as follow:
projection = regular_ll
known_x = 1
known_y = 5805
known_lat = 72.663269
known_lon = -56.505142
dx=0.00833333
dy=0.00833333
type = categorical
description = "CORINE LandCover"
wordsize = 1
tile_x = 15529
tile_y = 5805
tile_z = 1
category_min = 1
category_max = 21
row_order = top_bottom
units="category"
description="Noah-modified 21-category IGBP-MODIS landuse"
mminlu="MODIFIED_IGBP_MODIS_NOAH"
iswater=17
islake=21
isice=15
isurban=13
6) Finally, I modified namelist.wps and GEOGRID.TBL as follows:
geog_data_res = 'corine_30s+default',
landmask_water = corine_30s:17,21 # CORINE landcover Calculate a landmask from this field
interp_option = corine_30s:nearest_neighbor
rel_path = corine_30s:corine_30s/
My domain completely falls within the CLC bounds, so I suspect and issue with the descriptor index file; however, I tried to modify it in several ways changing the row_order and missing_value but none of the modifications worked.
I wonder if someone could help me to understand what is going wrong in my procedure; I attach the data and scripts I used in the whole process.
Any suggestion is welcome,
Alessandro