

Parser.add_argument('-p', '-proj', type = int, default = 3857, help = 'Output projection, must be EPSG number.') Parser.add_argument('-o', '-outdir', type = str, default = None, help = 'Output directory name.') Parser.add_argument('-i', '-indir', type = str, default = r'C:\Data\Freelancer\DavidHolcomb', help = 'Input directory name.') Parser = argparse.ArgumentParser(description = 'Script to create CONUS true color image from GOES 16 L1b data.') Here is my solution: # -*- coding: utf-8 -*-Ĭreated on Mon Mar 4 17:39:45 Guy Serbin
#Github reprojecting to mapublisher code#
I do not know python, so I have been attempting GDAL for the most part- however working python code added to my source code to achieve the expected result (or a working GDAL script) will earn the bounty.

If the python code were modified to do this all in one go, that would be great too. (Mine must be EPSG:3857 for use with Mapbox). nc file on AWS > Color Channel 3 (Infrared - serves as green)Īdditionaly, someone else online has accomplished this using a similar projection via the pyproj module at. nc file on AWS > Color Channel 2 (Red, Higher 0.5km resolution & larger file size) nc file on AWS > Color Channel 1 (Blue 1km resolution) The following links are samples of the data that needs to be converted :
#Github reprojecting to mapublisher professional#
I am not a professional with this, but should I even be using gdalwarp to do this? I only want to change the projection - nothing else, so the python app can still work with the data. However, there have been several other variations tried and nothing works. The code I have tried is : gdalwarp -t_srs EPSG:3857 test.nc test-projected.nc (It is slow as the files are super high resolution). The source code for that application is Located here so you may validate the data. After the 3 files are downloaded (from Amazon AWS), a python console app does the processing and dumps a. nc files (blue, red, and infrared) that when combined and processed create a color image. I am working on colorizing satellite data. This data must be reprojected before it goes to a console app - and this process is taking weeks to find a solution for - I figured it was simple. I am open to using GDAL or other methods to do this. I am trying to convert netCDF files to EPSG:3857 for use with Mapbox by using GDAL.
