I am very new to GIS.
I am trying to translate a single band of a NetCDF file to a GeoTIFF file, and then load it up into QGIS and have it overlap with a shapefile of the US. However, when I load up the shapefile and the GeoTIFF, I am not getting any overlap.
The top left is the shapefile, the bottom right is my GeoTIFF.
Here's the command I'm using to do the translation: gdal_translate -a_srs EPSG:4326 NETCDF:evap.mon.mean.nc:evap -b 1 -of GTiff test2.geotiff
I have tried a wide variety of a_srs values but none seem to give the results I want.
Does anyone know what is going wrong here?
Result of gdal info:
Band 485 Block=349x1 Type=Float32, ColorInterp=Undefined
NoData Value=9.96920996838686905e+36
Unit Type: kg/m^2
Metadata:
actual_range={-0.53373265,2.7928879}
coordinates=lat lon
dataset=NARR Monthly Means
GRIB_id=57
GRIB_name=EVP
grid_mapping=Lambert_Conformal
level_desc=Surface
long_name=Monthly accumulated total evaporation at Surface
missing_value=-9.96921e+36
NETCDF_DIM_time=1922592
NETCDF_VARNAME=evap
parent_stat=Mean
standard_name=water_evaporation_amount
statistic=Mean
units=kg/m^2
valid_range={-4,20}
var_desc=Evaporation amount
_FillValue=9.96921e+36
Also, when I open the GeoTIFF with RasterIO, it gives this warning:
NotGeoreferencedWarning: Dataset has no geotransform set. The identity matrix may be returned.
s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
Could that be the issue?
EDIT 02/18/2021:
Found this question and I saw it was unanswered. If anyone else is facing this issue, I can help. I was using the gdal_translate command which DOES NOT perform geospatial reprojection. I solved this by instead reprojecting using the gdalwarp command, and then using gdal_translate to convert the NetCDF to a GeoTIFF.
gdalinfo NETCDF:evap.mon.mean.nc:evap
show the native SRS of your NetCDF data? What it is?