Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for statsgo soil data processing #41

Open
jhamman opened this issue Oct 28, 2020 · 0 comments
Open

Add script for statsgo soil data processing #41

jhamman opened this issue Oct 28, 2020 · 0 comments

Comments

@jhamman
Copy link
Contributor

jhamman commented Oct 28, 2020

I needed this asap so I just did a one off. Here's what I did:

!gdalwarp -t_srs PROJCS["Albers_Conical_Equal_Area",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,-0,-0,-0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Albers_Conic_Equal_Area"],PARAMETER["standard_parallel_1",29.5],PARAMETER["standard_parallel_2",45.5],PARAMETER["latitude_of_center",23],PARAMETER["longitude_of_center",-96],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["meters",1]] -te -2493045.0 177285.0 2342655.0 3310005.0 -tr 4000 4000 -srcnodata 255 -r average awc.tif awc_4000m.tif

from adlfs import AzureBlobFileSystem
fs = AzureBlobFileSystem('carbonplan', account_key=os.environ["BLOB_ACCOUNT_KEY"])

with fs.open('carbonplan-data/processed/statsgo/conus/4000m/raster.zarr', mode='wb') as target:
    with open('/home/jovyan/awc_4000m.tif', 'rb') as source:
        target.write(source.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant