Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gis GDAL扭曲太多点无法转换。它与类似的图像和源代码一起工作_Gis_Gdal_Netcdf_Geo_Geotiff - Fatal编程技术网

Gis GDAL扭曲太多点无法转换。它与类似的图像和源代码一起工作

Gis GDAL扭曲太多点无法转换。它与类似的图像和源代码一起工作,gis,gdal,netcdf,geo,geotiff,Gis,Gdal,Netcdf,Geo,Geotiff,我正在尝试将netCDF文件从完整磁盘转换为geotiff,但在最后一步中出错 显然,从NC works和fulldisk.tif生成tif的过程是生成的,但不是地理参考的,我需要它覆盖在传单地图中 gdal_translate -ot float32 -unscale -CO COMPRESS=deflate NETCDF:"fulldisk.nc":CMI fulldisk.tif Input file size is 2500, 1500 0...10...20...3

我正在尝试将netCDF文件从完整磁盘转换为geotiff,但在最后一步中出错

显然,从NC works和fulldisk.tif生成tif的过程是生成的,但不是地理参考的,我需要它覆盖在传单地图中

gdal_translate -ot float32 -unscale -CO COMPRESS=deflate NETCDF:"fulldisk.nc":CMI fulldisk.tif
Input file size is 2500, 1500
0...10...20...30...40...50...60...70...80...90...100 - done.
tiff可在此处下载:

但在尝试为Lat重新投影时,Lon使用以下过程:

gdalwarp -t_srs EPSG:4326 -dstnodata -999.0 fulldisk.tif /var/www/nube1.on.gt/fulldisk_geo.tif
它说:

Processing fulldisk.tif [1/1] : 0Using internal nodata values (e.g. -1) for image fulldisk_geo.tif.
ERROR 1: Too many points (529 out of 529) failed to transform, unable to compute output bounds.
Warning 1: Unable to compute source region for output window 0,0,2500,1500, skipping.
...10...20...30...40...50...60...70...80...90...100 - done.
NC文件是来自AWS的文件,gdalinfo输出如下:

Driver: netCDF/Network Common Data Format
Files: fulldisk.nc
Size is 512, 512
Coordinate System is `'
Metadata:
  NC_GLOBAL#cdm_data_type=Image
  NC_GLOBAL#Conventions=CF-1.7
  NC_GLOBAL#dataset_name=OR_ABI-L2-CMIPF-M6C13_G16_s20211141750164_e20211141759483_c20211141759577.nc
  NC_GLOBAL#date_created=2021-04-24T17:59:57.7Z
  NC_GLOBAL#id=71a29d9f-02b2-44b5-81b2-73a3fec6a62e
  NC_GLOBAL#institution=DOC/NOAA/NESDIS > U.S. Department of Commerce, National Oceanic and Atmospheric Administration, National Environmental Satellite, Data, and Information Services
  NC_GLOBAL#instrument_ID=FM1
  NC_GLOBAL#instrument_type=GOES R Series Advanced Baseline Imager
  NC_GLOBAL#iso_series_metadata_id=8c9e8150-3692-11e3-aa6e-0800200c9a66
  NC_GLOBAL#keywords=SPECTRAL/ENGINEERING > INFRARED WAVELENGTHS > BRIGHTNESS TEMPERATURE
  NC_GLOBAL#keywords_vocabulary=NASA Global Change Master Directory (GCMD) Earth Science Keywords, Version 7.0.0.0.0
  NC_GLOBAL#license=Unclassified data.  Access is restricted to approved users only.
  NC_GLOBAL#Metadata_Conventions=Unidata Dataset Discovery v1.0
  NC_GLOBAL#naming_authority=gov.nesdis.noaa
  NC_GLOBAL#orbital_slot=GOES-East
  NC_GLOBAL#platform_ID=G16
  NC_GLOBAL#processing_level=National Aeronautics and Space Administration (NASA) L2
  NC_GLOBAL#production_data_source=Realtime
  NC_GLOBAL#production_environment=OE
  NC_GLOBAL#production_site=NSOF
  NC_GLOBAL#project=GOES
  NC_GLOBAL#scene_id=Full Disk
  NC_GLOBAL#spatial_resolution=2km at nadir
  NC_GLOBAL#standard_name_vocabulary=CF Standard Name Table (v35, 20 July 2016)
  NC_GLOBAL#summary=Single emissive band Cloud and Moisture Imagery Products are digital maps of clouds, moisture and atmospheric windows at IR bands.
  NC_GLOBAL#timeline_id=ABI Mode 6
  NC_GLOBAL#time_coverage_end=2021-04-24T17:59:48.3Z
  NC_GLOBAL#time_coverage_start=2021-04-24T17:50:16.4Z
  NC_GLOBAL#title=ABI L2 Cloud and Moisture Imagery
Subdatasets:
  SUBDATASET_1_NAME=NETCDF:"fulldisk.nc":CMI
  SUBDATASET_1_DESC=[5424x5424] toa_brightness_temperature (16-bit integer)
  SUBDATASET_2_NAME=NETCDF:"fulldisk.nc":DQF
  SUBDATASET_2_DESC=[5424x5424] status_flag (8-bit integer)
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  512.0)
Upper Right (  512.0,    0.0)
Lower Right (  512.0,  512.0)
Center      (  256.0,  256.0)
我用另一个不是来自同一站点的fulldisk的映像测试了相同的过程,它按预期工作。我需要的是中美洲和加勒比地区的完整磁盘域

谢谢你的指导

刚刚更换

-dstnodata-999.0

-dstnodata-999

强制目标无数据值为整数,并获取

gdalwarp -t_srs EPSG:4326 -dstnodata -999 fulldisk.tif fulldisk_geo.tif
Processing input file fulldisk.tif.
Using internal nodata values (e.g. -1) for image fulldisk.tif.
0...10...20...30...40...50...60...70...80...90...100 - done.

没有错误,生成168.1 MiB文件。

谢谢,出于某种原因,现在gdalwarp可以使用-999和-999.0。再次感谢你的努力。。如果其他发现可能与该问题有关,将发布。