So, first you need to match/convert your Bhuvan's AWiFS LULC data classes into 24 classes of USGS classification. You can find the classes in the WRF user guide in the Chapter 3.
After the translation, you will have your data in the correct classification to insert in WRF. Now you need to convert the TIFF file (I am expecting you LULC data is a raster file) into binary format (BIL) required by WRF.
I usually use the convert_geotiff function from openWRF, which you ca find at https://github.com/openwfm/convert_geotiff
This tool will convert the tiff into binary and also will create the index file. This index file holds the information of your data, like resolution, description, extension, etc. (take a look in the other LULC in the geog folder).
After the conversion in binary format, move this files to a folder inside the geog data location (take care to not override the WRF default data)
The next step is to edit the GEOGRID.TBL file inside the WPS folder.
The GEOGRID.TBL holds the information of all land surface data to WPS/WRF, so you just need to edit the Land use section of the file, add one "name" to your data, set the interpolation method, and set the path to your data/folder.
This will helps WPS to find your data and how to proceed with it.
Next step is to edit your namelist.wps.
When you look at it, you will see the geog path is set to default.
for example, a wrf configuration of two domains, you will see something like this:
So, WPS will look first at the "name_you_set_in_TBL" data, and extract the LULC data to your domain. After extract your data, WPS will look at the default data to extract the other parameter to WRF
The chapter 3 of the user guide also helps you to set this variables, edit the GEOGRID.TBL, and namelis.wps.
Thanks for the interest on WRF compatible AWiFS derived LU/LC data, which are freely downloadable from NRSC website. This data contains 16 tiles of Indian region prepared using Indian satellite based AWiFS LU/LC (original resolution 56m) data of different years’ time frame covering Kharif, Rabi and Zaid crop seasons.
Please copy the downloaded 16 no of tiles from the attachment viz. [28801-30000.10801-12000, 28801-30000.12001-13200, …………....., 32401-33600.14401-15600] to original USGS "landuse_30s" (30 sec resolution) folder and overwrite with these 16 files(tiles), rest should be as it is. Before doing so, please keep a copy of original 767 numbers of USGS tiles for comparison.
You may go through the following reference
Gharai et.al., (2018); CURRENT SCIENCE, VOL. 115, NO. 12, 25 DECEMBER 2018, doi: 10.18520/cs/v115/i12/2301-2306
Why Bhuvan's AWiFS LULC data classes should be converted into 24 classes of USGS classification please? In fact, I wonder if WRF does not recognize land use categories?
I am trying to use STRM as topography in WRF. Should I do the same step for STRM too?
You need to convert the AWiFS LULC to USGS 24 classes (or Modis 20 or 21 classes) becase the WRF model only recognizes these LULC classes. If the AWiFS LULC classes are the same as USGS or MODIS from WRF, you just need to convert it into binary format and configure yout .TBL and namelist.wps, as I explained in the ealier post.
If the AWiFS LULC classes are not the same, you need to translate it into one of WRF's LULC classes.
Regarding the topography, you do not need to translate. You just need to make sure your topography tiff file is at lat lon projection, convert it into binary format, and configure the TBL and namelist.wps to WRF read it.
According to your advice I converted my land-use data( Esri-30m resolution) classes into MODIS classification. And then used "convert_geotiff function" to produce binary raster files. I also changed the following lines in GEOGRID.TBL.ARW :
landmask_water = 30m:17,21
interp_option = 30m:nearest_neighbor
rel_path = 30m:landuse30m
In WPS name list changed :
geog_data_res = ' 30m'
However after doing all these steps, and running geogrid.exe, I found out that land-use file produced by geogrid.exe has only one value (attached).
Can you check the geogrid.log file? This log tells you if the WPS found your data or not.
I noticed you used the name "30m" to point to your file. I would change to another name, since the "30m" is already used in WPS. I would use the "Esri-30m", for example.
The GEOGRID.TBL would be like this:
landmask_water = Esri-30m:17,21
interp_option = Esri-30m:nearest_neighbor
rel_path = Esri-30m:landuse_Esri-30m/ OBS: remember to add a "/" in the end of the path
In the namelist.wps, I would set the resolution as:
geog_data_res = 'Esri-30m+default'
This way the WPS will first look for Esri-30m, and them it will move to default input data.
About the "index" file generated by the "convert_geotiff function"
Take a look in the "index" file inside the folder of Esri-30m. Usually, the convert_geotiff assing the coordinates of known_y as the upper left cell, and the WPS gets the lower left as the first cell. Change your index, and set is as: