Back to prompt library
TorchGeo Dataset Definition
Linked challenge: Agricultural Crop Damage Assessment with Sentinel-2 NDVI Anomalies and TorchGeo
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Define a custom `TorchGeo` GeoDataset class that loads Sentinel-2 bands B4 (Red) and B8 (NIR) and computes inline tensor NDVI anomalies.