ted-piotrowski / mapbox-gl-shadow-simulator

Simulate terrain and structure shadows in a custom map layer
47 stars 5 forks source link

GeoTIFFs all download as shademap.tiff #8

Closed twest820 closed 9 months ago

twest820 commented 1 year ago

Hi Ted, I just had a bit of time to do the download a sun exposure raster for every month of the year which we discussed a bit ago. Since there are 12 months, that means I get 12 files which Chrome and Windows helpfully decide to name

Since I downloaded them in order from January to December it's not a big deal to rename shademap.tiff to sun exposure 2023-01.tiff, shademap (1).tiff to sun exposure 2023-02.tiff, and so on.

However, since ShadeMap already knows the data type and date it's exporting it seems kind of silly to do this manually. So, for user friendliness, it'd be nice if the downloaded file names defaulted to something like

I can see arguments for also including the start and end times for part of day sun exposures and location info (besides the timezone).

ted-piotrowski commented 1 year ago

Great idea. I just deployed this change. The format is now:

shade_YYYY-MM-ddThh.mm.ss.zzz.tiff
sun_exposure_YYYY-MM-dd.tiff