nullpainter / sanchez

False-colour geostationary satellite image compositor
Apache License 2.0
127 stars 9 forks source link

Satdump file naming convention differs now from what i it was, not compatible with current Sanchez #103

Open creinemann opened 3 months ago

creinemann commented 3 months ago

The developers of satdump drastically changed the file output of imagery relating to geo sats. Thge new naming convention does not 'currently' work with Sanchez. As you can see below, other than the raw png files, the composited outputs all have the same filename, thedifference being the date/time in which they were created. So that a M1 file: abi_rgb_Clean_Longwave_IR_Window_Band_map.jpg is the same as a full disk file abi_rgb_Clean_Longwave_IR_Window_Band_map.jpg. Or, Meso1 band 13 file G18_13_20240515T115155Z.png has the same name as full disk band 13 G18_13_20240515T115155Z.png the differences are in the timestamp of the folders.

So instead of having a file folder with today's date, and all the day/night imagery under it, it creates a file folder by time and date, with just that times output under it. See my example for goes 18. the JSON will need to be updated to handle that, as well as for pulling multiple files: Screenshot 2024-05-15 071349

nullpainter commented 1 month ago

Thanks Carl. I've got a handful of sample files now so should be able to get this implemented by the weekend.

nullpainter commented 1 month ago

For the time-being, this just requires a config change. Edit Resources/Satellites.json and replace the GOES-18 and GK-2A sections with:

  {
    "DisplayName": "GOES-18",
    "FilenamePrefix": "G18_13_",
    "FilenameParser": "Goesproc",
    "Longitude": -137.0,
    "Brightness": 0.95
  }

and:

  {
    "DisplayName": "GEO-KOMPSAT-2A",
    "FilenamePrefix": "GK2A_IR105_",
    "FilenameParser": "Goesproc",
    "Longitude": 128.2,
    "Brightness": 0.97,
    "Crop": [
      0.006363,
      0.006363,
      0.006363,
      0.006363
    ]
  },

GOES-18 just requires the FilenamePrefix to be changed, whereas GK-2A requires both FilenamePrefix and FilenameParser.