<div dir="ltr">Hi list, <div><br></div><div>I'm trying to import a netCDF file I downloaded from here: <a href="http://oceandata.sci.gsfc.nasa.gov/MODISA/Mapped/8Day/4km/chl/" target="_blank">http://oceandata.sci.gsfc.nasa.gov/MODISA/Mapped/8Day/4km/chl/</a></div><div><br></div><div>I've tried two different ways of importing:</div><div><br></div><div>r.in.gdal input=NETCDF:"<a href="http://A20030012003008.L3m_8D_CHL_chl_ocx_4km.nc" target="_blank">A20030012003008.L3m_8D_CHL_chl_ocx_4km.nc</a>":chl_ocx output=test_chlor -o<br></div><div><br></div><div>and </div><div><br></div><div>gdal_translate -a_srs EPSG:4326 -a_ullr -180 90 180 -90 NETCDF:"<a href="http://A20030012003008.L3m_8D_CHL_chl_ocx_4km.nc" target="_blank">A20030012003008.L3m_8D_CHL_chl_ocx_4km.nc</a>":chl_ocx test_chlor_b.tif<br></div><div>r.in.gdal input=test_chlor_b.tif output=test_chlor_b<br></div><div><br></div><div>In both cases I get this error when trying to display the map (both with d.mon - d.rast and in the GUI):</div><div><br></div><div><div><b>GRASS_INFO_ERROR(18597,1): Syntax error in cell header</b></div><div><b>GRASS_INFO_END(18597,1)</b></div></div><div><br></div><div>though, <a href="http://r.info" target="_blank">r.info</a> test_chlor_b, seems fine</div><div><div><br></div><div>[...]                                                                        </div><div> |   Type of Map:  raster               Number of Categories: 0               </div><div> |   Data Type:    FCELL                                                      </div><div> |   Rows:         4320                                                       </div><div> |   Columns:      8640                                                       </div><div> |   Total Cells:  37324800                                                   </div><div> |        Projection: Latitude-Longitude                                      </div><div> |            N:        90N    S:        90S   Res: 0:02:30                   </div><div> |            E:       180E    W:       180W   Res: 0:02:30                   </div><div> |   Range of data:    min = 0.001  max = 99.96646                                              </div><div>[...]                                                         </div></div><div><br></div><div>While transforming with gdal_translate and also when unsing r.in.gdal with the original netCDF file, I noted this:</div><div><div><br></div><div>gdal_translate -a_srs EPSG:4326 -a_ullr -180 90 180 -90 NETCDF:"<a href="http://A20030012003008.L3m_8D_CHL_chl_ocx_4km.nc" target="_blank">A20030012003008.L3m_8D_CHL_chl_ocx_4km.nc</a>":chl_ocx test_chlor_b.tif</div><div><b>Warning 1: dimension #1 (lon) is not a Longitude/X dimension.</b></div><div><b>Warning 1: dimension #0 (lat) is not a Latitude/Y dimension.</b></div><div>Input file size is 8640, 4320</div><div>0...10...20...30...40...50...60...70...80...90...100 - done.</div></div><div><br></div><div>I guess it is maybe related to the error? What does it mean? Can someone help me, please? QGIS displays it fine... </div><div><br></div><div>I'm using grass71 r67160, under fedora 22. GDAL 1.11.3<br></div><div><br></div><div>Thanks a lot! And sorry for my ignorance :/</div><div>Vero<br></div><div><br></div><div>ps: Here, the output of gdalinfo from original netCDF and the one converted with gdal_translate: <a href="http://pastebin.com/4c7Hk7cW">http://pastebin.com/4c7Hk7cW</a></div><div><br></div></div>