• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

seasons.bgl?? which forum?

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,541
Country
us-wisconsin
Hi Scott.

Resample can easily manage large tiffs or raw data, but you may wish to split the data into magable chunks for your processing, then use a multisource technique for resample to merge them back together in the BGL... or you could leave them split as BGLs, and let hte sim put them back together.

Dick
 
Messages
997
Country
us-missouri
new problem

I'm resurrecting my old thread, because I am just now getting back to this...

I am intending to make a seasons.bgl for all summer (value=3); however as you can see in the attached screen cap, I am getting mostly autumn (value=4) !!

And yes, in Photoshop, Histogram shows ALL VALUES = 3 on my Tiff image after I convert it from indexed to grayscale. It SHOULD work. Yet it is not. I'm getting "noise" or something, making my values mostly 4.

What is wrong? Is there something in resample I am missing?

Here's the TMFViewer cap of my bgl:
 

Attachments

  • cap1.jpg
    cap1.jpg
    10.1 KB · Views: 512

HolgerSandmann

Resource contributor
Messages
392
Country
ca-britishcolumbia
Hi Rhett,

probably something wrong with the inf file. If the source res doesn't match, resample.exe will interpolate, which could explain the mix of values you get.

Cheers, Holger
 
Messages
997
Country
us-missouri
Hello Holger, et al:

I'm afraid I am a little out of my element with resample. However, we can't very well have fall foliage in Panama, now can we? :)

I have been experimenting with various size images, and various size xDim, yDim values...to no avail. I still get the "hash" of 3 and 4 values, when my histogram shows all 3 in my source image. I think I am fundamentally missing something here.

This .inf should theoretically work with a 257x257 seasons.tif file (with all values = 3), should it not?:

[Source]
Type=Tiff
Layer=Season
SourceDir="E:\Projects\Pan\Season"
SourceFile="seasons.tif"
ulyMap= 10
ulxMap=-80
;ncols=672
;nrows=531
;xdim= .011309523
;ydim= .00772128
ncols=257
nrows=257
xdim= .0146484375
ydim= .010986328125
bandlayout=bsq
byteorder=intel
nbands=1
sampletype=uint8
NullValue=254
SamplingMethod=Point
Month=1,2,3,4,5,6,7,8,9,10,11,12

[Destination]
UseSourceDimensions=1
DestDir="E:\Projects\Pan\Season\FSX"
DestBaseFileName="Pan_Season"

My image was originally 672 x 531...hence the commented out lines. I resized it and changed the upper left lat/long thinking that would have some affect on things.

What is wrong with my inf?
 

HolgerSandmann

Resource contributor
Messages
392
Country
ca-britishcolumbia
Hi Rhett,

don't see anything obviously wrong. The parameters

bandlayout=bsq
byteorder=intel
nbands=1
sampletype=uint8

are not needed for tif/geotiff format but I don't think they would interfere with your output. Still, you may want to try again without these.

Can you attach the seasons.tif file as a zip? Should be quite small in compressed format.

Cheers, Holger
 
Messages
997
Country
us-missouri
seasons.tif attached

Holger, do you see this in Photoshop?:

Edit|Color Settings...|Advanced Mode checkbox|Conversion Options|Use Dither (8-bit/channel images) checkbox

...should be UNCHECKED!

This is why I was getting the 3 and 4 values. My conversion was getting dithered! I can't believe this obscure setting was doing it. I assume your Photoshop is set up not to dither these conversions.

However, I now have another issue.

When I convert from Indexed Color (all values = 3) to Grayscale, my values become *4* for some strange reason. Is this another obscure Photoshop conversion setting I am missing?

As a result, I have created a nice Autumn (value = 4) .bgl file. However, I want value = 3 and it's not letting me.

The attached tif should load in Indexed Color mode, (all values = 3). In MY photoshop setup, converting to grayscale in the mode menu results in all values magically becoming 4.
 

Attachments

  • seasons.zip
    1.3 KB · Views: 350

HolgerSandmann

Resource contributor
Messages
392
Country
ca-britishcolumbia
Hello Rhett,

no problems here at all converting your Indexed image to Grayscale (and back) without "losing" the value 3. So it must be something with your Photoshop settings. I don't think I can be of help in regards to where parameters are because I'm using the elderly version 5.0.1. I got that eight years ago as a full version at a great student price and never saw the need to upgrade.

Something you might want to try is to not convert the Indexed image to Grayscale when saving as tif. It should work that way as long as the Indexed file has grayscale values only, which is the case with your file.

Cheers, Holger
 
Messages
66
Country
us-massachusetts
Another option would be to try GIMP, a really nice freeware image processing suite very similar to PS. I find it handles the many different image file formats and compression routines very well - much better than PS in many cases.

http://www.gimp.org/
 
Messages
997
Country
us-missouri
Hello Rhett,

no problems here at all converting your Indexed image to Grayscale (and back) without "losing" the value 3.

I suspected it was Photoshop messing with things! It is, apparently interpolating or something of that sort. I'm using version 6.xxx if I remember correctly...not exactly a new version.

Something you might want to try is to not convert the Indexed image to Grayscale when saving as tif. It should work that way as long as the Indexed file has grayscale values only, which is the case with your file.

I think I did try that. That file is mainly proof-of-concept and I was just trying to get this basic process down.

I will try GIMP if I can't figure out what Photoshop is doing.
 
Messages
997
Country
us-missouri
Another option would be to try GIMP, a really nice freeware image processing suite very similar to PS. I find it handles the many different image file formats and compression routines very well - much better than PS in many cases.

http://www.gimp.org/

Thank you for that. I will try GIMP if I can't get Photoshop to convert properly.
 
Last edited:
Messages
997
Country
us-missouri
I can now report success! Finally.

My Photoshop 6 will not convert images properly. I used GIMP, and it all worked like a charm.

Thanks Holger for verifying that I was indeed doing the correct process. And thanks Gridley for telling me about GIMP.
 
Messages
2
Country
italy
Hi,
I'm trying to assign seasons and regions working with sbuilder. It works fine but i can't assign winter (zero), because i didn't find waterclass or land class with number zero in the classification.
Have you any solution? I did not manage to realize it with photoshop or gimp :(
Thanks
 
Last edited:
Top