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

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Sat Dec 29 03:38:43 PST 2018


Hi Lee,

I had the same issue:
https://github.com/lutraconsulting/MDAL/issues/66

Could you open a ticket for GFS and an example file?

Regards
Saber




On Sat, 29 Dec 2018, 00:16 Lee Eddington <lee.w.eddington at gmail.com wrote:

> Coming back to this…I did some reading on MDAL and tried the instructions
> found at:
>
> https://www.lutraconsulting.co.uk/blog/2018/10/18/mdal/
>
> trying to load the GFS dataset as a mesh instead of a raster, but I get
> the following error message:
>
> Tools::BufferedFileWriter::open: Cannot open file.: unspecified
> upstream_category error
>
> I also tried loading the ECMWF_ERA-40_subset.nc dataset linked to the blog
> post and get an error message saying it is an invalid data source.
>
> I’m using QGIS version 3.4.1-Madeira on MacOSX 10.14.2
>
> Lee
>
>
>
> On Dec 21, 2018, at 2:46 PM, Lee Eddington <lee.w.eddington at gmail.com>
> wrote:
>
> As a raster.
>
> Sent from my iPhone
>
> On Dec 21, 2018, at 12:09 AM, Saber Razmjooei <
> saber.razmjooei at lutraconsulting.co.uk> wrote:
>
> Did you open your layer as Mesh layer or Raster?
>
> Cheers
> Saber
>
> On Fri, 21 Dec 2018 at 05:59, Lee Eddington <lee.w.eddington at gmail.com>
> wrote:
>
>> 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/
>>
>> 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>
>> 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> 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
>>> 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>
>>> 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
>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>>
>>>
>>> --
>>> Saber Razmjooei
>>> www.lutraconsulting.co.uk
>>> +44 (0)7568 129733
>>>
>>>
>>>
>>
>> --
>> Saber Razmjooei
>> www.lutraconsulting.co.uk
>> +44 (0)7568 129733
>>
>>
>>
>
> --
> Saber Razmjooei
> www.lutraconsulting.co.uk
> +44 (0)7568 129733
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20181229/51c425fe/attachment.html>


More information about the Qgis-user mailing list