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

[GEMPAK #AWA-355949]: Re: Higher resolution topographic gempak sat files



Alan,

The lut columns can be used to name colors etc. The actual format of the file 
is:
!Color name    Abrev   Red  Green   Blue  X color name

The file I sent has some entries in the "X Color name" column because I started 
from
a ramped color table mapping various grayscales (eg 0 to 255 shades).

The actual fortran code in GEMPAK reads from column locations, so you just need 
to ensure that the
Red, Green, and Blue values stay in those 3 character columns.

If you arrive at a more subdues and pleasing color table, I'd be happy to make 
it a part of
the distribution I send out.

Steve Chiswell
Unidata User Support



> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
> </head>
> <body bgcolor="#ffffff" text="#000000">
> Steve,<br>
> <br>
> I was going to next try to modify that upc_dem5.tbl to try to tweak the
> colors a bit. Why is there a fourth column with some of the values?<br>
> <br>
> Thanks<br>
> <br>
> Unidata GEMPAK Support wrote:
> <blockquote cite="address@hidden" type="cite">
> <blockquote type="cite">
> <pre wrap="">Hi Steve,
> I was on vacation when you sent this and just had a chance to try it
> out. It looks great!  :)
> 
> Thanks.
> 
> Alan
> </pre>
> </blockquote>
> <pre wrap=""><!---->
> Alan,
> 
> OK, sounds like you ahve enough to start working with at the moment.
> I'm moving ahead with grid to image conversion so that all of this
> header stuff can be configured by the user (aka you) so that the product
> can be tailored as needed.
> 
> Steve Chiswell
> Unidata User Support
> 
> 
> 
> 
> 
> 
> 
> 
> </pre>
> <blockquote type="cite">
> <pre wrap="">&lt;br&gt;
> Unidata GEMPAK Support wrote:
> &lt;blockquote cite=<a class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"address@hidden"</a> type="cite"&gt;
> &lt;pre wrap=""&gt;Alan,
> 
> Your version of GEMPAK is limited in the channel numbers that will be
> expected in the GINI image, and the channel 16 I used is
> outside of the allowed range. I had thought I made it low enough,
> but didn't. I always increase my allowed channel numbers here since
> the sounder products on NOAAPort use that higher range of numbers.
> 
> I've modified the channel number from 16 down to 5 in the attached
> ustopo_dem5.gini2, and the imgtyp.tbl entry is:
> TOPO                 TOPO_DEM5     0     95     33     16      1 upc_dem5.tbl
> 
> Try this and see if it works for you.
> 
> I'm working on seeing if I can use AREA instead of GINI that would avoid some
> of these hassles- just don't want to create problems reusing old GOES7 numbers
> in case someone is using GOES7 data for something out there.
> 
> Steve Chiswell
> Unidata User Support
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Hi Steve,
> 
> After not touching this for a while I am now resuming work on it again.
> 
> But still no luck and I am getting the same error:
> 
> "[IM 1]  No image type entry for file ustopo_dem5.gini"
> 
> 
> I did make the correction to the imgtyp.tbl that you suggested:
> 
> TOPO   TOPO-DEM5   0   95   33   32768    1  upc_dem5.tbl
> 
> 
> I am not sure what else to try.
> 
> Alan
> 
> 
> Steve Chiswell wrote:
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Alan,
> 
> The entry in imgtyp.tbl you have below has the wrong channel ID. It
> should
> be 32768  (not 32761). The number is channel 16 (which equates to
> 2**(16-1)).
> 
> The gini image is the same format as the remapped imagery that NESDIS
> puts on NOAAPORT. I'm using the GOES-7 satellite ID (shouldn't get any
> conflicts there)
> and channel 16 which is outside the range of bands for GOES-7 as well.
> 
> Steve Chiswell
> Unidata User Support
> 
> 
> On Wed, 2007-01-24 at 09:51 -0500, &lt;a class="moz-txt-link-abbreviated" 
> href=<a class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"mailto:address@hidden";</a>&gt;<a 
> class="moz-txt-link-abbreviated" 
> href="mailto:address@hidden";>address@hidden</a>&lt;/a&gt; wrote:
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Steve,
> 
> I was able to provide to the requestor a 300 dpi copy of the chart in
> question with the old "low res" topo as they don't need the hi res for a
> while.
> 
> So now I am trying to play with it a bit and am stuck.
> 
> Here's what I did.
> 
> 1. Downloaded the ustopo_dem5.gini and upc_dem5.tbl from the links you
> provided.
> 
> 2. Then copied locally a copy of the imgtyp.tbl into the same directory
> I am running gpmap.
> 
> 3.  Next I added the following entry to that, per your recommendation:
> TOPO      TOPO_DEM5    0 95 33  32761 upc_dem5.tbl
> 
> 4. And finally this is what I have for entries in gpmap
> MAP      = 1
> MSCALE   = 0
> GAREA    = dset
> PROJ     = sat
> SATFIL   = ustopo_dem5.gini
> RADFIL   =
> IMCBAR   =
> LATLON   =
> PANEL    = 0
> TITLE    = 1
> TEXT     = 1
> CLEAR    = YES
> DEVICE   = XW
> LUTFIL   = upc_dem5.tbl
> 
> Yet when I run it I get this error:
> 
> "[IM 1]  No image type entry for file ustopo_dem5.gini"
> 
> I'm not sure what I am doing wrong here. Any recommedations would be
> greatly appreciated.
> 
> I assume that the "gini" file is in the correct format and doesn't need
> to be converted?
> 
> Thanks
> 
> Alan
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message -----
> From: Steve Chiswell &lt;a class="moz-txt-link-rfc2396E" href=<a 
> class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"mailto:address@hidden";</a>&gt;&amp;lt;address@hidden&amp;gt;&lt;/a&gt;
> Date: Thursday, January 11, 2007 5:58 pm
> Subject: Re: Higher resolution topographic gempak sat files
> 
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Alan,
> 
> I'll be out of the office next week for the AMS,  but would be
> happy to
> work with you
> more after I return.
> 
> It would be possible for me to provide you with the topo to grid to
> image programs,
> but you would have to run my binaries to do that until your version of
> GEMPAK is capable of handling larger grids (since I use the grid
> navigation routines to handle the
> transformation from lat/lon projection to other projections). So,
> for a
> quick start,
> I provided a sample using the 5min dem data since it included
> bathymetryas the image you are currently using does.
> 
> I created a ~6km resolution GIF as a sample from the 5min dem data at:
> &lt;a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" 
> href="http://www.unidata.ucar.edu/staff/chiz/gifs/topo_nam.gif";>"http://www.unidata.ucar.edu/staff/chiz/gifs/topo_nam.gif";</a>&gt;<a
>  class="moz-txt-link-freetext" 
> href="http://www.unidata.ucar.edu/staff/chiz/gifs/topo_nam.gif";>http://www.unidata.ucar.edu/staff/chiz/gifs/topo_nam.gif</a>&lt;/a&gt;
> 
> You can download the gini file that created the image at:
> &lt;a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" 
> href="http://www.unidata.ucar.edu/staff/chiz/gifs/ustopo_dem5.gini";>"http://www.unidata.ucar.edu/staff/chiz/gifs/ustopo_dem5.gini";</a>&gt;<a
>  class="moz-txt-link-freetext" 
> href="http://www.unidata.ucar.edu/staff/chiz/gifs/ustopo_dem5.gini";>http://www.unidata.ucar.edu/staff/chiz/gifs/ustopo_dem5.gini</a>&lt;/a&gt;
> 
> For GINI, I used the GOES7 satellite ID here since you probably cannot
> remap an unused ID with your version of GEMPAK. The
> $GEMTBL/sat/imgtyp.tbl entry to display this image is:
> TOPO                 TOPO_DEM5     0     95     33  32768      1
> upc_dem5.tbl
> 
> You can download the color table for your $GEMTBL/luts directory here:
> &lt;a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" 
> href="http://www.unidata.ucar.edu/staff/chiz/gifs/upc_dem5.tbl";>"http://www.unidata.ucar.edu/staff/chiz/gifs/upc_dem5.tbl";</a>&gt;<a
>  class="moz-txt-link-freetext" 
> href="http://www.unidata.ucar.edu/staff/chiz/gifs/upc_dem5.tbl";>http://www.unidata.ucar.edu/staff/chiz/gifs/upc_dem5.tbl</a>&lt;/a&gt;
> 
> The GPMAP parameters to display the image as the GIF above is shown
> below, where I've added:
> BND = lakes/24
> to fill in the lakes as water color (since the DEM data would be above
> sea level and not blue there). You can set the GAREA smaller than dset
> as necessary.
> 
> GAREA  = dset
> PROJ       = sat
> SATFIL   = ustopo_dem5.gini
> BND        = lakes/24
> LUTFIL   = default
> 
> The 30 second data is great for smaller areas where you can take
> advantage of the resolution, more therelater if you feed this is where
> you want to go.
> 
> Steve Chiswell
> Unidata User Support
> 
> On Tue, 2007-01-09 at 14:07 -0500, &lt;a class="moz-txt-link-abbreviated" 
> href=<a class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"mailto:address@hidden";</a>&gt;<a 
> class="moz-txt-link-abbreviated" 
> href="mailto:address@hidden";>address@hidden</a>&lt;/a&gt; wrote:
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Steve,
> 
> It's hard to say just what kind of resolution that we need as I
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;am not
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;sure what we are currently using. I think that maybe the 
> one we
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;use is 5
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;min. We have had it for at least 5 years.
> 
> I really do not want this to be a lot of work for you. Is there
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;any way
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;that we could run the grid-to-image conversion on the data 
> so we
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;could&amp;gt; play around with various data sets to see 
> what we like?
> (That assumes it
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;would run on our workstations, which run RHEL3 and RHEL4.) 
> It
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;would be
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;nice to have some background for general use that is 
> better than
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;what we
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;have now but also a much better background if we need to 
> produce
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;much&amp;gt; higher quality images for publication.
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Alan
> 
> 
> ----- Original Message -----
> From: Steve Chiswell &lt;a class="moz-txt-link-rfc2396E" href=<a 
> class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"mailto:address@hidden";</a>&gt;&amp;lt;address@hidden&amp;gt;&lt;/a&gt;
> Date: Tuesday, January 9, 2007 12:43 pm
> Subject: Re: Higher resolution topographic gempak sat files
> 
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Alan,
> 
> I have created both 30 second and 5 minute global topography
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;(dem)
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;datasets.
> The 5 minute dem data has bathymetry, while the 30 second data
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;set
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;doesnot.
> 
> I provide these as a grid
> (&lt;a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" 
> href="http://www.unidata.ucar.edu/downloads/gempak/tables/";>"http://www.unidata.ucar.edu/downloads/gempak/tables/";</a>&gt;<a
>  class="moz-txt-link-freetext" 
> href="http://www.unidata.ucar.edu/downloads/gempak/tables/";>http://www.unidata.ucar.edu/downloads/gempak/tables/</a>&lt;/a&gt;)
> for use with a program I call GDTOPO which allows users to
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;create a
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;subset for a Gempak grid file. However, it would be 
> possible to
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;map
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;thegrid into an image to use as a background using the same
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;grid to
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;imageconversion that I do for our
> radar composite images.
> 
> If you can provide some information regarding the resolution
> (pixel--&amp;gt;km) you
> need, I can look into making some background images.
> 
> Steve Chiswell
> Unidata User Support
> 
> 
> 
> 
> On Tue, 2007-01-09 at 10:50 -0500, Alan Robson wrote:
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Hi Mr Chiswell,
> 
> My name is Alan Robson and I work in the Development and
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;Training
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Branch
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;of the Hydrometeorological Precipitation Center in Camp
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;Springs,
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;Maryland.   I am not sure if you the right person to 
> address
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;this
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;request to and hope you will forward it to the appropriate
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;individual if
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;you are not.
> 
> We produce many meteorological products for our webpage (
> &lt;a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" 
> href="http://www.hpc.ncep.noaa.gov/";>"http://www.hpc.ncep.noaa.gov/";</a>&gt;<a
>  class="moz-txt-link-freetext" 
> href="http://www.hpc.ncep.noaa.gov/";>http://www.hpc.ncep.noaa.gov/</a>&lt;/a&gt;
>  ) that use a fairly low
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;resolution
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;topographic gempak sat file as a background.   This is a
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;sample
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;of one
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;of our most popular products that gets very many webhits:
> &lt;a class="moz-txt-link-freetext" href=<a class="moz-txt-link-rfc2396E" 
> href="http://www.hpc.ncep.noaa.gov/noaa/noaa.gif";>"http://www.hpc.ncep.noaa.gov/noaa/noaa.gif";</a>&gt;<a
>  class="moz-txt-link-freetext" 
> href="http://www.hpc.ncep.noaa.gov/noaa/noaa.gif";>http://www.hpc.ncep.noaa.gov/noaa/noaa.gif</a>&lt;/a&gt;
> 
> We are currently attempting to improve the appearance of our
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;products
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;and need to find a higher resolution version of the
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;topographic
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;gempak
> 
> &lt;/pre&gt;
> &lt;blockquote type="cite"&gt;
> &lt;pre wrap=""&gt;satellite file to use as a background.
> 
> Can you help us or give me the name of someone who can?
> 
> Thanks
> 
> Alan Robson
> HPC/NCEP
> Camp Springs, MD
> 
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;--
> Steve Chiswell &lt;a class="moz-txt-link-rfc2396E" href=<a 
> class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"mailto:address@hidden";</a>&gt;&amp;lt;address@hidden&amp;gt;&lt;/a&gt;
> Unidata
> 
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;--
> Steve Chiswell &lt;a class="moz-txt-link-rfc2396E" href=<a 
> class="moz-txt-link-rfc2396E" 
> href="mailto:address@hidden";>"mailto:address@hidden";</a>&gt;&amp;lt;address@hidden&amp;gt;&lt;/a&gt;
> Unidata
> 
> 
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;
> &lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;pre wrap=""&gt;&lt;!----&gt;
> 
> Ticket Details
> ===================
> Ticket ID: AWA-355949
> Department: Support GEMPAK
> Priority: Normal
> Status: Closed&lt;/pre&gt;
> &lt;/blockquote&gt;
> &lt;/body&gt;
> &lt;/html&gt;
> 
> 
> </pre>
> </blockquote>
> <pre wrap=""><!---->
> 
> Ticket Details
> ===================
> Ticket ID: AWA-355949
> Department: Support GEMPAK
> Priority: Normal
> Status: Closed
> 
> </pre>
> </blockquote>
> </body>
> </html>
> 
> 


Ticket Details
===================
Ticket ID: AWA-355949
Department: Support GEMPAK
Priority: Normal
Status: Closed