GM not finding .gfw file
Ice Age Mark
Global Mapper UserTrusted User
Howdy Mike,
I haven't used my NWS radar scripts since upgrading to V14 and now, as has happened with previous upgrades, GM can't find the necessary .gfw projection file to work with. I have placed a copy in every place I can think of, but most especially in the GM download file, where the .gif should come in also. How do I get them going again, and is there a way to put it in the script, or something, so this doesn't/can't happen?
Thanks much,
Mark
I haven't used my NWS radar scripts since upgrading to V14 and now, as has happened with previous upgrades, GM can't find the necessary .gfw projection file to work with. I have placed a copy in every place I can think of, but most especially in the GM download file, where the .gif should come in also. How do I get them going again, and is there a way to put it in the script, or something, so this doesn't/can't happen?
Thanks much,
Mark
Comments
-
Mark,
That is odd, does the .gfw file have the same name as the .gif file that comes down (i.e. foo.gfw for foo.gif)? Is the .gif file being downloaded to the folder that you think it is? So long as the .gfw is in that folder that the .gif comes into it should work.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Mike,
GM really seems not to find the .gfw file in the GM downloads folder. It's there, it has the same exact name as the .gif (but with .gfw), and when I open it with Notepad, it has the projection data. A new .gif with a new time shows up next to it in GM downloads when I run the script. The gif shows in the control center and there is a palette, but it isn't there, and the coordinates are daffy in the metadata, like it didn't find the gfw. Once a long time back, it was actually GM, and another time long ago, I ran a utility and accidentally deleted it; but I put it back. Where did it go when I upgraded to V14? Does it stay in Temp GM downloads forever? Still trying.
Mark -
Mark,
Can you provide the script and the .gfw file and I can try it myself?
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Mike,
Here you go. There is no unload all, set view, load projection, global bounds, map layout, etc. because I always run/load it on an existing loaded background.
The gif link is http://radar.weather.gov/ridge/RadarImg/N0R/OTX_N0R_0.gif
the gfw link is http://radar.weather.gov/ridge/RadarImg/N0R/OTX_N0R_0.gif
GLOBAL_MAPPER_SCRIPT VERSION="1.00" FILENAME="C:\Users\XX\Desktop\DEM FILE\SCRIPT\RADAR SCRIPT - REGIONAL.gmw"
DEFINE_PROJ PROJ_NAME="GEO_NAD83_CONUS"
Projection GEOGRAPHIC
Datum NAD83_CONUS
Zunits NO
Units DD
Xshift 0.000000
Yshift 0.000000
Parameters
0 0 0.000 /* longitude of center of projection
END_DEFINE_PROJ
UNLOAD_LAYER FILENAME="radar_weather_gov_ridge_RadarImg_N0R_OTX_N0R_0.gif"
IMPORT FILENAME="http://radar.weather.gov/ridge/RadarImg/N0R/OTX_N0R_0.gif" TYPE="GIF" PROJ_NAME="GEO_NAD83_CONUS" \
LABEL_FIELD="" SAMPLING_METHOD="BICUBIC" AUTO_CONTRAST="NO" CONTRAST_SHARED="NO" \
CONTRAST_MODE="NONE" CLIP_COLLAR="LAT_LON" \
CLIP_COLLAR_BOUNDS="-121.000000,46.000000,-115.000000,50.000000" TEXTURE_MAP="NO"
I haven't had any luck. It loads somewhere, but it can't be seen.
Thanks again,
Mark
(The lines got staggered on pasting, slashes are correct.) -
Mark,
The file should be loaded to your system temp folder (actually a GlobalMapper folder under that). What I would suggest is either put the file there or instead you might provide the information in the world file as parameters right in the IMPORT command. Use the GCP command to provide just 2 control points, like one at the top-left corner and another at the bottom-right, or maybe one at (0,0) and another at (1,1) if you want to go with the corner coordinate and pixel size.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Mike,
Okus Dokus (that's Latin for Okey Dokey), I taught myself how to calc the other corners from the world file and set up my script to work without needing it. However, I still think there is an issue with GM recognizing/using these .gfw files. The reason is: that I verified the location of the .gfw file in ...Temp\GlobalMapper\downloads folder, it's correct full filename/path, and it's contents; yet the .gif that downloads right next to it there fails to place. I'm good for now, but I'm also noticing that the built-in NEXRAD Radar Base Composite (US) isn't working either (?).
Thanks again,
Mark -
Mark,
Ah I see the issue. Now the downloads put the entire URL in the filename so that if you download the same filename from different locations they don't overwrite each other. So you need to name your .gfw file as radar_weather_gov_ridge_RadarImg_N0R_OTX_N0R_0.gfw. When I did that it loaded just fine.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 627 GM Script Language
- 52 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website