I created "Trigger Azure Functions on blob containers using an event subscription" with visual studio code and I am running it in local, For now I want to read netCDF files. normally I am doing this by :
from netCDF4 import Dataset
nc_file ='path of .nc file'
nc = Dataset(nc_file, mode='r')
but now I dont know how to find the path of my file in the container. My init file in the azure function is like this:
import logging
import azure.functions as func
def main(myblob: func.InputStream):
logging.info(f"Python blob trigger function processed blob \n"
f"Name: {myblob.name}\n"
f"Blob Size: {myblob.length} bytes")
Thank you in advance for your time and concern.
CodePudding user response: