Sign in to follow this  
danr

An "inf" Slarti Problem

Recommended Posts

The following test "inf" file runs ok.********************** DestinationDestDir = ".scenery"DestBaseFileName = "Oregon_Test" UseSourceDimensions = 1LOD = Auto LWMSRTM = 0 Coastline = 1 SourceType = ImageSourceDir = ".Source"SourceFile = "35873504.tif" Lat = 44.109583311169999Lon = -122.04402811111100NumOfCellsPerLine = 4923NumOfLines = 4612CellXDimensionDeg = 0.000277777777999999970CellYDimensionDeg = 0.000277777660000000010ScaleInMeters = 1.00000000*****************If I add a WaterSource section, *****************Destination DestDir = ".scenery"DestBaseFileName = "Oregon_Test" UseSourceDimensions = 1LOD = Auto LWM SRTM = 0 Coastline = 1 SourceType = ImageSourceDir = ".Source"SourceFile = "35873504.tif" Lat = 44.109583311169999Lon = -122.04402811111100NumOfCellsPerLine = 4923NumOfLines = 4612CellXDimensionDeg = 0.000277777777999999970CellYDimensionDeg = 0.000277777660000000010ScaleInMeters = 1.00000000WaterSourceType = ImageSourceDir = ".Source"SourceFile = "p045r030_Water_Mask.bmp"Lat = 44.1496132Lon = -122.7547653NumOfCellsPerLine = 8786NumOfLines = 7791UMTZone = 10UMTOffX = 1852UMTOffY = 152UMTSize = 28.5*******************I get the following error message."cheight <0.000000> or cwidth <0.000000> is invalid."If I change "CoastLine = 1" to zero, the "inf" runs ok but I understand that it has to be be "1" to produce a water map. Help. I hope that this is not another senior moment on my part.Dan

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi, Dan.Simple typo :) You've got "UMT..." where you should have "UTM..." .The cell dimensions - that is, the space covered by each pixel of the input data - are normally set by the "Cell(XY)DimensionDeg" parameters. For UTM they're calculated from those parameters instead. Your WaterSource section correctly doesn't have the Cell...Deg parameters, but because you've mistyped the UTM parameters, no other value is set and they're taken as 0. Since Slarti works at the highest resolution of all input files, and 0 is smaller than 0.00027, 0 is taken as the global value.Senior moment? Wouldn't worry about it too much; if I had $1 for every time I've sat and stared at something like this for half an hour... x( Cheers,Jim

Share this post


Link to post
Share on other sites

Hello Jim,Thank you so much. That did it! It runs like a charm. That transposition brings back many memories of when I did some programming many years ago. Again, thank you.Dan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this