[Qgis-user] how to properly reference longitude values in different datasets

Lee Eddington lee.w.eddington at gmail.com
Thu Dec 20 21:59:22 PST 2018


That worked.

Thanks,
Lee


> On Dec 20, 2018, at 6:06 AM, Saber Razmjooei <saber.razmjooei at lutraconsulting.co.uk> wrote:
> 
> Climate Data Operator (CDO):
> https://code.mpimet.mpg.de/projects/cdo/ <https://code.mpimet.mpg.de/projects/cdo/>
> 
> cdo sellonlatbox,-180,180,-90,90 input.grib output.grib
> 
> Regards
> Saber
> 
> On Thu, 20 Dec 2018 at 13:00, Lee Eddington <lee.w.eddington at gmail.com <mailto:lee.w.eddington at gmail.com>> wrote:
> Can you point me to the external tools?
> 
> Thanks,
> Lee
> 
> 
>> On Dec 20, 2018, at 12:46 AM, Saber Razmjooei <saber.razmjooei at lutraconsulting.co.uk <mailto:saber.razmjooei at lutraconsulting.co.uk>> wrote:
>> 
>> This is a known issue and can be fixed with some external tools. 
>> I have filed a bug:
>> https://issues.qgis.org/issues/20853 <https://issues.qgis.org/issues/20853>
>> And hopefully get around to fix it in 3.6
>> 
>> Regards
>> Saber
>> 
>> On Thu, 20 Dec 2018 at 01:44, Lee Eddington <lee.w.eddington at gmail.com <mailto:lee.w.eddington at gmail.com>> wrote:
>> I’m pretty new to QGIS and am trying to figure out how to modify longitude values of layers.  I was able to add a raster layer in GRIB2 format (NCEP global meteorological data).  The longitude values range from 0 to 360 degrees.  I’m able to view and do calculations on the data with no problem.  I also added shaded relief and coastline data from Natural Earth.  This data has longitude values from -180 to 180 degrees.  So from -180 to 0 degrees I only see the Natural Earth data, from 0 to 180 degrees I see both datasets and from 180 to 360 degrees I only see the GRIB2 data.  I want both datasets to be referenced the same with regards to longitude (-180 to 180, 0 to 360 or whatever).  It seems like this should be a fairly easy problem to fix by either adding 180 degrees to longitudes from the Natural Earth data or subtracting 180 from the GRIB2 longitudes, but I can’t figure out how to do it.
>> 
>> I’m using QGIS version 3.4.1-Madeira.  The CRS I’m working in is what QGIS put the GRIB2 data into when I added it:   * Generated CRS (+proj=longlat +a=6371229 +b=6371229 +no_defs)
>> 
>> Thanks,
>> Lee
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>> 
>> -- 
>> Saber Razmjooei
>> www.lutraconsulting.co.uk <http://www.lutraconsulting.co.uk/>
>> +44 (0)7568 129733
> 
> 
> 
> -- 
> Saber Razmjooei
> www.lutraconsulting.co.uk <http://www.lutraconsulting.co.uk/>
> +44 (0)7568 129733

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181220/6c765f9e/attachment-0001.html>


More information about the Qgis-user mailing list