Menu

#8 IfpImage Not creating graphics

1.0
closed
nobody
2018-05-12
2018-04-29
No

When I go into Products > Scripts >PNG Image, it uses the gfeConfig. However when looking into the process it runs sh /home/gfe/gfeInstall/var/gfe/bin/gfei and says no such file or directory.

Not sure what is going on here. Would love to see GFE make grids. See my previous post on the attempts to get this working.

Related

Tickets: #8

Discussion

  • Michael Foland

    Michael Foland - 2018-04-29

    In this file: https://sourceforge.net/p/gfed/code/ci/master/tree/data/textFiles/GFECONFIG/gfeConfig.GFECONFIG

    Change the SITE in the # Product Generation Scripts appear under the product generation menu

    on the GFE.

    Scripts = [
    "Png Images...:" +
    "{home}/bin/gfei -m ifp.Image -u SITE -h {host} -p {port} " +\
    "-c {entry:ConfigFile:testIFPImage} " +\
    "-o {prddir}/IMAGE",

    "Ascii Grids...: " +
    "{home}/bin/gfei -m ifp.AG -h {host} -r {port} " +\
    "-o {prddir}/AG/{ztime}.ag " +\
    "-d {productDB} ",
    
    "MakeD2DFile: " +
    "{home}/bin/gfei -m ifp.makeD2DFile -h {host} -r {port} "
    ]
    -u {site}
    
    to make it work with the config file!
    
     
  • Michael Foland

    Michael Foland - 2018-04-29

    When I first ran the script, it said /home/gfe/gfeInstall/var/gfe/bin/gfei didn't exist.. which /home/gfe/gfeInstall does exist. I created the gfe and bin folder respectively, and I copied the gfei file in there. The script WORKED... However it said I had some Png_Params missing, even though I had things defined in the gfeConfig script. See the attached.

     
  • Michael Foland

    Michael Foland - 2018-04-30

    Got the PngImage to work... however after making config edits.. it doesn't want to either save them or something.. It gives me a black background, and doesn't show it like it should on like a white map, with gray counties, and the actual grid stuff with the values.

    Second problem, I created a WX Grid, and it didn't even send that to PNG. I attatched the image issue that has the MaxT.

     
  • Mike Romberg

    Mike Romberg - 2018-05-01

    As you have discovered, you can't use 'gfeConfig' as a configuration file for the ifp.Image program. I have no idea why it was ever set as the default. I changed the default one to 'testIFPImage' which does work.

    I've also fixed some of the code which broke things running as a script with the new install directory structure.  It now runs for me both from a development environment and an installed setup.
    
      The line stipple code was a bit broken from the port to c++14.  It is now working as well as it used to.   The libgd library ifp.Image uses has come a long ways since ifp.Image was written.  It now has anitialiasing, alpha blending and freetype font support.   At some point I may add these features to ifp.Image.
    
         Also, the SITE bit in the commond line to ifp.Image has nothing at all to do with the "site" the gfe is configured for (such as BOU).   It is the user name in the BASE/SITE/user scheme used by the configuration loader.   The intended way to configure an ifp.Image configuration is to start the gfe with the SITE user and save a gfeConfiguration which points to an ifpImage configuration.  This way all users will see and use the same thing.   See the documentation on details for all these things.
    
           Finally, the weather grids used by the testIFPImage configuration seem okayish to me.  They are displaying as a graphic and not an image in this file.   They may need adjustments to the whole fill pattern to Wx type mapping thing (found in testIFPImage).   It has been a while since I've looked at that.
    
     
    • Michael Foland

      Michael Foland - 2018-05-01

      I'd love to see the grids fill like how they do on the nws.. it also looks
      like ifpImage is going to a test db. Im not sure how to get it set to Fcst
      and official

      On Mon, Apr 30, 2018, 8:00 PM Mike Romberg romberg@users.sourceforge.net
      wrote:

      As you have discovered, you can't use 'gfeConfig' as a configuration file
      for the ifp.Image program. I have no idea why it was ever set as the
      default. I changed the default one to 'testIFPImage' which does work.

      I've also fixed some of the code which broke things running as a script with the new install directory structure. It now runs for me both from a development environment and an installed setup.

      The line stipple code was a bit broken from the port to c++14. It is now working as well as it used to. The libgd library ifp.Image uses has come a long ways since ifp.Image was written. It now has anitialiasing, alpha blending and freetype font support. At some point I may add these features to ifp.Image.

       Also, the SITE bit in the commond line to ifp.Image has nothing at all to do with the "site" the gfe is configured for (such as BOU).   It is the user name in the BASE/SITE/user scheme used by the configuration loader.   The intended way to configure an ifp.Image configuration is to start the gfe with the SITE user and save a gfeConfiguration which points to an ifpImage configuration.  This way all users will see and use the same thing.   See the documentation on details for all these things.
      
         Finally, the weather grids used by the testIFPImage configuration seem okayish to me.  They are displaying as a graphic and not an image in this file.   They may need adjustments to the whole fill pattern to Wx type mapping thing (found in testIFPImage).   It has been a while since I've looked at that.
      

      Status: open
      Milestone: 1.0
      Labels: IfpImage Images
      Created: Sun Apr 29, 2018 07:27 AM UTC by Michael Foland
      Last Updated: Mon Apr 30, 2018 06:44 AM UTC
      Owner: nobody

      When I go into Products > Scripts >PNG Image, it uses the gfeConfig.
      However when looking into the process it runs sh
      /home/gfe/gfeInstall/var/gfe/bin/gfei and says no such file or directory.

      Not sure what is going on here. Would love to see GFE make grids. See my
      previous post on the attempts to get this working.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/gfed/tickets/8/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #8

  • Michael Foland

    Michael Foland - 2018-05-01

    Over my grids can I also output city names? I'd like to show one weather element at a time... whereas in some of the grids, multiple elements show.

     
  • Michael Foland

    Michael Foland - 2018-05-01

    I did a fresh install, and when I go to run ifpImage...

    I get this after the command runs, when I look in the Process Monitor:

    PngWriter.py 593 EVENT: ifpIMAGE Starting
    PngWriter.py 596 EVENT: Build Date: Tue May 1 05:49:48 2018 Built By: gfe Built On: localhost.localdomain (linux) Version: 1.10.0 May/01/2018
    Config.C 213 EVENT: loading module testIFPImage...
    DBSubsystem.C 190 EVENT: Version: 1.10.0 May/01/2018
    Server Host: localhost Port: 8044
    Username: SITE
    PngWriter.py 40 EVENT: Configuration File: testIFPImage
    PngWriter.py 460 EVENT: No grids to generate
    PngWriter.py 650 EVENT: ifpIMAGE Finished

    So -- I was able to take some of the info from the TestIFPImage, and edit the Png_params, and I was able to get it to work. I made a MaxT grid, and you can see the attatched. Now would be nice to get it to work like this for different elements: https://graphical.weather.gov/images/pah/MinT1_pah.png

    Obviously if I were to show a logo, I'd be putting my own logo and text in between :) I spent about an hour and a half getting this progress working! I can attatch my gfeConfig if you'd like.

    --EDIT.. In the attatched.. While I generated it as the MaxT element... These certainly are not temperatures. Not sure what happened here!

     

    Last edit: Michael Foland 2018-05-01
    • Michael Foland

      Michael Foland - 2018-05-01

      I believe on that image it is topo and not maxT. Not sure why it didn't
      generate the MaxT grid.

      On Tue, May 1, 2018, 2:57 AM Michael Foland mfoland@users.sourceforge.net
      wrote:

      I did a fresh install, and when I go to run ifpImage...

      I get this after the command runs, when I look in the Process Monitor:

      PngWriter.py 593 EVENT: ifpIMAGE Starting
      PngWriter.py 596 EVENT: Build Date: Tue May 1 05:49:48 2018 Built By: gfe
      Built On: localhost.localdomain (linux) Version: 1.10.0 May/01/2018
      Config.C 213 EVENT: loading module testIFPImage...
      DBSubsystem.C 190 EVENT: Version: 1.10.0 May/01/2018
      Server Host: localhost Port: 8044
      Username: SITE
      PngWriter.py 40 EVENT: Configuration File: testIFPImage
      PngWriter.py 460 EVENT: No grids to generate
      PngWriter.py 650 EVENT: ifpIMAGE Finished

      So -- I was able to take some of the info from the TestIFPImage, and edit
      the Png_params, and I was able to get it to work. I made a MaxT grid, and
      you can see the attatched. Now would be nice to get it to work like this
      for different elements:
      https://graphical.weather.gov/images/pah/MinT1_pah.png

      Obviously if I were to show a logo, I'd be putting my own logo and text in
      between :) I spent about an hour and a half getting this progress working!
      I can attatch my gfeConfig if you'd like.

      Attachments:


      Status: open
      Milestone: 1.0
      Labels: IfpImage Images
      Created: Sun Apr 29, 2018 07:27 AM UTC by Michael Foland
      Last Updated: Tue May 01, 2018 04:39 AM UTC
      Owner: nobody

      When I go into Products > Scripts >PNG Image, it uses the gfeConfig.
      However when looking into the process it runs sh
      /home/gfe/gfeInstall/var/gfe/bin/gfei and says no such file or directory.

      Not sure what is going on here. Would love to see GFE make grids. See my
      previous post on the attempts to get this working.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/gfed/tickets/8/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #8

  • Mike Romberg

    Mike Romberg - 2018-05-01

    There is alot of documentation that can be found by poining your browser at:

    file:///path/to/where/ho/have/gfe/source/GFESuite/doc/onlinehelp/index.html

    In particular, the ifpImage documentation is at: GFESuite/doc/onlinehelp/ifpIMAGE.html

    That plus the comments in gfeConfig may make it a bit easier to setup the images you are looking for.
    
    NOTE:  There is no longer a specific ifpImage program mentioned in the documentation.   I moved all the two dozen or so stand along programs into a single one (gfei).   So, the old ifpImage program is now 'gfei -m ifp.Image'.   Yes it is a bit more typing.  But if gfe is installed in something like /usr/local then there are not two dozen extra programs in /usr/local/bin :).
    
    EDIT:  Also, the ifpServer is now a web server.  So, if you point your browser at http://localhost:8044/ you will send back html.   The documentation is at: http://localhost:8044/doc/onlinehelp/index.html
    
     

    Last edit: Mike Romberg 2018-05-01
  • Michael Foland

    Michael Foland - 2018-05-02

    I was able to use the documentation to get the grids to actually generate an image... However, I cannot for the life of me get the temperatures to also show as text for points... and not all the cities are showing like they should be. Is there a new city database out there or something? See my attatched image.

     
  • Mike Romberg

    Mike Romberg - 2018-05-02

    The points at which values are displayed are called samples. Groups of samples are called samplesets. To get ifp.Image to display samplesets you need to:

    • Create and save a sample set using the gfe. 1) select the sample tool 2) click on the points you want. 3) Use the Maps > Samples > Save dialog to save the set. You probably want to do this as the SITE user as ifp.Image is run as that user from the script dialog and all other users will see this sampleset too.
    • Then set the variable DefaultSamples = ['yourSampleSetName'] in the config file used by ifp.Image

    As for the cities map. Check the section of the documentation about configuring maps. The cities shapefile has alot more cities in in that the gfe will use by default. If I remember correctly the default filters out smaller ones so that large metro areas are not a huge swarm of points. I believe you should be able to customize the cities map for your needs.

     
  • Mike Romberg

    Mike Romberg - 2018-05-12
    • status: open --> closed
     
  • Mike Romberg

    Mike Romberg - 2018-05-12

    ifp.Image seems up and running again. So, closing this ticket. Open new tickets for any additional issues with the operation of ifp.Image.

     

Log in to post a comment.

MongoDB Logo MongoDB