Skip to content

gen_vx_mask wtih shape files? #1312

Locked Answered by j-opatz
benjamin-cash asked this question in Configuration
Discussion options

You must be logged in to vote

Hello,

And thank you for your question. I wanted to follow up with this today since it's still fresh from the tutorial. To read in a shapefile, you would use a command similar to this:

gen_vx_mask ${GRID_FILE} ${SHP_FILE}.shp ${MASK_NAME}.nc -type shape -shapeno ${REC} -name ${VAR_NAME} -v 3

Stepping through this command, the ${GRID_FILE} is the grid that your ${SHP_FILE}.shp will be mapped to. ${MASK_NAME}.nc is the filename that you'll write the resulting grid out to, and using the -type shape flag allows all of this to be possible. the -shapeno flag will be used to access the ${SHP_FILE}.shp and extract the ${REC} record for mask creation (make sure you know which entry in the shapefil…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benjamin-cash
Comment options

Answer selected by benjamin-cash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment