Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proj4 needs to be updated to proj v9 and make to work with the github version of wgrib2 #163

Open
edwardhartnett opened this issue Jul 5, 2024 · 1 comment
Assignees
Labels
build Relates to the build system

Comments

@edwardhartnett
Copy link
Contributor

edwardhartnett commented Jul 5, 2024

Right now we have a cmake option:

option(USE_PROJ4 "Use Proj4?" off)
And there is code that uses USE_PROJ4 in ifdefs:

#include <stdio.h>
#include <stdlib.h>

#include "grb2.h"
#include "wgrib2.h"
#include "fnlist.h"

#ifdef USE_PROJ4

#include "proj_api.h"
#include "proj4_wgrib2.h"

int proj4_initialize(unsigned char **sec, struct proj4_struct *projection) {

    unsigned int gdt;
    unsigned char *gds;
    int has_np, center;

(proj4_initialize.c)

But there is nothing in the makefile to find and link to the proj4 library.

@edwardhartnett edwardhartnett added the build Relates to the build system label Jul 5, 2024
@edwardhartnett
Copy link
Contributor Author

proj4 was a development tool for testing purposes.

Then someone found a grid which needed proj4, so for a few versions of wgrib2, proj4 became a default on option (this was after the first cmake build done by Kyle).

As far as we know this is only used by UK Met office.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Relates to the build system
Projects
Status: No status
Development

No branches or pull requests

2 participants