Convert Multiband Raster to WPS binary (RESOLVED)

Questions related to the use of new landuse, or geographical static data, or to modifications to the existing data
Post Reply
robson_passos
Posts: 5
Joined: Wed Dec 16, 2020 2:17 am

Convert Multiband Raster to WPS binary (RESOLVED)

Post by robson_passos » Mon Apr 26, 2021 7:12 pm

Dear, I hope you are well.

I generated a raster (geotiff) file with 12 bands (each band is a month). This file has albedo data. I want to replace the default albedo data used by WPS with this new data that I generated. I researched a lot and found that GDAL has a limitation and it would not be possible to convert my Geotiff file to binary raster, as it has 12 bands. The write_geogrid.c program, as I understand it, would not be able to do this conversion either.

I would like to know what procedure should I do to get the conversion of my file.

Thank you in advance, and I apologize for not inserting any files or step by step of what I have done so far, as I have not achieved much progress.

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Convert Multiband Raster to WPS binary

Post by kwerner » Tue Apr 27, 2021 10:35 pm

Hi,
Take a look at the suggestions on this post to see if they're helpful for what you're trying to do.
NCAR/MMM

robson_passos
Posts: 5
Joined: Wed Dec 16, 2020 2:17 am

Re: Convert Multiband Raster to WPS binary

Post by robson_passos » Fri Apr 30, 2021 11:32 am

Thanks a lot for the help. The suggestion made in this topic recommended by you worked for me, I converted each band in the Geotiff file to binary raster individually and then I applied the cat command to join the binaries into a single file.

kwerner
Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Convert Multiband Raster to WPS binary

Post by kwerner » Mon May 03, 2021 10:38 pm

Great! I'm glad to hear that it worked. Thank you for updating the post.
NCAR/MMM

Post Reply

Return to “New/Modified Static Data”