Hello, WRF team
We are doing WRF simulations for several Canadian Cities like Ottawa, Montreal
We are trying to update the urban land use land cover by extracting the urban pixels from a tif file for the input of WRF.
I have noticed that in the WRF manual, it has mentioned to use the GDAL tool to translate the tiff file to binary files using the command:
> gdal_translate -of ENVI foo.tif data.bil
However, the tif file we have is for the whole Canada, which is quite big (160001 rows*190001 cols).
The coordinate projections in the tif file is:
+proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs
While I know the projection in the binary files should be regular_ll, which, according to http://www.met.wur.nl/Summerinthecity/posts/2014/03/wrfgisinput/
, should be postgis SRID 4326.
My question is how can I convert this tif file for whole Canada to the required binary format for the input of WRF?
[*]How should I make the projections in tif file consistent with the regular_ll projection or gdal can transform it automatically?
[*]Should I crop the tiff file to make sure the number of rows and cols limited in 5 digits?
As is mentioned in the manual:
[*]Another question is that how can I open and view the existing binary files in WRF so that I can understand the necessary information required in the orginal tiff file?
Thanks,
Chang
We are doing WRF simulations for several Canadian Cities like Ottawa, Montreal
We are trying to update the urban land use land cover by extracting the urban pixels from a tif file for the input of WRF.
I have noticed that in the WRF manual, it has mentioned to use the GDAL tool to translate the tiff file to binary files using the command:
> gdal_translate -of ENVI foo.tif data.bil
However, the tif file we have is for the whole Canada, which is quite big (160001 rows*190001 cols).
The coordinate projections in the tif file is:
+proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs
While I know the projection in the binary files should be regular_ll, which, according to http://www.met.wur.nl/Summerinthecity/posts/2014/03/wrfgisinput/
, should be postgis SRID 4326.
My question is how can I convert this tif file for whole Canada to the required binary format for the input of WRF?
[*]How should I make the projections in tif file consistent with the regular_ll projection or gdal can transform it automatically?
[*]Should I crop the tiff file to make sure the number of rows and cols limited in 5 digits?
As is mentioned in the manual:
[*]How should I change the values in the tiff file for different types of land use land cover types? should it be consistent with the default lulc values in WRF?After converting the GeoTIFF to a binary file, the resulting data.bil file must be renamed to 00001-ncols.00001-nrows, where ncols is the number of columns (in i5.5 format) and nrows is the number of rows (also in i5.5 format) in the image; these values should have been printed to the screen when the gdal_translate program was run.
[*]Another question is that how can I open and view the existing binary files in WRF so that I can understand the necessary information required in the orginal tiff file?
Thanks,
Chang