[Xastir] NWS get problem

James Jolin jjolin at itol.com
Mon Nov 26 18:27:16 EST 2012


On 11/26/2012 01:31 PM, Tom Russo wrote:
> On Mon, Nov 26, 2012 at 11:33:05AM -0600, we recorded a bogon-computron collision of the <jjolin at itol.com> flavor, containing:
>> On 11/25/2012 8:49 PM, Tom Russo wrote:
>>> On Sun, Nov 25, 2012 at 07:52:05PM -0600, we recorded a bogon-computron collision of the <jjolin at itol.com> flavor, containing:
>>>> When it rains......Here is the latest:
>>>> jjolin at jjolin-Inspiron-8200 ~ $ sudo
>>>> /usr/local/share/xastir/scripts/get-NWSdatasudo:
>>>> /usr/local/share/xastir/scripts/get-NWSdata: command not found
>>>> jjolin at jjolin-Inspiron-8200 ~ $ I have tired even with the script from
>>>> the readme startup file.
>>>> This is getting exasperating.
>>> Does /usr/local/share/xastir/scripts/get-NWSdata actually exist?
>>>
>>> Did you install Xastir from source or from a binary package for your system?
>>>
>> Tom and Curt.
>> To answer you both.  Yes NWSdata does exist....I see it when I run ls.
>> I always install xastir from source so that's out.  And I do have wget
>> installed.
> Please try this:
>
> sudo sh -x /usr/local/share/xastir/scripts/get-NWSdata
>
> This will tell the shell to spit out a line for each line of the script it
> executes, and should pin down what command it's not finding.
>
> Since the script itself exists, then obviously one or more of the programs
> it uses is not on your system.  As Curt says, get-NWSdata uses wget, unzip,
> cut and rm.  I doubt that "rm" is the problem, so it's gotta be one of the
> others.
>
>> BTW, did anyone figure out the adobe helvctia font problem I mentioned?
>> I can resend if it got swallowed in cyberspace.
> I answered you within minutes of your post.
>
> Check that xfonts-100dpi and xfonts-75dpi are installed.  Recent versions of
> Ubuntu stopped making them required by the X packages, meaning that old
> programs like Xastir that depend on these old standard fonts for their default
> font choices get this kind of error.  I had the same problem when I
> installed Xastir on an Ubuntu 12.04 system.
>
Well Tom and Curt this whole thing is weird.  Here is what I got from 
your suggestion Tom and Curt:
jolin at jjolin-Inspiron-8200 ~ $ sudo sh -x 
/usr/local/share/xastir/scripts/get-NWSdata
[sudo] password for jjolin:
+ FILE1=w_11oc12
+ FILE2=z_11oc12
+ FILE3=mz11oc12
+ FILE4=oz28jn12
+ FILE5=hz30mr09
+ FILE6=fz11oc12
+ FILE7=c_11oc12
+ dirname /usr/local/share/xastir/scripts/get-NWSdata
+ x=/usr/local/share/xastir/scripts
+ . /usr/local/share/xastir/scripts/values
+ prefix=/usr/local
+ cd /usr/local/share/xastir/Counties
+ rm -f *.zip
+ DIR=wsom
+ [ -e w_11oc12.shp ]
+ cut -c1-2 -
+ echo w_11oc12
+ cut=w_
+ rm -f w_*.shx w_*.shp w_*.dbf w_*.prj w_*.zip
+ wget http://www.weather.gov/geodata/catalog/wsom/data/w_11oc12.zip
--2012-11-26 16:58:28-- 
http://www.weather.gov/geodata/catalog/wsom/data/w_11oc12.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.10, 
216.165.156.18
Connecting to www.weather.gov (www.weather.gov)|216.165.156.10|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.nws.noaa.gov/geodata/catalog/wsom/data/w_11oc12.zip 
[following]
--2012-11-26 16:58:28-- 
http://www.nws.noaa.gov/geodata/catalog/wsom/data/w_11oc12.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.9, 
216.165.156.26
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.9|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 24352799 (23M) [application/zip]
Saving to: `w_11oc12.zip'

100%[======================================>] 24,352,799 306K/s   in 82s

2012-11-26 16:59:50 (292 KB/s) - `w_11oc12.zip' saved [24352799/24352799]

+ unzip w_11oc12.zip
Archive:  w_11oc12.zip
   inflating: w_11oc12.shx
   inflating: w_11oc12.prj
   inflating: w_11oc12.dbf
   inflating: w_11oc12.shp
