[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #FWQ-357482]: Re: conversion to image format



Megan,

I created the attached GINI format satellite image from your data.
To display the image, you will need to add the following line to your
$GEMTBL/sat/imgtyp.tbl file (or imgtyp.tbl file in your working directory):

CTMPK                IR_TMPK       0    255     11  2**15      1 ir_upc3.tbl

Note use only spaces in that file, not tabs.

The conversion process is somewhat manual for this process since I have to 
generate a
mapping of pixel values to gridded data values. This is something I need to add 
for
users in a working program, but doing this with your data helps me get to that
point - I did discuss this type of project with Gary Lackmann here last summer,
so its a work in progress.

I need to find out from you if this mapping of brightness temperature to pixel
is what you are looking for (its the standard 2 part temperature curve used for
IR satellites), and if not, I'll need to get this worked out to provide you 
with the
program.

I displayed this with your grid points and contours in gdplot2 and the image 
lines up
with the points, so my first pass seems to be in the right direction.

Let me know how this works for you.....

Steve Chiswell
Unidata User Support


> Here's the grid navigation from gdinfo...
> GDFILE    Grid file                         satir_f24.gem
> LSTALL    Full list flag                    YES
> OUTPUT    Output device/filename            T
> GDATTIM   Grid date/time                    last
> GLEVEL    Grid level                        0
> GVCORD    Grid vertical coordinate          none
> GFUNC     Scalar grid                       CTMPK
> Parameters requested: GDFILE,LSTALL,OUTPUT,GDATTIM,GLEVEL,GVCORD,GFUNC.
> GEMPAK-GDINFO>r
> 
> GRID FILE: satir_f24.gem
> 
> GRID NAVIGATION:
> PROJECTION:          LCC
> ANGLES:                27.0   -85.3    27.0
> GRID SIZE:          159 159
> LL CORNER:              15.83    -82.64
> UR CORNER:              21.20    -76.45
> 
> GRID ANALYSIS BLOCK:
> ANALYSIS TYPE:        BARNES
> DELTAN:               0.073
> DELTAX:           -9999.000
> DELTAY:           -9999.000
> GRID AREA:            15.00  -84.00   22.00  -75.00
> EXTEND AREA:          15.00  -84.00   23.00  -75.00
> DATA AREA:            15.00  -84.00   23.00  -75.00
> 
> Also, the file (satir_f24.gem) is posted at..
> http://tempest.meas.ncsu.edu/megan
> if you'd like to have the actual file.
> 
> Basically, I'm working on generating a model-simulated satellite IR
> product, kind of like model-simulated radar.  But I'd like to use the
> satellite color tables to make an observational comparison.  I'd
> eventually like to try and use the model-simulated IR on grids of
> different navigation, but I started out with this grid because it's 4-km
> grid spacing, similar to satellite resolution.
> 
> Thanks for your help! If there's any other information you'd like, just
> let me know.
> 
> Megan
> 
> 
> > Megan,
> > I have been working on a gd2img program in the source distribution which
> > can convert a grid to an image using a specified satellite id and
> > channel number with a projection remapped into one that the image format
> > can handle.
> >
> > Can you send me some information about what grid projection/navigation
> > you have so I can see if this will be sufficient for your application?
> > The GINI format is somewhat limited specifying a projection and pixel
> > shape, so might have to use an AREA format instead. Please send this to
> > address@hidden.
> >
> > Steve Chiswell
> > Unidata User Support
> >
> > On Fri, 2007-03-30 at 10:25 -0400, Megan Gentry wrote:
> >> I have a GEMPAK grid file that I'd like to convert to image format and
> >> view using the satellite IR color tables.  I was wondering what the best
> >> way is to convert a grid file to an image file that can be viewed using
> >> the IR color tables?
> >> Thanks,
> >> Megan
> >>
> >> ----------------------------------------------------
> >> Megan S. Gentry
> >> Graduate Research Assistant, Forecasting Lab
> >> Department of Marine, Earth and Atmospheric Sciences
> >> North Carolina State University
> >>
> >> ===============================================================================
> >> To unsubscribe gembud, visit:
> >> http://www.unidata.ucar.edu/mailing-list-delete-form.html
> >> ===============================================================================
> > --
> > Steve Chiswell <address@hidden>
> > Unidata
> >
> 
> 
> ----------------------------------------------------
> Megan S. Gentry
> Graduate Research Assistant, Forecasting Lab
> Department of Marine, Earth and Atmospheric Sciences
> North Carolina State University
> 
> 


Ticket Details
===================
Ticket ID: FWQ-357482
Department: Support
Priority: Normal
Status: Closed

Attachment: testimg.gini
Description: Binary data