Grib2 files with 0-360 longitudes

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Grib2 files with 0-360 longitudes

alexander-petkov
Is there a way in Geoserver to account for (or adjust) longitudes b/n
0-360 for raster data?

I have a dataset that is referenced on 0-360 longitude space, in Grib2
format, and this makes it very inconvenient, especially with GetMap
requests:

https://user-images.githubusercontent.com/39599557/65276176-731a1a80-dae4-11e9-8f51-6547a033bb93.png

I am attaching an example Grib2 file for reference.

Thank you in advance for any tips,

Alex


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

gfs.t00z.pgrb2.0p25.f003.grb2 (134K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Grib2 files with 0-360 longitudes

alexander-petkov
I see that the sample test data for the grib plugin in geotools is
gridded in the same way:

==========
cdo sinfon sampleGrib.grb2
   File format : GRIB2
    -1 : Institut Source   T Steptype Levels Num    Points Num Dtype :
Parameter name
     1 : NCEP     unknown  v instant       1   1      4941   1  P16  :
ucurr
   Grid coordinates :
     1 : lonlat                   : points=4941 (61x81)
                              lon : 302 to 308 by 0.1 degrees_east
                              lat : 2 to 10 by 0.1 degrees_north
===========

There must be a trick to referencing the data in -180 to 180
longitudinal space... :)

Thank you in advance again for any help,

Alex


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Grib2 files with 0-360 longitudes

greg.turner@i4-insight.com
In reply to this post by alexander-petkov

cdo can do it:

https://code.mpimet.mpg.de/projects/cdo/wiki/Tutorial

 

 

cdo -sellonlatbox,-180,180,-90,90 <infile> <outfile>

 

 

Gregory Turner

Chief Architect

________________________________________

i4 Insight, Inc.

 

cell: +1.720.335.1744

[hidden email]

 

A member of the Lloyd’s Register Group

 

-----Original Message-----
From: Alexander Petkov <[hidden email]>
Sent: Tuesday, September 24, 2019 12:12 PM
To: geoserver-users <[hidden email]>
Subject: [Geoserver-users] Grib2 files with 0-360 longitudes

 

Is there a way in Geoserver to account for (or adjust) longitudes b/n

0-360 for raster data?

 

I have a dataset that is referenced on 0-360 longitude space, in Grib2 format, and this makes it very inconvenient, especially with GetMap

requests:

 

https://user-images.githubusercontent.com/39599557/65276176-731a1a80-dae4-11e9-8f51-6547a033bb93.png

 

I am attaching an example Grib2 file for reference.

 

Thank you in advance for any tips,

 

Alex



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Grib2 files with 0-360 longitudes

alexander-petkov
The grid remains unchanged:
============
cdo sellonlatbox,-140.125,-59.875,21.875,53.125 -copy
Downloads/cephfs/wfas/data/gfs/APCP/gfs.t00z.pgrb2.0p25.f003.grb2
aout.grb2
cdo(2) copy: Process started
cdo copy/selall : UNCHANGED_RECORD=0
cdo copy/selall : cdiGribDataScanningMode=0; lcopy=0
cdo(2) copy: Processed 80250 values from 1 variable over 2 timesteps
cdo sellonlatbox: Processed 80250 values from 1 variable [0.07s 66MB]

cdo sinfon aout.grb2
   File format : GRIB2
    -1 : Institut Source   T Steptype Levels Num    Points Num Dtype :
Parameter name
     1 : NCEP     unknown  v accum         1   1     40125   1  P10  :
tp
   Grid coordinates :
     1 : lonlat                   : points=40125 (321x125)
                              lon : 220 to 300 by 0.25 degrees_east
                              lat : 22 to 53 by 0.25 degrees_north


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: Grib2 files with 0-360 longitudes

geowolf
In reply to this post by alexander-petkov
Hi,
if that is a GetMap (I see in the QGIS status bar a mention of WCS instead, maybe unrelated) then you can try
enabling advanced projection handling and image wrapping in the WMS settings

Cheers
Andrea


On Tue, Sep 24, 2019 at 8:22 PM Alexander Petkov <[hidden email]> wrote:
Is there a way in Geoserver to account for (or adjust) longitudes b/n
0-360 for raster data?

I have a dataset that is referenced on 0-360 longitude space, in Grib2
format, and this makes it very inconvenient, especially with GetMap
requests:

https://user-images.githubusercontent.com/39599557/65276176-731a1a80-dae4-11e9-8f51-6547a033bb93.png

I am attaching an example Grib2 file for reference.

Thank you in advance for any tips,

Alex
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users