+ rm -f w_11oc12.zip
+ [ -e z_11oc12.shp ]
+ cut -c1-2 -
+ echo z_11oc12
+ cut=z_
+ rm -f z_*.shx z_*.shp z_*.dbf z_*.prj z_*.zip
+ wget http://www.weather.gov/geodata/catalog/wsom/data/z_11oc12.zip
--2012-11-26 16:59:52-- 
http://www.weather.gov/geodata/catalog/wsom/data/z_11oc12.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.18, 
216.165.156.10
Connecting to www.weather.gov (www.weather.gov)|216.165.156.18|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.nws.noaa.gov/geodata/catalog/wsom/data/z_11oc12.zip 
[following]
--2012-11-26 16:59:52-- 
http://www.nws.noaa.gov/geodata/catalog/wsom/data/z_11oc12.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.9, 
216.165.156.26
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.9|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 21541186 (21M) [application/zip]
Saving to: `z_11oc12.zip'

100%[======================================>] 21,541,186 305K/s   in 71s

2012-11-26 17:01:03 (297 KB/s) - `z_11oc12.zip' saved [21541186/21541186]

+ unzip z_11oc12.zip
Archive:  z_11oc12.zip
   inflating: z_11oc12.shx
   inflating: z_11oc12.dbf
   inflating: z_11oc12.prj
   inflating: z_11oc12.shp
+ rm -f z_11oc12.zip
+ [ -e mz11oc12.shp ]
+ cut -c1-2 -
+ echo mz11oc12
+ cut=mz
+ rm -f mz*.shx mz*.shp mz*.dbf mz*.prj mz*.zip
+ wget http://www.weather.gov/geodata/catalog/wsom/data/mz11oc12.zip
--2012-11-26 17:01:06-- 
http://www.weather.gov/geodata/catalog/wsom/data/mz11oc12.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.18, 
216.165.156.10
Connecting to www.weather.gov (www.weather.gov)|216.165.156.18|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.nws.noaa.gov/geodata/catalog/wsom/data/mz11oc12.zip 
[following]
--2012-11-26 17:01:07-- 
http://www.nws.noaa.gov/geodata/catalog/wsom/data/mz11oc12.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.26, 
216.165.156.9
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.26|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 17989541 (17M) [application/zip]
Saving to: `mz11oc12.zip'

100%[======================================>] 17,989,541 305K/s   in 64s

2012-11-26 17:02:12 (273 KB/s) - `mz11oc12.zip' saved [17989541/17989541]

+ unzip mz11oc12.zip
Archive:  mz11oc12.zip
   inflating: mz11oc12.shx
   inflating: mz11oc12.dbf
file #3:  bad zipfile offset (local header sig):  22523
file #4:  bad zipfile offset (local header sig):  22700
+ rm -f mz11oc12.zip
+ [ -e oz28jn12.shp ]
+ cut -c1-2 -
+ echo oz28jn12
+ cut=oz
+ rm -f oz*.shx oz*.shp oz*.dbf oz*.prj oz*.zip
+ wget http://www.weather.gov/geodata/catalog/wsom/data/oz28jn12.zip
--2012-11-26 17:02:12-- 
http://www.weather.gov/geodata/catalog/wsom/data/oz28jn12.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.18, 
216.165.156.10
Connecting to www.weather.gov (www.weather.gov)|216.165.156.18|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.nws.noaa.gov/geodata/catalog/wsom/data/oz28jn12.zip 
[following]
--2012-11-26 17:02:13-- 
http://www.nws.noaa.gov/geodata/catalog/wsom/data/oz28jn12.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.26, 
216.165.156.9
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.26|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 501099 (489K) [application/zip]
Saving to: `oz28jn12.zip'

100%[======================================>] 501,099 280K/s   in 1.7s

2012-11-26 17:02:15 (280 KB/s) - `oz28jn12.zip' saved [501099/501099]

+ unzip oz28jn12.zip
Archive:  oz28jn12.zip
   inflating: oz28jn12.shx
   inflating: oz28jn12.dbf
   inflating: oz28jn12.shp
   inflating: oz28jn12.prj
