Giter Club home page Giter Club logo

Comments (8)

pietern avatar pietern commented on August 27, 2024

Great point. The first thing that comes to mind is optionally writing a separate JSON file for every image file that contains all the LRIT headers verbatim. EXIF is not an option because OpenCV doesn't support it. Also EXIF would only apply to JPEG files and not PNGs, PGMs, etc.

from goestools.

eminence avatar eminence commented on August 27, 2024

a JSON file per image sounds perfect, too!

from goestools.

pietern avatar pietern commented on August 27, 2024

@eminence Check out the linked commit. Make sure to set json = true for every handler where you want a header written as JSON file. This is still a bit clunky in my opinion, but it does the job, and done is better than perfect. Let me know what you think. And if we come up with a better solution we can always change of course.

from goestools.

pietern avatar pietern commented on August 27, 2024

Example JSON: https://gist.github.com/pietern/842202a5464cb4523e94b253dfa0415f

from goestools.

eminence avatar eminence commented on August 27, 2024

Following up on this after a long winter hiatus. This new feature is working great, thank you! Using the ImageNavagation header I can run my own projections to figure out what cities and states are included in an image (and thank you for the well-written comment about the projection in map_drawer.cc).

I'm curious about the Table structure. Can you point me in the direction of some documentation that might describe what this table is used for?

from goestools.

pietern avatar pietern commented on August 27, 2024

Thanks for the feedback. Glad to hear it's working for you.

Can you share a demo of where/how you're using it?

The Table in the ImageDataFunction is a mapping of the 8 bit integer pixel values to the values in the underlying measurement system. It depends on the channel what you're looking at. These values are what's used for the gradient mapping, so you can express the colors gradient in Kelvin, and not worry how they are mapped to the pixel values.

from goestools.

pietern avatar pietern commented on August 27, 2024

You can search for "image data function" in the LRIT specs (for example here) for more info.

from goestools.

eminence avatar eminence commented on August 27, 2024

Thanks for the tips about the image data function info, I'll take a look

Can you share a demo of where/how you're using it?

Sure! It's being used for a personal dashboard I wrote to give me a quick interface to the images produced by goesproc. https://goes.em32.net/ In the "Latest GOES-16 section" you can see that some images are labeled with some of the cites in view, and this was calculated using the ImageNavigation data from the json files

from goestools.

Related Issues (20)

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.