January 18, 200521 yr 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
January 19, 200521 yr 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
January 19, 200521 yr Author 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
Create an account or sign in to comment