+ rm -f oz28jn12.zip
+ [ -e hz30mr09.shp ]
+ cut -c1-2 -
+ echo hz30mr09
+ cut=hz
+ rm -f hz*.shx hz*.shp hz*.dbf hz*.prj hz*.zip
+ wget http://www.weather.gov/geodata/catalog/wsom/data/hz30mr09.zip
--2012-11-26 17:02:15-- 
http://www.weather.gov/geodata/catalog/wsom/data/hz30mr09.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.10, 
216.165.156.18
Connecting to www.weather.gov (www.weather.gov)|216.165.156.10|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.nws.noaa.gov/geodata/catalog/wsom/data/hz30mr09.zip 
[following]
--2012-11-26 17:02:15-- 
http://www.nws.noaa.gov/geodata/catalog/wsom/data/hz30mr09.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.9, 
216.165.156.26
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.9|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 103258 (101K) [application/zip]
Saving to: `hz30mr09.zip'

100%[======================================>] 103,258 260K/s   in 0.4s

2012-11-26 17:02:16 (260 KB/s) - `hz30mr09.zip' saved [103258/103258]

+ unzip hz30mr09.zip
Archive:  hz30mr09.zip
   inflating: hz30mr09.dbf
   inflating: hz30mr09.prj
   inflating: hz30mr09.shp
   inflating: hz30mr09.shx
+ rm -f hz30mr09.zip
+ [ -e fz11oc12.shp ]
+ cut -c1-2 -
+ echo fz11oc12
+ cut=fz
+ rm -f fz*.shx fz*.shp fz*.dbf fz*.prj fz*.zip
+ wget http://www.weather.gov/geodata/catalog/wsom/data/fz11oc12.zip
--2012-11-26 17:02:16-- 
http://www.weather.gov/geodata/catalog/wsom/data/fz11oc12.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.18, 
216.165.156.10
Connecting to www.weather.gov (www.weather.gov)|216.165.156.18|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.nws.noaa.gov/geodata/catalog/wsom/data/fz11oc12.zip 
[following]
--2012-11-26 17:02:16-- 
http://www.nws.noaa.gov/geodata/catalog/wsom/data/fz11oc12.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.26, 
216.165.156.9
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.26|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 33518866 (32M) [application/zip]
Saving to: `fz11oc12.zip'

100%[======================================>] 33,518,866 290K/s   in 1m 50s

2012-11-26 17:04:07 (297 KB/s) - `fz11oc12.zip' saved [33518866/33518866]

+ unzip fz11oc12.zip
Archive:  fz11oc12.zip
   inflating: fz11oc12.dbf
   inflating: fz11oc12.shp
   inflating: fz11oc12.shx
   inflating: fz11oc12.prj
+ rm -f fz11oc12.zip
+ DIR=county
+ [ -e c_11oc12.shp ]
+ cut -c1-2 -
+ echo c_11oc12
+ cut=c_
+ rm -f c_*.shx c_*.shp c_*.dbf c_*.prj c_*.zip
+ wget http://www.weather.gov/geodata/catalog/county/data/c_11oc12.zip
--2012-11-26 17:04:09-- 
http://www.weather.gov/geodata/catalog/county/data/c_11oc12.zip
Resolving www.weather.gov (www.weather.gov)... 216.165.156.18, 
216.165.156.10
Connecting to www.weather.gov (www.weather.gov)|216.165.156.18|:80... 
connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: 
http://www.nws.noaa.gov/geodata/catalog/county/data/c_11oc12.zip [following]
--2012-11-26 17:04:10-- 
http://www.nws.noaa.gov/geodata/catalog/county/data/c_11oc12.zip
Resolving www.nws.noaa.gov (www.nws.noaa.gov)... 216.165.156.9, 
216.165.156.26
Connecting to www.nws.noaa.gov (www.nws.noaa.gov)|216.165.156.9|:80... 
connected.
HTTP request sent, awaiting response... 200 OK
Length: 33776921 (32M) [application/zip]
Saving to: `c_11oc12.zip'

100%[======================================>] 33,776,921 274K/s   in 1m 51s

2012-11-26 17:06:00 (298 KB/s) - `c_11oc12.zip' saved [33776921/33776921]

+ unzip c_11oc12.zip
Archive:  c_11oc12.zip
   inflating: c_11oc12.shx
   inflating: c_11oc12.dbf
   inflating: c_11oc12.prj
   inflating: c_11oc12.shp
+ rm -f c_11oc12.zip
jjolin at jjolin-Inspiron-8200 ~ $
I could not find anything wrong, so I looked in the counties directory 
and everything was there.  How and when that happened I have no idea.  
Thanks for all the help....learned a few things...one of which is "if it 
ain't broke, don't fix it."
The font problem still is there, but I now can zero in on that.  If I 
have more problems I will let you know.  Thanks a bunch
Jim wa9arb




More information about the Xastir mailing list