-
Notifications
You must be signed in to change notification settings - Fork 0
Glacier Mass Change Algorithm
In order to get snowfall data for a specific glacier, we send a call to the GPM API with the date, latitude and longitude of the glacier, and type of precipitation (in this case, precip_30mn_frozen). Data is returned in the form of a JSON file, from which we can extract a GeoTIFF file that contains the precipitation accumulation visualized within the area.
GeoTIFF files are an extension of TIFF files (which stands for Tagged Image File Format). Like TIFF, GeoTIFF is a raster graphic file type, only GeoTIFF makes use of TIFF layers in order to store geological metadata alongside the raw data. As a result, GeoTIFF files tend to be large, but they’re an effectively “lossless” way of compressing and sending data, and all information is contained within one file.
Postman is an API platform that allows us to access and visualize Nasa’s GPM Data. In Postman, you can create a collection to store the commands/requests you have made to the API. In your collection, there is a bar which allows you to insert the API link and interact with the API. We are using the “get” command to retrieve data from the GPM API. Postman also allows you to input query parameters to specify the data you are asking the API for. In regards to the GPM API data, we use the parameters:
- q = precip_30mn
- lat = [insert value here]
- long = [insert value here]
- startTime = [insert date here]
- endTime = [insert date here] For more information on these parameters, see the GPM API Documentation page.
From Postman, the GPM API gives us a JSON file, which contains links to the precipitation data in several forms under the “items” section. We are interested in the link for the GeoTIFF file format.