<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">
<div>You could use xarray to load the netcdf, and then write that data out to geotiff via rasterio. Full automation of this looks like it's still coming, but this ticket response shows how to do it. Might require assigning a crs to it manually, you'll have
 to play around with it.<br>
</div>
<div><a href="https://github.com/pydata/xarray/issues/2042#issuecomment-457584997">https://github.com/pydata/xarray/issues/2042#issuecomment-457584997</a></div>
<div><br>
</div>
<div>Cheers</div>
<div>Chris</div>
<div><br>
</div>
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Mar 5, 2019 at 12:25 PM Stephen Woodbridge <<a href="mailto:stephenwoodbridge37@gmail.com">stephenwoodbridge37@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi All,<br>
<br>
Can someone please give me a hint on how to convert a NOAA satellite <br>
swath NetCDF file to georeferenced Gtiff?<br>
I found these:<br>
   <a href="https://trac.osgeo.org/gdal/ticket/4513" rel="noreferrer" target="_blank">
https://trac.osgeo.org/gdal/ticket/4513</a><br>
   <a href="https://trac.osgeo.org/gdal/wiki/rfc4_geolocate" rel="noreferrer" target="_blank">
https://trac.osgeo.org/gdal/wiki/rfc4_geolocate</a><br>
which implies it cannot be done directly with gdal yet.<br>
Is there another way to this maybe using Python if gdal can't handle it?<br>
<br>
-Steve W<br>
<br>
$ gdalinfo --version<br>
GDAL 1.11.3, released 2015/09/16<br>
<br>
$ gdalinfo <br>
NETCDF:20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_<a href="http://G-ACSPO_V2.41-v02.0-fv01.0.nc" target="_blank">G-ACSPO_V2.41-v02.0-fv01.0.nc</a>:sea_surface_temperature<br>
Warning 1: dimension #2 (ni) is not a Longitude/X dimension.<br>
Warning 1: dimension #1 (nj) is not a Latitude/Y dimension.<br>
Driver: netCDF/Network Common Data Format<br>
Files: <br>
<a href="http://20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_G-ACSPO_V2.41-v02.0-fv01.0.nc" rel="noreferrer" target="_blank">20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_G-ACSPO_V2.41-v02.0-fv01.0.nc</a><br>
Size is 409, 7200<br>
Coordinate System is `'<br>
Metadata:<br>
   NC_GLOBAL#acknowledgment=Please acknowledge the use of these data <br>
with the following statement: These data were provided by Group for High <br>
Resolution Sea Surface Temperature (GHRSST) and the National Oceanic and <br>
Atmospheric Administration (NOAA).<br>
   NC_GLOBAL#cdm_data_type=swath<br>
   NC_GLOBAL#comment=none<br>
   NC_GLOBAL#Conventions=CF-1.6<br>
   NC_GLOBAL#creator_email=<a href="mailto:Alex.Ignatov@noaa.gov" target="_blank">Alex.Ignatov@noaa.gov</a><br>
   NC_GLOBAL#creator_name=Alex Ignatov<br>
   NC_GLOBAL#creator_url=<a href="http://www.star.nesdis.noaa.gov" rel="noreferrer" target="_blank">http://www.star.nesdis.noaa.gov</a><br>
   NC_GLOBAL#date_created=20190304T214051Z<br>
   NC_GLOBAL#easternmost_longitude=180<br>
   NC_GLOBAL#file_quality_level=3<br>
   NC_GLOBAL#gds_version_id=02.0<br>
   NC_GLOBAL#geospatial_bounds=POLYGON((   3.520  14.209,  176.005 <br>
20.284, -156.649  15.860,  -23.493   9.963,    3.520  14.209))<br>
   NC_GLOBAL#geospatial_first_scanline_first_fov_lat=20.283962<br>
   NC_GLOBAL#geospatial_first_scanline_first_fov_lon=176.00494<br>
   NC_GLOBAL#geospatial_first_scanline_last_fov_lat=15.859998<br>
   NC_GLOBAL#geospatial_first_scanline_last_fov_lon=-156.64908<br>
   NC_GLOBAL#geospatial_last_scanline_first_fov_lat=14.20918<br>
   NC_GLOBAL#geospatial_last_scanline_first_fov_lon=3.5202866<br>
   NC_GLOBAL#geospatial_last_scanline_last_fov_lat=9.9625263<br>
   NC_GLOBAL#geospatial_last_scanline_last_fov_lon=-23.492666<br>
   NC_GLOBAL#geospatial_lat_resolution=0.0098999999<br>
   NC_GLOBAL#geospatial_lat_units=degrees_north<br>
   NC_GLOBAL#geospatial_lon_resolution=0.0098999999<br>
   NC_GLOBAL#geospatial_lon_units=degrees_east<br>
   NC_GLOBAL#history=Created by Advanced Clear-Sky Processor for Oceans <br>
(ACSPO)-AVHRR at NOAA/NESDIS/OSPO.<br>
   NC_GLOBAL#id=AVHRR18_G-OSPO-L2P-v2.41<br>
   NC_GLOBAL#institution=NOAA/NESDIS/OSPO<br>
   NC_GLOBAL#keywords=Oceans > Ocean Temperature > Sea Surface Temperature<br>
   NC_GLOBAL#keywords_vocabulary=NASA Global Change Master Directory <br>
(GCMD) Science Keywords<br>
   NC_GLOBAL#license=GHRSST protocol describes data use as free and open<br>
   NC_GLOBAL#Metadata_Conventions=Unidata Dataset Discovery v1.0<br>
NC_GLOBAL#metadata_link=<a href="http://podaac.jpl.nasa.gov/ws/metadata/dataset/?format=iso&shortName=AVHRR18_G-OSPO-L2P-v2.41" rel="noreferrer" target="_blank">http://podaac.jpl.nasa.gov/ws/metadata/dataset/?format=iso&shortName=AVHRR18_G-OSPO-L2P-v2.41</a><br>
   NC_GLOBAL#naming_authority=org.ghrsst<br>
   NC_GLOBAL#netcdf_version_id=4.3.2 of Sep 24 2015 08:51:38 $<br>
   NC_GLOBAL#northernmost_latitude=20.283962<br>
   NC_GLOBAL#platform=NOAA-18<br>
   NC_GLOBAL#processing_level=L2P<br>
   NC_GLOBAL#product_version=2.41<br>
   NC_GLOBAL#project=Group for High Resolution Sea Surface Temperature<br>
   NC_GLOBAL#publisher_email=<a href="mailto:ghrsst-po@nceo.ac.uk" target="_blank">ghrsst-po@nceo.ac.uk</a><br>
   NC_GLOBAL#publisher_name=The GHRSST Project Office<br>
   NC_GLOBAL#publisher_url=<a href="http://www.ghrsst.org" rel="noreferrer" target="_blank">http://www.ghrsst.org</a><br>
   NC_GLOBAL#references=Data convention: GHRSST Data Specification (GDS) <br>
v2.0. Algorithms: ACSPO-AVHRR ATBD (NOAA/NESDIS/STAR)<br>
   NC_GLOBAL#sensor=AVHRR_GAC<br>
NC_GLOBAL#source=AVHRR_L1b,CMC0.2deg-CMC-L4-GLOB-v2.0,NOAA-NCEP-GFS<br>
   NC_GLOBAL#southernmost_latitude=-90<br>
   NC_GLOBAL#spatial_resolution=1.1 km at nadir<br>
   NC_GLOBAL#standard_name_vocabulary=CF Standard Name Table (v26, 08 <br>
November 2013)<br>
   NC_GLOBAL#start_time=20190304T200000Z<br>
   NC_GLOBAL#stop_time=20190304T205959Z<br>
   NC_GLOBAL#summary=Sea surface temperature retrievals produced by <br>
NOAA/NESDIS/OSPO office from AVHRR sensor<br>
   NC_GLOBAL#time_coverage_end=20190304T205959Z<br>
   NC_GLOBAL#time_coverage_start=20190304T200000Z<br>
   NC_GLOBAL#title=AVHRR L2P SST<br>
   NC_GLOBAL#uuid=2eaa373c-3ec6-11e9-ac15-f9642917379f<br>
   NC_GLOBAL#westernmost_longitude=-180<br>
   NETCDF_DIM_EXTRA={time}<br>
   NETCDF_DIM_time_DEF={1,4}<br>
   NETCDF_DIM_time_VALUES=1204574400<br>
   sea_surface_temperature#_FillValue=-32768<br>
   sea_surface_temperature#add_offset=273.14999<br>
   sea_surface_temperature#comment=SST obtained by regression with buoy <br>
measurements<br>
   sea_surface_temperature#coordinates=lon lat<br>
   sea_surface_temperature#long_name=sea surface skin temperature<br>
   sea_surface_temperature#scale_factor=0.0099999998<br>
   sea_surface_temperature#source=NOAA<br>
sea_surface_temperature#standard_name=sea_surface_skin_temperature<br>
   sea_surface_temperature#units=kelvin<br>
   sea_surface_temperature#valid_max=32767<br>
   sea_surface_temperature#valid_min=-32767<br>
   time#axis=T<br>
   time#calendar=Gregorian<br>
   time#comment=seconds since 1981-01-01 00:00:00<br>
   time#long_name=reference time of sst file<br>
   time#standard_name=time<br>
   time#units=seconds since 1981-01-01 00:00:00<br>
Geolocation:<br>
   LINE_OFFSET=0<br>
   LINE_STEP=1<br>
   PIXEL_OFFSET=0<br>
   PIXEL_STEP=1<br>
   SRS=GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS <br>
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]]<br>
   X_BAND=1<br>
X_DATASET=NETCDF:"<a href="http://20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_G-ACSPO_V2.41-v02.0-fv01.0.nc" rel="noreferrer" target="_blank">20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_G-ACSPO_V2.41-v02.0-fv01.0.nc</a>":lon<br>
   Y_BAND=1<br>
Y_DATASET=NETCDF:"<a href="http://20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_G-ACSPO_V2.41-v02.0-fv01.0.nc" rel="noreferrer" target="_blank">20190304200000-OSPO-L2P_GHRSST-SSTsubskin-AVHRR18_G-ACSPO_V2.41-v02.0-fv01.0.nc</a>":lat<br>
Corner Coordinates:<br>
Upper Left  (    0.0,    0.0)<br>
Lower Left  (    0.0, 7200.0)<br>
Upper Right (  409.0,    0.0)<br>
Lower Right (  409.0, 7200.0)<br>
Center      (  204.5, 3600.0)<br>
Band 1 Block=409x1024 Type=Int16, ColorInterp=Undefined<br>
   NoData Value=-32768<br>
   Offset: 273.149993896484,   Scale:0.00999999977648258<br>
   Metadata:<br>
     _FillValue=-32768<br>
     add_offset=273.14999<br>
     comment=SST obtained by regression with buoy measurements<br>
     coordinates=lon lat<br>
     long_name=sea surface skin temperature<br>
     NETCDF_DIM_time=1204574400<br>
     NETCDF_VARNAME=sea_surface_temperature<br>
     scale_factor=0.0099999998<br>
     source=NOAA<br>
     standard_name=sea_surface_skin_temperature<br>
     units=kelvin<br>
     valid_max=32767<br>
     valid_min=-32767<br>
<br>
<br>
---<br>
This email has been checked for viruses by Avast antivirus software.<br>
<a href="https://www.avast.com/antivirus" rel="noreferrer" target="_blank">https://www.avast.com/antivirus</a><br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote>
</div>
</div>
</div>
</div>
</body>
</html>