ArcticSnow / TopoPyScale

TopoPyScale: a Python library to perform simplistic climate downscaling at the hillslope scale
https://topopyscale.readthedocs.io
MIT License
39 stars 9 forks source link

topo_da: getSamples_inModisPixel() #76

Open ArcticSnow opened 1 year ago

ArcticSnow commented 1 year ago

This functions has undefined variables, indicated by flint:

./TopoPyScale/topo_da.py:1150:28: F821 undefined name 'x2'
    py, px = dataset.index(x2, y2)
                           ^
./TopoPyScale/topo_da.py:1150:32: F821 undefined name 'y2'
    py, px = dataset.index(x2, y2)
                               ^
./TopoPyScale/topo_export.py:568:72: F821 undefined name 'csv'
        df.to_csv(foutput, index=False, header=False, sep=',', quoting=csv.QUOTE_NONE)

Therefore I comment out this function until fixed