Code Monkey home page Code Monkey logo

diana's People

Contributors

acfbuerger avatar alexander-buerger-met-no avatar audunc avatar bjornkl avatar bxrgem avatar dag-erling avatar danieltorgersen avatar heikoklein avatar ie-smhi avatar jo-asplin-met-no avatar juerg1s avatar lisbethb-met-no avatar meteorologist avatar myggen avatar setmar avatar tuhtah avatar yngvee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diana's Issues

Build error: Unknown CMake command "METNO_HEADERS".

When trying to build (LinuxMint 20, cmake 3.16) it throws this error:
CMake Error at CMakeLists.txt:466 (METNO_HEADERS):
Unknown CMake command "METNO_HEADERS".

(both with master branch as well as tag 3.40.0a1-1)
How would I fix this?

Missing support for projection used in geotiff

In line https://github.com/metno/diana/blob/master/src/miRaster/satgeotiff.cc#L368 and following the projection information from a geotiff file is read.

I have a file here ( this might disappear, but all *.tif files in this directory should have the same behaviour:
/lustre/storeB/project/metproduction/products/satdata_polar/production/antenna-viirs-mitiff/natural_color_sun_20220630_090501.tif

And Diana reports:

2022-06-30 09:41:16,776 ERROR metno.GeoTiff.head_diana: Projection CT 9815 not yet supported
2022-06-30 09:41:16,776 ERROR diana.GEOtiff.readGEOtiffHeader: GEOTIFF_head_diana returned false:/lustre/storeB/project/metproduction/products/satdata_polar/production/antenna-viirs-mitiff/natural_color_sun_20220630_090501.tif
2022-06-30 09:41:16,776 ERROR metno.GeoTiff.head_diana: Projection CT 9815 not yet supported
2022-06-30 09:41:16,776 ERROR diana.GEOtiff: GEOTIFF_read_diana returned false:/lustre/storeB/project/metproduction/products/satdata_polar/production/antenna-viirs-mitiff/natural_color_sun_20220630_090501.tif
2022-06-30 09:41:16,776 ERROR diana.SatManager.setData: Failed readSatFile

What I want is DIANA to read the proj4 information out of this geotiff file.

gdalsrsinfo /lustre/storeB/project/metproduction/products/satdata_polar/production/antenna-viirs-mitiff/natural_color_sun_20220630_090501.tif

PROJ.4 : '+proj=omerc +lat_0=0 +lonc=65.01172638348839 +alpha=-8.6347579930128 +k=1 +x_0=0 +y_0=0 +gamma=0 +a=6370997 +b=6370997 +units=m +no_defs '

OGC WKT :
PROJCS["unknown",
    GEOGCS["unknown",
        DATUM["Unknown_based_on_Normal_Sphere_r_6370997_ellipsoid",
            SPHEROID["Normal Sphere (r=6370997)",6370997,0]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],
    PARAMETER["latitude_of_center",0],
    PARAMETER["longitude_of_center",65.01172638348839],
    PARAMETER["azimuth",-8.6347579930128],
    PARAMETER["rectified_grid_angle",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]

So the geotiff contains enough info to produce a proj4 string.

Any suggestion how solve this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.