Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Signed boundary latitude/longitude values #95

Open
muteebali opened this issue Dec 18, 2017 · 9 comments
Open

Signed boundary latitude/longitude values #95

muteebali opened this issue Dec 18, 2017 · 9 comments

Comments

@muteebali
Copy link

@jnyrup @0x1mason
Is there any way to find out the signed(+/-) boundary values of latitude/longitude. As before, i am trying to extract values from key value pair i.e. startingLatitude, startingLongitude, lastLatitude, lastLongitude but in each case i get positive(+) values. For South and West, values should be negative.
Can you suggest any way, I need to draw boundary using these values.

@jnyrup
Copy link
Collaborator

jnyrup commented Dec 18, 2017

What are the minimum and maximum values of {starting, last}{latitude, longitude}?
I have seen data providers represent longitude in either [-180;180) or [0;360).
The few datasets I have been working with have always represented latitude in [-90;90], but maybe yours is in [0;180]?

I just had a look at https://software.ecmwf.int/wiki/display/ECC/ecCodes+version+2.5.0+released
and there seems to be several fixes for lat/long.

@muteebali
Copy link
Author

@jnyrup

  1. We are getting these values in meta data of records.
  2. Longitude values are not being incremented correctly, go outside of the range.
  3. I am using GribApi.NET 1.0.0-beta4, is this version using ecCodes 2.5.0? if not then how can we add support for ecCodes 2.5.0 in GribApi.NET 1.0.0-beta4 source code?

@jnyrup
Copy link
Collaborator

jnyrup commented Dec 19, 2017

GribApi.NET 1.0.0-beta4 uses ecCodes 2.4.1.
I haven't successfully built GribApi.NET from scratch myself, but here are some observations:

  • GribApi.NET depends on GribApi.Native.
  • GribApi.Native has GribApi.XP as a git submodule
  • GribApi.XP has some notes on how to update ecCodes

@0x1mason
Copy link
Member

0x1mason commented Dec 19, 2017 via email

@muteebali
Copy link
Author

@0x1mason
I am using this file 20171215_054150_.zip In this case, i am getting out of range (Inappropriate) latitude values. Here is the code,

using(var grib=new GribFile(filePath))
{
foreach(var record in grib)
{
//Here my logic to store extracted data
}
}

@0x1mason
Copy link
Member

Can you provide a link to the originating center's grid definition?

@0x1mason
Copy link
Member

This issue was moved to #1

@0x1mason 0x1mason reopened this Dec 20, 2017
@muteebali
Copy link
Author

@0x1mason
i am downloading GRIB files using third party tool ZYGRIB.
Has this issue been resolved ?

@muteebali
Copy link
Author

@jnyrup @0x1mason
have you found any issue with above mentioned file ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants