- Daily tile server - http://www.nnvl.noaa.gov/view/#TRUE
- Low resolution data access - http://neo.sci.gsfc.nasa.gov/view.php?datasetId=VIIRS_543D
- Beginner's Guide to working with VIIRS - http://rammb.cira.colostate.edu/projects/npp/Beginner_Guide_to_VIIRS_Imagery_Data.pdf
- CLASS for direct data access - http://www.class.ncdc.noaa.gov/saa/products/welcome
- Example FTP directory for Level 1 products - ftp://ftp-npp.class.ngdc.noaa.gov/20150803/VIIRS-SDR/
- VIIRS EDR User Guide - http://rammb.cira.colostate.edu/projects/npp/VIIRS_Imagery_EDR_Users_Guide.pdf
- Software from Wisconsin for processing VIIRS - https://cimss.ssec.wisc.edu/cspp/download/
- Documentation of above software - ftp://ftp.ssec.wisc.edu/pub/CSPP/hidden/NPP/UTIL/polar2grid/v1.2/CSPP_IMAPP_Polar2Grid_Installation_Guide_v1.2.pdf
- Sphinx docs on polar2grid - http://www.ssec.wisc.edu/software/polar2grid/index.html
- polar2grid code - https://github.com/davidh-ssec/polar2grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import rasterio as rio | |
url = "https://data.lpdaac.earthdatacloud.nasa.gov/lp-prod-protected/HLSS30.020/HLS.S30.T22KDF.2023030T133831.v2.0/HLS.S30.T22KDF.2023030T133831.v2.0.B05.tif" | |
token = os.environ.get("NASA_EARTHDATA_TOKEN") | |
gdal_env = { | |
"GDAL_HTTP_HEADERS": f"Authorization: Bearer {token}", | |
"GDAL_DISABLE_READDIR_ON_OPEN": "EMPTY_DIR", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Endian Differences When Interpreting Binary Data in JavaScript | |
// Let's make a request for a binary file | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', 'data/m101.fits'); | |
xhr.responseType = 'arraybuffer'; | |
xhr.onload = function() { | |
var buffer = xhr.response; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Converting from 16bit to 8bit | |
gdal_translate -ot Byte -scale 0 65535 0 255 sixteen.tif eight.tif | |
# Converting from 8bit to 16bit | |
gdal_translate -ot Uint16 -scale 0 255 0 65535 eight.tif sixteen.tif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g = sns.pairplot(df[(np.abs(df.wx) < 2) & (np.abs(df.wy) < 2) & (np.abs(df.wz) < 2)], vars=['motion_blur', 'wx', 'wy', 'wz'], plot_kws={'alpha': 0.2}) | |
for ax in g.axes[-1, :]: | |
ax.set_xticklabels(ax.get_xticks(), rotation=40) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use -e to exit the script as soon as anything returns non-zero | |
set -eou pipefail | |
function usage() { | |
echo "" | |
echo "Template script for bash error handling." | |
echo "" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import cv2 | |
original = "original.tif" | |
cropped = "cropped.jpeg" | |
def matcher(): | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder